I would like to write an IF statement, where the cell is left blank if the condition is FALSE. Note that, if the following formula is entered in C1 (for which the condition is false) for example:
=IF(A1=1,B1,"")
and if C1 is tested for being blank or not using =ISBLANK(C1)
, this would return FALSE
, even if C1 seems to be blank. This means that the =IF(A1=1,B1,"")
formula does not technically leave the cells blank if the condition is not met.
Any thoughts as to a way of achieving that? Thanks,
OR(C1="",ISBLANK(C1))
is equivalent. – BlaiseC1=""
will work for both scenarios, butISBLANK(C1)
will return false ifC1
contains a""
from an IF formula. Your response made it sound like you could use either one in any situation. – Vagrancy