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

前端 未结 9 486
闹比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:13

    If you've got a cell filled with spaces or blanks, you can use:

    =Len(Trim(A2)) = 0
    

    if the cell you were testing was A2

提交回复
热议问题