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

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

    This shall work (modification on above, workaround, not formula)

    Modify your original formula: =IF(A1=1,B1,"filler")

    Put filter on spreadsheet, choose only "filler" in column B, highlight all the cells with "filler" in them, hit delete, remove filter

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

    To Validate data in column A for Blanks

    Step 1: Step 1: B1=isblank(A1)

    Step 2: Drag the formula for the entire column say B1:B100; This returns Ture or False from B1 to B100 depending on the data in column A

    Step 3: CTRL+A (Selct all), CTRL+C (Copy All) , CRTL+V (Paste all as values)

    Step4: Ctrl+F ; Find and replace function Find "False", Replace "leave this blank field" ; Find and Replace ALL

    There you go Dude!

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

    This should should work: =IF(A1=1, B1)

    The 3rd argument stating the value of the cell if the condition is not met is optional.

    0 讨论(0)
  • 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

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

    The formula in C1

    =IF(A1=1,B1,"")
    

    is either giving an answer of "" (which isn't treated as blank) or the contents of B1.

    If you want the formula in D1 to show TRUE if C1 is "" and FALSE if C1 has something else in then use the formula

    =IF(C2="",TRUE,FALSE)
    

    instead of ISBLANK

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

    If you want to use a phenomenical (with a formula in it) blank cell to make an arithmetic/mathematical operation, all you have to do is use this formula:

    =N(C1)
    

    assuming C1 is a "blank" cell

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