+ Reply to Thread
Results 1 to 4 of 4

Logical Test, 3 Values

  1. #1
    Registered User
    Join Date
    04-29-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    2

    Logical Test, 3 Values

    Okay so I know the basic equation for a logic test (=IF(A6>A5,"Choice A","Choice B") but I need to compare 3 values. For example, three fields need to be compared (A5, A6, A7) and the lesser of the three needs to be chosen.

    In know this is basic, I'm a noob.

    Thanks.
    Last edited by vamos; 04-29-2010 at 01:16 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Logical Test, 3 Values

    How about the MIN() function..

    e.g

    =MIN(A5:A7)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Logical Test, 3 Values

    or

    =CHOOSE(MATCH(MIN(A5:A7),A5:A7,0),"X","Y","Z")

    if you want to x,y, or z based on which is the minimum.

    or

    =INDEX({"X","Y","Z"},MATCH(MIN(A1:C1),A1:C1,0))
    Last edited by NBVC; 04-29-2010 at 01:12 PM. Reason: Added more...

  4. #4
    Registered User
    Join Date
    04-29-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    2

    Talking Re: Logical Test, 3 Values

    what the...!?

    that worked like a charm.

    thanks buddy!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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