Simple version: There may or may not be a value in cell A50. Cell B50 contains the formula =IF(A50=””, “”, A50). The desired result is that B50 stays blank if A50 is blank – otherwise it displays the same result. It works except when A50 equals zero. Then B50 displays as blank. (This is simplified from a pre-existing worksheet in a pre-existing workbook in Excel XP.)
The “Zero values” option is checked. (Besides, A50 is displaying zero properly.) There’s no conditional formatting that I can find. And a test (in C50) confirms B50 contains the empty string “”! So why does =IF(A50=””, “”, A50) evaluate to “” when A50 = 0?
As an added puzzle, if I try this on a newly created worksheet in the same workbook, it works as expected. That is, if B1=IF(A1=””, “”, A1), then B1 displays 0 if A1=0.
Any suggestions?