Try either of the codes below on a test copy of your data.
Code:
Sub FillCell1()
Dim fCell As Range
On Error Resume Next
For Each fCell In Range("A2:A" & Range("A" & Rows.Count).End(xlUp).Row). _
SpecialCells(xlCellTypeBlanks).Areas
fCell.Value = fCell(1).Offset(-1).Value
Next
On Error GoTo 0
End Sub
Code:
Sub FillCell2()
On Error Resume Next
With Range("A2:A" & Range("A" & Rows.Count).End(xlUp).Row)
.SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=R[-1]C"
.Value = .Value
End With
On Error GoTo 0
End Sub
The code above assumes that you have a header row, if not change A1 to A2.
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.