I am trying to use the =MATCH("zzzz";$A2:2)
function to find the column containing the last non-empty cell in row 2 of my worksheet (containing text values).
The value returned (4) implies that the cell D2
is non-empty, even though it appears to be so, and the EQ
function says its content is equal to that of the truly empty neighboring cell C2
.
If I copy C2
onto D2
, or if I select D2
and choose "delete value" from the menu, the problem is fixed. The correct behavior is displayed in rows 5 and 6.
Actually the problem originally occurs in a much larger worksheet, and I cannot afford to fix all "pseudo-empty" cells manually. One first step would be to figure out what is the hidden content of cell D2
, which is considered empty by the EQ
function but not by the MATCH function.
Is there a simple way to do that?