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

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

    You can do something like this to show blank space:

    =IF(AND((E2-D2)>0)=TRUE,E2-D2," ")
    

    Inside if before first comma is condition then result and return value if true and last in value as blank if condition is false

提交回复
热议问题