Filling in Missing Record Labels

danriske

New Member
Joined
Oct 8, 2014
Messages
8
I have a large spreadsheet with labels in one column, but only the first record in each series includes the appropriate label. For example, I would have a label in cell A1 that applies to cells B1 through B7. Then I would have a label in cell A8 that applies to cell B8 through B26. However, cells A2-A7 and A9-A26 are blank. My goal is to fill cells A2-A7 with the label in A1 and cells A9-A26 with the label in cell A8 [and do this for numerous other series of data of varying lengths throughout the spreadsheet]. I would do this manually but have numerous records to go through and was hoping to find a shortcut. Thanks for any help!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Sounds like someone copied a pivot table!

Easiest way is to insert a helper column. In that helper column, place formula:

Code:
=IF(A2="",B1,A2)

You'll have to populate B1 to start, but after that it won't matter. Copy that down and you should get your answer. Then just copy/paste values and delete the old column A.
 
Upvote 0
haha I just receive the data from a client, not sure if it originated in a pivot table...probably. That worked great, thank you very much!!
 
Upvote 0

Forum statistics

Threads
1,215,619
Messages
6,125,871
Members
449,267
Latest member
ajaykosuri

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