+ Reply to Thread
Results 1 to 4 of 4

Vlookup formula on duplicates, then find max value in adjacent cell, return adjacent cell

  1. #1
    Registered User
    Join Date
    07-21-2015
    Location
    USA
    MS-Off Ver
    2012
    Posts
    1

    Vlookup formula on duplicates, then find max value in adjacent cell, return adjacent cell

    Reference Sheet
    A | B
    5 | Frog

    Data Sheet
    A | B | C
    4 8 Dog
    5 4 Cat
    3 1 Chicken
    5 6 Frog


    On the Reference Sheet in column B i want to have a formula that would look up the value in Reference Sheet column A, in Data Sheet column A
    There will be multiple matches, but it needs to find the one with the largest number in Data Sheet column B, and then return the value in Data Sheet column C

    I've been trying to do this for 2 days! lol

    Thanks

  2. #2
    Registered User
    Join Date
    08-17-2012
    Location
    New York, New York
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Vlookup formula on duplicates, then find max value in adjacent cell, return adjacent c

    If you sort Column B on your Data Sheet from largest to smallest, your VLOOKUP formula will result the one with the largest number. Would that work for you?

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup formula on duplicates, then find max value in adjacent cell, return adjacent c

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Vlookup formula on duplicates, then find max value in adjacent cell, return adjacent c

    For demonstration purposes I've put everything on a single sheet. You'll need to use the appropriate sheet names for your application.

    Data Range
    A
    B
    C
    D
    E
    F
    1
    2
    5
    Frog
    4
    8
    Dog
    3
    5
    4
    Cat
    4
    3
    1
    Chicken
    5
    5
    6
    Frog
    6
    ------
    ------
    ------
    ------
    ------
    ------


    This array formula** entered in B2:

    =INDEX(F2:F5,MATCH(MAX(IF(D2:D5=A2,E2:E5)),IF(D2:D5=A2,E2:E5),0))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] How to find value >0 and return content of adjacent cell...
    By jmufes in forum Excel General
    Replies: 6
    Last Post: 03-06-2021, 02:24 AM
  2. Find specific value in Row, Return Text from Adjacent Cell
    By oneforfive in forum Excel General
    Replies: 5
    Last Post: 07-21-2015, 03:57 PM
  3. [SOLVED] Find text in column and return adjacent cell
    By frostii in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-27-2015, 07:44 PM
  4. Find Value in index and return adjacent cell
    By t2tommy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-09-2013, 01:22 PM
  5. Find text in array & return adjacent cell value
    By econbizer in forum Excel General
    Replies: 13
    Last Post: 10-13-2012, 01:26 AM
  6. [SOLVED] Find cell value and return even number on adjacent cell
    By Surya51 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2012, 01:03 PM
  7. Replies: 11
    Last Post: 04-28-2011, 09: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