=IF(C2=C1,"",C2)
If you are just trying to fill in the gaps there is an easier way...
Are you looking for a "ditto" effect? Have each cell that is blank equal the cell above it?
Did you see/try my solution up in the first response?
If it does not work for you, please explain why.
=IF(C2<>"",C2,D1)
OK. I see now. Then use this formula instead:
Code:=IF(C2<>"",C2,D1)
If, instead of wanting it in a new column, you wanted to populate the current column, use the steps outlined here: https://www.extendoffice.com/documents/excel/771-excel-fill-blank-cells-with-value-above.html