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

前端 未结 15 2029
爱一瞬间的悲伤
爱一瞬间的悲伤 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:40

    I wanted to add that there is another possibility - to use the function na().

    e.g. =if(a2 = 5,"good",na());

    This will fill the cell with #N/A and if you chart the column, the data won't be graphed. I know it isn't "blank" as such, but it's another possibility if you have blank strings in your data and "" is a valid option.

    Also, count(a:a) will not count cells which have been set to n/a by doing this.

提交回复
热议问题