formula to copy values to adjacent cells and keep repeating until a new number is visible

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
128
Office Version
  1. 2013
Platform
  1. Windows
Hello,

Could you please help me with 2 sets of formula:

1) A formula to place the "ID#" into the left column labelled "Ledger No" such that if there is a number, the formula should type that number if its a text then to leave it blank.
However, I would like the formula to keep repeating the numbers until a new set of "ID#" is found.
So for eg: Continue showing the value "1-1111" until "1-1112" appears.

2) This should be relatively less complex. I would like my formula to show the "Src" text in "Accout Name" tab until another unique "Src" text is visible.

Would appreciate your utmost assistance on these. Thank you







[TABLE="width: 506"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD]Ledger No[/TD]
[TD]ID#[/TD]
[TD]Src[/TD]
[TD]Account Name[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]1-1110[/TD]
[TD]A Bank [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1110[/TD]
[TD]Beginning Balance:[/TD]
[TD]$0.00[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1-1111[/TD]
[TD]B Bank[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1111[/TD]
[TD]Beginning Balance:[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1111[/TD]
[TD]5069[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1111[/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1111[/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1111[/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1111[/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1111[/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1111[/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]5070[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1-1112[/TD]
[TD]C Bank[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1112[/TD]
[TD]Beginning Balance:[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1112[/TD]
[TD]5069[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1112[/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]1-1112[/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]dm[/TD]
[TD]CD[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
For point 1

I would like the formula to keep repeating the numbers until a new set of "ID#" is found


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]A3[/TD]
[TD]=IFERROR(IF(FIND("-",B2)>0,B2,A2),A2)[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hi,

Formula for A3 copied down:


Book1
ABC
1Ledger NoID#Src
21-1110A Bank
31-1110Beginning Balance:$0.00
4
5
6
71-1111B Bank
81-1111Beginning Balance:
91-11115069CD
101-1111dmCD
111-1111dmCD
121-1111dmCD
131-1111dmCD
141-1111dmCD
151-1111dmCD
161-11115070CD
171-1111dmCD
181-1111dmCD
19
201-1112C Bank
211-1112Beginning Balance:
221-11125069CD
231-1112dmCD
241-1112dmCD
251-1112dmCD
Sheet543
Cell Formulas
RangeFormula
A3=IF(B3="","",IF(ISNUMBER(FIND("-",B2)),B2,A2))


I'm not understand your requirements for your 2nd question, can you explain further?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top