Maybe, in D1 and copy down:

=IF(C1="",$C$1,C1)


Regards