+ Reply to Thread
Results 1 to 5 of 5

Three criteria using IF function resulting four results

  1. #1
    Registered User
    Join Date
    07-12-2018
    Location
    Antique, Philippines
    MS-Off Ver
    2013
    Posts
    2

    Three criteria using IF function resulting four results

    Good day everyone,

    I have variables X and Y where the criteria follows:

    if 1<X<4 and 1<Y<3, I want to present the text "well graded gravel", otherwise ""

    if 4<X<6 and 1<Y<3, I want to present the text "well graded sand", otherwise ""

    Now, I made this formula

    =IF(OR(AND(F14>1, F14<4), AND(F15<3, F15>1)), "well graded gravel", " ")(OR(AND(F14>4, F14<6), AND(F15<3, F15>1)), "well graded sand", " ")

    but it shows #REF! I tried Show Calculation Steps but still could not figure out what is wrong. Please help me.

    Thanks in advance,
    Mon

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

    Re: Three criteria using IF function resulting four results

    Try this:

    =IF(OR(AND(F14>1, F14<4), AND(F15<3, F15>1)), "well graded gravel", IF(OR(AND(F14>4, F14<6), AND(F15<3, F15>1)), "well graded sand", " "))
    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
    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,518

    Re: Three criteria using IF function resulting four results

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

  4. #4
    Registered User
    Join Date
    07-12-2018
    Location
    Antique, Philippines
    MS-Off Ver
    2013
    Posts
    2

    Re: Three criteria using IF function resulting four results

    Thank you very much, it worked like charm!

  5. #5
    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,518

    Re: Three criteria using IF function resulting four results

    You're welcome!

    It was just a case of getting the syntax right.

+ 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] Countif resulting in wrong results
    By Krameht in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2015, 03:51 PM
  2. [SOLVED] Want all results resulting from index/match
    By snaitaz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2015, 05:57 PM
  3. [SOLVED] Index/Match function to count my criteria results once
    By superboy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-14-2014, 02:29 PM
  4. [SOLVED] Looking up values using multiple criteria, resulting in a funky result
    By 8Jinx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-07-2014, 08:13 PM
  5. Lookup or match function with multiple criteria giving different results
    By Mian USman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-24-2013, 09:15 AM
  6. Multiple criteria arrays in countifs function resulting in incorrect answer
    By laurenmoney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-28-2013, 12:57 PM
  7. Resulting value based on multiple criteria using formulas
    By Hypnopoison in forum Excel General
    Replies: 4
    Last Post: 03-27-2011, 03:58 PM

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