+ Reply to Thread
Results 1 to 4 of 4

IF with 3 scenarios?

  1. #1
    Forum Contributor
    Join Date
    08-14-2016
    Location
    Warrington, England
    MS-Off Ver
    MS 365
    Posts
    174

    IF with 3 scenarios?

    Hi all,

    I have an IF formula as shown below:

    =IFERROR(IF(I6>I33,1,2),"3")

    So if I6 is greater than I33 it should return a 1, if not then a 2, and if there is an error it will return a 3.

    I have second formula which then needs to return a value based on the above:

    =IF(X21=2,1,2)

    This formula will return the opposite value of the first formula, so if the first formula returns a 1, then this must return a 2 and vice versa however I also need to it to return a 3 if the original formula returns a 3 as a result of the IFERROR.

    I am sure this is probably something really basic but I can't seem to get it work so any help would be much appreciated!
    Excel Beginner

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

    Re: IF with 3 scenarios?

    First of all, get rid of the quote marks:

    =IFERROR(IF(I6>I33,1,2),3)

    Next try this:

    =IF(X21=2,1,IF(X21=3,3,2))
    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 Contributor
    Join Date
    08-14-2016
    Location
    Warrington, England
    MS-Off Ver
    MS 365
    Posts
    174

    Re: IF with 3 scenarios?

    Hi Ali,

    Nice one! That did the trick!

    Thank you very much!

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

    Re: IF with 3 scenarios?

    You're welcome!

+ 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. Scenarios
    By annieshaw in forum Excel General
    Replies: 2
    Last Post: 10-18-2011, 08:59 PM
  2. Scenarios
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 AM
  3. Scenarios
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] Scenarios
    By JosefS in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Scenarios
    By JosefS in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. [SOLVED] Scenarios
    By JosefS in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. Scenarios
    By tfaivre in forum Excel General
    Replies: 1
    Last Post: 01-05-2005, 10:06 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