+ Reply to Thread
Results 1 to 5 of 5

IF AND with 3 outcomes

  1. #1
    Registered User
    Join Date
    12-04-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    79

    IF AND with 3 outcomes

    Hi all, I cant seem to get the flow of this right.

    I want my formula to return 3 different outcomes. Yes, No, or X .

    IF A1 = "Y" AND B1 is not blank then the result is "Yes"
    IF A1 is "Y" BUT B1 is blank then the result is "No"
    IF A1 is not "Y" then the answer is "X"

    How do you use IF and AND to create that flow of formula, or is there a better way?

    Thanks so much

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

    Re: IF AND with 3 outcomes

    Try this:

    =IF(A1<>"Y","x",IF(B1="","No","Yes"))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-04-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    79

    Re: IF AND with 3 outcomes

    I think it works, but I've realised that cell B1 actually contains an array formula that is returning a date, this is messing with things because technically, whilst B1 appears blank, it is possibly not. The formula in B1 is {=MAX(IF($V6:$AL6=O$5,$W6:$AM6))}. Not sure how to navigate around that as I think its messing it up.
    THANK YOU

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: IF AND with 3 outcomes

    =IF(A1<>"Y","x",IF(B1=0,"No","Yes")) perhaps

  5. #5
    Registered User
    Join Date
    12-04-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    79

    Re: IF AND with 3 outcomes

    Brilliant,

    I think the final Yes and No were round the wrong way, but this solved it. Thank you

+ 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 statement with three possible outcomes
    By RachelMads02 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2016, 12:47 PM
  2. List all possible outcomes
    By pmhtuk in forum Excel General
    Replies: 1
    Last Post: 08-02-2016, 07:12 AM
  3. [SOLVED] IF Function with 3 outcomes
    By McCaughley7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-07-2016, 03:37 AM
  4. All possible Outcomes for C to WIN overall ?
    By Rahzelsmh in forum Excel General
    Replies: 0
    Last Post: 04-06-2016, 11:13 AM
  5. [SOLVED] Generate all possible outcomes
    By AmpleFlame in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-06-2013, 07:46 PM
  6. List of possible outcomes
    By mikeee in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-27-2010, 09:30 AM
  7. [SOLVED] 256 possible outcomes
    By MarkN in forum Excel General
    Replies: 8
    Last Post: 06-28-2006, 03:40 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