Return a value of '1' a referenced cell is empty

前端 未结 9 487
闹比i
闹比i 2020-12-17 07:47

In Excel, I need to return a value of 1 if a referenced cell is empty

I can do it if the value is zero but how do I do it if it is empty?

9条回答
  •  不思量自难忘°
    2020-12-17 08:07

    Paxdiablo's answer is absolutely correct.

    To avoid writing the return value 1 twice, I would use this instead:

    =IF(OR(ISBLANK(A1),TRIM(A1)=""),1,0)
    

提交回复
热议问题