+ Reply to Thread
Results 1 to 9 of 9

Getting a "FALSE" return with a nested IF(OR) formula.

Hybrid View

  1. #1
    Registered User
    Join Date
    03-31-2021
    Location
    Atlanta, GA US
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO
    Posts
    4

    Getting a "FALSE" return with a nested IF(OR) formula.

    I keep getting a "FALSE" return on the following nested formula:

    =IF(OR($Q$4=12,$Q$4=6,$R$4=4,$R$4=12),IF(OR($D16="rtu",$D16="ahu"),$AC16,IF($D16="Aa",$AG16,IF(OR($D16="spl",$D16="SHP",$D16="SWUD"),$AE16,""))))

    I think it may have something to do with improper parenthesis use?

    Any help would be appreciated.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,237

    Re: Getting a "FALSE" return with a nested IF(OR) formula.

    What result do you expect and why? What do you think the formula should be doing?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-31-2021
    Location
    Atlanta, GA US
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO
    Posts
    4

    Re: Getting a "FALSE" return with a nested IF(OR) formula.

    I am expecting a empty blank cell, because none of the values in the first IF(OR) formula were true.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,237

    Re: Getting a "FALSE" return with a nested IF(OR) formula.

    That doesn’t tell me what you think the formula does or what you want it to do. There are arguments after the first OR, and if any of them are met, they’ll cancel out the first OR.

    So, once again, explain in words what you are trying to do.

  5. #5
    Registered User
    Join Date
    03-31-2021
    Location
    Atlanta, GA US
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO
    Posts
    4

    Re: Getting a "FALSE" return with a nested IF(OR) formula.

    None of the conditions in the first IF(OR) are true so it should skip to the "" and return a blank cell.

    If any of the conditions in the first IF(OR) statement were true then it should look at the value of cell D16 and, depending on the value, it would return the value of cell AC16, AG16, or AE16.

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,168

    Re: Getting a "FALSE" return with a nested IF(OR) formula.

    The "" you have at the end of the formula is only if the final IF isn't true. If you want to return something if the first OR isn't true, enter it between the last 2 parentheses:

    =IF(OR($Q$4=12,$Q$4=6,$R$4=4,$R$4=12),IF(OR($D16="rtu",$D16="ahu"),$AC16,IF($D16="Aa",$AG16,IF(OR($D16="spl",$D16="SHP",$D16="SWUD"),$AE16,""))),"1st OR not true")

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Getting a "FALSE" return with a nested IF(OR) formula.

    Insert "" right before the last ")"

    ,$AE16,""))))

    become

    ,$AE16,""))),"")
    Quang PT

  8. #8
    Registered User
    Join Date
    03-31-2021
    Location
    Atlanta, GA US
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO
    Posts
    4

    Re: Getting a "FALSE" return with a nested IF(OR) formula.

    Thanks Gregb11 and bebo021999!

    That worked!!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,237

    Re: Getting a "FALSE" return with a nested IF(OR) formula.

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Nested IF formula returning "FALSE" instead of a numeric value
    By Kevin DeMartini in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2017, 04:12 AM
  2. Please Help: formula for "If false then return last true value"
    By sizement in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-28-2017, 07:56 AM
  3. [SOLVED] Nested HLOOKUP returns "FALSE" in cell where result should be "0.00"
    By gammccubbin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2016, 09:49 AM
  4. Dynamic formula in VBA giving "FALSE" as return
    By kmlloyd in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2015, 11:24 AM
  5. [SOLVED] Nasty nested IF function will only return "value if false"
    By Postlki1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-20-2013, 05:19 AM
  6. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  7. Replies: 5
    Last Post: 06-15-2010, 10:51 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