+ Reply to Thread
Results 1 to 8 of 8

IF statement to return empty value on false

  1. #1
    Registered User
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    90

    IF statement to return empty value on false

    Greetings everyone.

    I am having a little difficulty getting the below formula to return a NULL(empty) value if false. I cannot seem to understand why my formula will not work... The true part of the statement works perfectly, however, when the code is False it puts the word FALSE in the cell...
    Please Login or Register  to view this content.
    Thanks in advance.
    David

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    6,829

    Re: IF statement to return empty value on false

    =IF('Wooden Bldg'!$B$5=TRUE,CONCATENATE(Data!$G$1," base cost ="),"")
    Please Avoid Joining My List Of Blocked Users by:

    Saying Please and Thank you.

    Making requests not demands.

    Checking back on your post. I will not edit any post after 4 days.

    Marking threads as closed once your issue is resolved. How? The tools at the top

    Any reputation (*) points appreciated. None of us gets paid here.

    If you found someone's input useful, please take a second to click the * at the bottom left to let them know

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    19,221

    Re: IF statement to return empty value on false

    I think you have a bracket in the wrong place - try it like this:

    =IF('Wooden Bldg'!$B$5=TRUE,CONCATENATE(Data!$G$1," base cost ="),"")

    You can shorten it a little bit, by doing this:

    =IF('Wooden Bldg'!$B$5,CONCATENATE(Data!$G$1," base cost ="),"")

    As the IF function evaluates the comparison to either TRUE or FALSE.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    90

    Re: IF statement to return empty value on false

    Thanks for the prompt reply! When I apply the formula, the formula is changed by excel to:

    Please Login or Register  to view this content.
    In which case the word false is still appearing when the statement is in fact false. Any ideas

  5. #5
    Registered User
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    90

    Re: IF statement to return empty value on false

    Thanks Pete_UK for the formula. You nailed it!

    also want to thank mehmetcik for your assistance also. I don't know what I would do without ya'll!

    Sincerely,
    David

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    19,221

    Re: IF statement to return empty value on false

    My formula is the same as that proposed by mehmetcik, so maybe you mis-typed his when you tried it.

    Glad you got it working though.

    Pete

  7. #7
    Registered User
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    90

    Re: IF statement to return empty value on false

    Oops, my bad

    Thanks everyone!

    David

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2019 (Win 10 - Work) & 365 Subscription Insider (Win 10 - Home)
    Posts
    34,190

    Re: IF statement to return empty value on false

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1