If your data starts in A1, try this
Option Explicit
Sub x()
Dim rng As Range
Dim cl As Range
Dim Rw As Long
Set rng = Range(Cells(1, 1), Cells(Rows.Count, 1).End(xlUp))
Set rng = rng.Resize(rng.Rows.Count + 1)
Rw = 2
Cells(1, 2).Value = Cells(1, 1).Value
For Each cl In rng
If IsEmpty(cl) Then
Cells(Rw, 2).Value = cl.Offset(-1, 0).Value
Cells(Rw + 1, 2).Value = cl.Offset(1, 0).Value
Rw = Rw + 2
End If
Next cl
End Sub
Copy the code
Select the workbook in which you want to store the code
Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
Choose Insert | Module
Where the cursor is flashing, choose Edit | Paste
Bookmarks