IF statement: how to leave cell blank if condition is false (“” does not work)

前端 未结 15 2022
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 12:14

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 co

相关标签:
15条回答
  • 2020-12-04 12:46

    Here is what I do

    =IF(OR(ISBLANK(AH38),AH38=""),"",IF(AI38=0,0,AH38/AI38))
    

    Use the OR condition OR(ISBLANK(cell), cell="")

    0 讨论(0)
  • 2020-12-04 12:46

    I think all you need to do is to set the value of NOT TRUE condition to make it show any error then you filter the errors with IFNA().

    Here is what your formula should look like =ifna(IF(A1=1,B1,NA()))

    Here is a sheet that returns blanks from if condition : https://docs.google.com/spreadsheets/d/15kWd7oPWQmGgYD_PLz9YpIldwnKWoXPHtHQAT3ulqVc/edit?usp=sharing

    0 讨论(0)
  • 2020-12-04 12:47

    Instead of using "", use 0. Then use conditional formating to color 0 to the backgrounds color, so that it appears blank.

    Since blank cells and 0 will have the same behavior in most situations, this may solve the issue.

    0 讨论(0)
提交回复
热议问题