If cell is blank, fill in with cell above

BMR

New Member
Joined
Jul 19, 2011
Messages
21
I have a list that was previously fully filled in, but I had to go through and insert many rows.

Now with those inserted rows I want to insert the same text that is in the cell above.

BQ5 - Anderson
BQ6 - Anderson
BQ7 - Anderson
BQ8 -
BQ9 - Anderson
BQ10 - Anderson
BQ11 -
BQ12 - Rochester
BQ13 - Rochester
BQ14 - Rochester
BQ15 -


In this example I would want BQ8 and BQ 11 to be filled in with the text above (Anderson) and I would want BQ15 to be filled in with Rochester.


Any formulas I could copy and paste into the blank cells to do this quick?

Or I could add another column next to it, fill those cells in using a formula, then replace BQ with the new data.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Select the range, press F5, click Special, tick Blanks, click OK.

Press =

Press Up arrow

Hold down CTRL and press Enter.
 
Upvote 0
Untested, but try this (expand the range as needed)

Code:
Sub FillMe()
Dim c as Range

For each c in Range("BQ5:BQ15")
If c = "" Then c = c.Offset(-1,0)
Next c

End Sub
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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