+ Reply to Thread
Results 1 to 11 of 11

IF statement: 3 options

  1. #1
    Registered User
    Join Date
    08-03-2016
    Location
    Phoenixville
    MS-Off Ver
    MS Office 2013
    Posts
    14

    IF statement: 3 options

    Hey all,

    I want to create an IF statement that chooses between three values, (X, Y, Z). If, say, Y is the greatest of the three, I want the statement to show "Y is true", and do the same for X or Z.

    How do I do this? Thanks!

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: IF statement: 3 options

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    08-03-2016
    Location
    Phoenixville
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: IF statement: 3 options

    @mike7952, that does show the maximum value of the three cells, but I want a statement to display based on that maximum.

    Say if I have three ages: 10, 15, 20

    I want an IF statement that if it is true, will say "Jenny is the oldest" for example.

  4. #4
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: IF statement: 3 options

    I think the below formula is what you're looking for based on reading the description of your problem

    Please Login or Register  to view this content.
    Naturally V1,V2, and V3 will be substituted for the actual values or cells.
    Last edited by Xandler; 04-27-2017 at 10:29 AM.

  5. #5
    Registered User
    Join Date
    04-17-2017
    Location
    Mexico
    MS-Off Ver
    2016
    Posts
    48

    Re: IF statement: 3 options

    Try this..... instead of "TRUE", put whatever you want....

    =IF(A1=(MAX(A1:C1)),CONCATENATE(A1," ","TRUE"),IF(B1=(MAX(A1:C1)),CONCATENATE(B1," ","TRUE"),IF(C1=MAX(A1:C1),CONCATENATE(C1," ","true"),"")))

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: IF statement: 3 options

    Column A1:A3 houses the names and B1:B3 house their age

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-03-2016
    Location
    Phoenixville
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: IF statement: 3 options

    @JesusTello,

    This is excellent, it returned the value I wanted. Only small thing is, it returned the actual value with the "true" statements I wrote in - is there a way to not have the actual number displaying, just the resulting "true" statement?

  8. #8
    Registered User
    Join Date
    04-17-2017
    Location
    Mexico
    MS-Off Ver
    2016
    Posts
    48

    Re: IF statement: 3 options

    Yes but, it is always going to say just "true" column D. I don't get it...

    Or you want the "true" in the column D E or F, depending in what column from A B or C the max value were?

  9. #9
    Registered User
    Join Date
    08-03-2016
    Location
    Phoenixville
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: IF statement: 3 options

    Below is the screenshot of my spreadsheet. You'll see in B224 where my desired output is. There is the full number (52540...) that I do not want to display, followed by the "Concrete Breakout Controls", which is all I want.

    excelforum.PNG

  10. #10
    Registered User
    Join Date
    04-17-2017
    Location
    Mexico
    MS-Off Ver
    2016
    Posts
    48

    Re: IF statement: 3 options

    This is what you are asking for, but I'm sure is not what you want.

    =IF(A1=(MAX(A1:C1)),CONCATENATE("Concrete Breakout Controls"),IF(B1=(MAX(A1:C1)),CONCATENATE("Concrete Breakout Controls"),IF(C1=MAX(A1:C1),CONCATENATE("Concrete Breakout Controls"),"")))

    in which situations the "Concrete Breakout Controls" is going to change?

    If you sent the file, maybe I can understand better...

  11. #11
    Registered User
    Join Date
    08-03-2016
    Location
    Phoenixville
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: IF statement: 3 options

    @JesusTello,

    Just fixed it; my error was including the cell address in my concatenated parenthesis. The spreadsheet is now working as I wanted it. Thank you for your help, I never knew about this command before. Cheers!

+ 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. IF Statement 2 Options - getting FALSE
    By KNG878 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2016, 01:24 AM
  2. [SOLVED] IF Statement Based on 4 other options.
    By budvegas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2015, 12:49 PM
  3. Options within an IF statement
    By amoto in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 05-10-2013, 05:03 PM
  4. [SOLVED] Excel VBA If Then Statement with Three Different Options
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-29-2012, 03:43 PM
  5. More than 2 options for 'IF' statement
    By brncfan7 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-08-2011, 11:03 AM
  6. Conditional Programming 5 options: Highlighting the whole row using Select Statement
    By Spike Lee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2007, 09:17 AM
  7. [SOLVED] Can an IF statement be used for 3 options?
    By Jambruins in forum Excel General
    Replies: 6
    Last Post: 02-21-2005, 06:06 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