Auto fill the Account number down to the next account number

richmcgill

Board Regular
Joined
Feb 4, 2019
Messages
87
Office Version
  1. 2016
Platform
  1. Windows
I have a list of accounts where the account number does not fill in all of the lines of the report.
Is there a way to auto fill the Account number down to the next account number?
Make sense?

Report looks like this
Account Detail
123456789 123.66
ABC 123
Main
Home St
234567891 566.98
FL
Denver
Pilot

Need it to look like this
Account Detail
123456789 123.66
123456789 ABC 123
123456789 Main
123456789 Home St
234567891 566.98
234567891 FL
234567891 Denver
234567891 Pilot
 

Attachments

  • Screenshot 2024-07-16 095654.png
    Screenshot 2024-07-16 095654.png
    14.9 KB · Views: 13

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try this:

varios 16jul2024.xlsm
ABCD
1AccDetAccDet
2123123.6123123.6
3abc123abc
4ma123ma
5ho123ho
623452345
7FL234FL
8de234de
9pi234pi
Hoja3
Cell Formulas
RangeFormula
C2:C9C2=IF(A2="",C1,A2)
D2:D9D2=B2


You can also fill in the cells in the same column, check the following:
fill blank cells

----- --
Let me know the result and I'll get back to you as soon as I can.
Sincerely
Dante Amor
----- --
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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