+ 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 Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    7,596

    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,646

    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,646

    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
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    41,049

    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)

Similar Threads

  1. If(And) Statement for sorting time stamp to return true or false value
    By engineerd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-28-2017, 03:12 PM
  2. Replies: 1
    Last Post: 12-13-2016, 12:23 AM
  3. [SOLVED] Multiple ifs to return more than true or false statement
    By Vince1199s in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-08-2016, 01:12 PM
  4. Replies: 4
    Last Post: 11-03-2014, 12:40 PM
  5. How to Leave Truly Empty Cell if Criteria for IF statement is FALSE
    By lowprofile in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2014, 01:24 PM
  6. How to return a value instead of TRUE/FALSE with IF,OR,AND statement
    By jgoat23 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-14-2014, 10:30 AM
  7. Replies: 9
    Last Post: 01-21-2013, 01:54 AM

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