+ Reply to Thread
Results 1 to 9 of 9

Hide FALSE results from IF formula

  1. #1
    Registered User
    Join Date
    02-11-2024
    Location
    Chicago
    MS-Off Ver
    2021
    Posts
    59

    Hide FALSE results from IF formula

    I have this formula in a column: =IFERROR(IF(L4<0,1*(100/ABS(L4)),IF(L4>0,1*(ABS(L4)/100))),"")

    But when there are no values in cells, it returns FALSE. How do I remove FALSE results?

    Thanks in advance

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Hide FALSE results from IF formula

    Hi Idaba,

    Do you know about the "Evaluate Formula" tool on the Formulas Tab? If you select a cell with your formula and step through it with this tool, you might discover the answer yourself....

    https://www.youtube.com/watch?v=Z-ZEE4yJHeM
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-11-2024
    Location
    Chicago
    MS-Off Ver
    2021
    Posts
    59

    Re: Hide FALSE results from IF formula

    Unfortunately, I do not understand what "Evaluate Formula" is showing me. It does indicate that my < or > portion of my formula is TRUE. So why the empty cells return FALSE is beyond my comprehension.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,763

    Re: Hide FALSE results from IF formula

    It is the IF function that returns FALSE, and that is because you haven't told it what to do instead. The syntax for the function is:

    IF(condition, value_if_true, value_if_false)

    In your second IF function above, you have not specified what to do if the value is FALSE, so you need to change it to:

    ... IF(L4>0,1*(ABS(L4)/100,"") ...

    to return a blank instead.

    Hope this helps.

    Pete

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,484

    Re: Hide FALSE results from IF formula

    You have two IFs. The first tests L4<0 and the second tests for L4>0. Presumably, the issue is when L4=0.

    Pete has explained why the issue occurs and what to do about it.

    However, you could probably simplify the formula. These all produce the same outcome, apart from the FALSE in the first one.

    =IFERROR(IF(L4<0,1*(100/ABS(L4)),IF(L4>0,1*(ABS(L4)/100))),"")
    =IFERROR(IF(L4<0,1*(100/ABS(L4)),1*(ABS(L4)/100)),"")
    =IFERROR(IF(L4<0,1*100/ABS(L4),1*ABS(L4)/100),"")
    =IFERROR(IF(L4<0,100/ABS(L4),ABS(L4)/100),"")
    =IF(L4<0,100/ABS(L4),ABS(L4)/100)
    Last edited by TMS; 04-17-2024 at 07:08 PM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Registered User
    Join Date
    02-11-2024
    Location
    Chicago
    MS-Off Ver
    2021
    Posts
    59

    Re: Hide FALSE results from IF formula

    Thank you both for taking the time to resolve this issue. Both solutions worked perfectly. As it turns out, I've used IF(ISBLANK) on the sheet from which I was pulling data into that formula. The cells without values are returned FALSE by IF(ISBLANK) and so my IF formula was returning that FALSE result (I think?) Unfortunately, I'm overly fastidious on clean looking sheets. Perhaps that's why I get into all this trouble. Thanks again.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,763

    Re: Hide FALSE results from IF formula

    Glad to have helped, and thanks for the rep.

    Pete

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,484

    Re: Hide FALSE results from IF formula

    You're welcome. Thanks for the rep.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,484

    Re: Hide FALSE results from IF formula

    Quote Originally Posted by IdabaMalouki View Post
    Thank you both for taking the time to resolve this issue. Both solutions worked perfectly. As it turns out, I've used IF(ISBLANK) on the sheet from which I was pulling data into that formula. The cells without values are returned FALSE by IF(ISBLANK) and so my IF formula was returning that FALSE result (I think?) Unfortunately, I'm overly fastidious on clean looking sheets. Perhaps that's why I get into all this trouble. Thanks again.
    If you wanted us to review this in more detail, you would need to share a sample workbook that demonstrates the problem.

+ 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. [SOLVED] IF Formula Shown FALSE Results
    By poncosh98 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-07-2022, 06:38 AM
  2. [SOLVED] Formula that produces True or False results
    By rosafranco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2022, 11:28 PM
  3. [SOLVED] Formula Results as False when True
    By tjb1122 in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 12-16-2020, 12:08 PM
  4. Formula to look at two columns and find the False results
    By WolvesFan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2019, 04:14 PM
  5. [SOLVED] Formula rendering FALSE results when it shouldn't
    By lsargent in forum Excel General
    Replies: 7
    Last Post: 06-25-2015, 01:10 PM
  6. Replies: 14
    Last Post: 06-27-2012, 04:26 PM
  7. Formula that will give me True or False results
    By Reenee in forum Excel General
    Replies: 2
    Last Post: 02-02-2009, 10:36 AM

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