+ Reply to Thread
Results 1 to 10 of 10

A simple vlookup proving to be not so simple

  1. #1
    Registered User
    Join Date
    11-22-2017
    Location
    Pittsburgh, PA
    MS-Off Ver
    15.40
    Posts
    12

    A simple vlookup proving to be not so simple

    Hi there,

    Can someone please help me with a simple vlookup statement?

    The attached spreadsheet contains 3 observations (rows), each of which has 3 outcomes (columns). The spreadsheet then determines, for each observation, the minimum value of the 3 outcomes ("Mini Max").

    "Max" then determines what the largest value of these three minimums are.

    I need "Winner" to get the index number for the trial associated with that maximum minimum. In this example, it would return the "2" from column B when the maximum minimum value is 502, or it would return 4 if the maximum minimum value was 199.

    If anyone could help I would be eternally grateful
    Attached Files Attached Files
    Last edited by dominicexcel; 04-13-2018 at 05:15 PM.

  2. #2
    Registered User
    Join Date
    11-22-2017
    Location
    Pittsburgh, PA
    MS-Off Ver
    15.40
    Posts
    12

    Re: A simple vlookup proving to be not so simple

    *correction: G1 should be titled "Min", H8 should be titled "Maxi Min"

  3. #3
    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,410

    Re: A simple vlookup proving to be not so simple

    Try this in G9:

    =SUMPRODUCT((C2:E7=G8)*(B2:B7))
    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.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: A simple vlookup proving to be not so simple

    Formula for G9

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  5. #5
    Registered User
    Join Date
    11-22-2017
    Location
    Pittsburgh, PA
    MS-Off Ver
    15.40
    Posts
    12

    Re: A simple vlookup proving to be not so simple

    Thank you both so much! Really appreciate the help and the quick responses

    Can anyone explain why these formulas work? AliGW, I can't for the life of me figure out how =sumproduct works in your solution, and mehmetcik, was wondering if you could explain how your solution is able to look at the values from column B (is it the 0)?

    Thanks again!

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: A simple vlookup proving to be not so simple

    My Solution only looks at the range ,G2:G7. The 0 specifies an exact match. In your sample the position in G2:G7 is your result.

  7. #7
    Registered User
    Join Date
    11-22-2017
    Location
    Pittsburgh, PA
    MS-Off Ver
    15.40
    Posts
    12

    Re: A simple vlookup proving to be not so simple

    Oh okay that makes sense. So just to make sure I understand, would your solution only work when the observation numbers are sequential and start from 1?

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

    Re: A simple vlookup proving to be not so simple

    To see how my solution works, use Evaluate Formula on the Formulas Ribbon to step through it. The first section generates a 3-column array of TRUE/FALSE values that resolve to 1 or 0. The 1 in this array is then multiplied by the number in the second array that is on the same row.

    1*2 = 2

    If 199 is the lookup value, it will return 4.
    Last edited by AliGW; 04-13-2018 at 05:48 PM.

  9. #9
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: A simple vlookup proving to be not so simple

    Yes in this scenario,

    However you can add a constant or use the offset or the index functions if your requirement is more complicated.

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


    or

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

  10. #10
    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,410

    Re: A simple vlookup proving to be not so simple

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Simple (?) chart prob--Needing a simple solution!
    By baloo308 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-06-2016, 12:24 PM
  2. Replies: 4
    Last Post: 12-07-2012, 11:49 AM
  3. HELP! Simple thing proving tricky! Horizontal/Vertical formula auto copy
    By Pudding in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-22-2012, 10:08 AM
  4. A simple question requiring a simple answer
    By Pedros in forum Excel General
    Replies: 3
    Last Post: 07-18-2006, 06:45 AM
  5. Simple Simple Excel usage question
    By BookerW in forum Excel General
    Replies: 1
    Last Post: 06-23-2005, 05:05 PM
  6. Make it more simple or intuitive to do simple things
    By Vernie in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-16-2005, 12:06 AM
  7. Posting data from a simple form to a simple database
    By clacka in forum Excel General
    Replies: 0
    Last Post: 01-30-2005, 04:37 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