+ Reply to Thread
Results 1 to 8 of 8

Is it possible to have 3 possible outputs with an IF/AND formula?

  1. #1
    Forum Contributor
    Join Date
    02-18-2020
    Location
    Ottawa, ON
    MS-Off Ver
    Professional Plus 2010
    Posts
    120

    Lightbulb Is it possible to have 3 possible outputs with an IF/AND formula?

    I am using the following formula to output a highlighted Red "Action Required" text when a cell is empty:

    =IF(AND(K7<>"", H8>=""), "SEND SHIPPING OPTIONS TO CUSTOMER", "No Action Required")

    What I WANT to be able to do is to input another variable in that equation, that would compute the following:

    IF K7 is not blank, and H8 is blank = "SEND SHIPPING OPTIONS TO CUSTOMER"
    IF K7 is not blank, and H8 is not blank, and K8 IS blank = "WAITING ON CUSTOMER REPLY"
    IF K7 is not blank, and H8 is not blank, and K8 is not blank = "No Action Required"

    Is this possible to do? To have 3 separate options for outputted text in a formula?
    Last edited by Keegan1116; 02-21-2020 at 10:17 AM.

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

    Re: Is it possible to have 3 possible outputs with an IF/AND formula?

    Yes:

    =IF(AND(K7<>"", H8=""), "SEND SHIPPING OPTIONS TO CUSTOMER", IF(AND(K7<>"", H8<>"",K8=""),"WAITING ON CUSTOMER REPLY","No Action Required"))
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    02-18-2020
    Location
    Ottawa, ON
    MS-Off Ver
    Professional Plus 2010
    Posts
    120

    Re: Is it possible to have 3 possible outputs with an IF/AND formula?

    Ahhhh thank you so much!! This will apply to like 100 other equations I'd like to input. :D

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

    Re: Is it possible to have 3 possible outputs with an IF/AND formula?

    You're welcome.

  5. #5
    Forum Contributor
    Join Date
    02-18-2020
    Location
    Ottawa, ON
    MS-Off Ver
    Professional Plus 2010
    Posts
    120

    Re: Is it possible to have 3 possible outputs with an IF/AND formula?

    Can I also ask, is it possible to do this exact same thing with 4 outcomes?
    If so, what would be the formula template?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,418

    Re: Is it possible to have 3 possible outputs with an IF/AND formula?

    Yes!

    =IF(NEWTEST,NEW_OUTCOME,IF(AND(K7<>"", H8=""), "SEND SHIPPING OPTIONS TO CUSTOMER", IF(AND(K7<>"", H8<>"",K8=""),"WAITING ON CUSTOMER REPLY","No Action Required")))

  7. #7
    Forum Contributor
    Join Date
    02-18-2020
    Location
    Ottawa, ON
    MS-Off Ver
    Professional Plus 2010
    Posts
    120

    Re: Is it possible to have 3 possible outputs with an IF/AND formula?

    This is awesome. Thanks again!!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,418

    Re: Is it possible to have 3 possible outputs with an IF/AND formula?

    Have a play now. Set yourself some tasks and work through them - this way you will better understand the syntax.

+ 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] Nested IF formula with multiple calculations as outputs?
    By Masquette in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2017, 10:54 AM
  2. Sorting Formula Outputs
    By Kvothe12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2016, 02:18 PM
  3. Replies: 5
    Last Post: 04-11-2015, 09:39 AM
  4. [SOLVED] Getting different formula outputs for different given inputs
    By Jay Pee in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-12-2013, 04:19 AM
  5. Formula for different time periods with proper outputs
    By bartekb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-24-2012, 11:14 AM
  6. Formula with muliple outputs . . .
    By MichaelJohn33 in forum Excel General
    Replies: 5
    Last Post: 08-15-2009, 05:32 PM
  7. Replies: 2
    Last Post: 02-23-2005, 09:37 PM

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