Hi jm saf,
I made gif below and I would give a explain.
- Select range with non-empty cells and empty cells . In gif, I select cells from A2 to A27.
- Press Ctrl and G, open Go To > choose "Special" > Blanks > OK.
- Enter the name of the previous cell in the first blank cell. In gif, the first empty cell is A5, so I enter "=A4" in it.
- Press Ctrl and Enter.