AutoFill Blank cells with closest above data

raynerfredrick

New Member
Joined
Jul 25, 2018
Messages
4
Looking for a to solution to pull data down into blank cells below until no blank cells remain. I could obviously just grab each cell and complete this but I've got 600 unique data pieces with varying numbers of blank cells below which need to be filled. Thanks so much.
AutoZone
Bridgestone
American Can
Primrose Bank
Johns Hopkins
Community Maverick
First Exchange

<tbody>
</tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Manual suggestion:

- First blank cell (pretend it's A3) enter formula: =A2
- Copy A3
- Select column A, press F5, click Special, select Blanks then ok
- Paste
- Select Column A, copy and paste values over it

Code:
Code:
Sub Fill()
Dim x As Long
x = Range("A" & Rows.Count).End(xlUp).Row
With Range("A1").Resize(x)
  .SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=R[-1]C"
  .Value = .Value
End With
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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