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







Ledger NoID#SrcAccount Name
1-1110A Bank
1-1110Beginning Balance:$0.00
1-1111B Bank
1-1111Beginning Balance:
1-11115069CD
1-1111dmCD
1-1111dmCD
1-1111dmCD
1-1111dmCD
1-1111dmCD
1-1111dmCD
5070CD
dmCD
dmCD
1-1112C Bank
1-1112Beginning Balance:
1-11125069CD
1-1112dmCD
1-1112dmCD
dmCD

<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
For point 1

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


CellFormula
A3=IFERROR(IF(FIND("-",B2)>0,B2,A2),A2)

<tbody>
</tbody>
 
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,214,411
Messages
6,119,346
Members
448,888
Latest member
Arle8907

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