Is there a way to process the following column A to obtain column B using the Excel IF statement (or other but preferable NOT a custom macro, I would like to just have a formula) to obtain
A B
X X
_EMPTY custom_row3
Y Y
_EMPTY custom_row5
Z Z
In pseudo code
FOREACH ROW
IF (A!='_EMPTY)
B=A
ELSE
B='custom_row'+$ROWNUM$
END
I checked the related question How to replace text of a cell based on condition in excel, but it is not clear how to extend to this case which is a bit more complicated.