+ Reply to Thread
Results 1 to 8 of 8

Find Highest Match from Another Column

Hybrid View

  1. #1
    Registered User
    Join Date
    12-09-2014
    Location
    Bristol
    MS-Off Ver
    Office 365
    Posts
    6

    Find Highest Match from Another Column

    Hello,

    I would like to use Excel formulas (not VBA code) to select the highest number from the corresponding column that matches the value given. I have attached a file as an example:

    Say the value/name I am interested is 'Lee'. As shown on the attached, the highest number associated with Lee is 3. Hence, I would need the value 3 to be returned.
    Say the value/name I am interested is 'Paul'. As shown on the attached, the highest number associated with Paul is 4. Hence, I would need the value 4 to be returned.

    I have been pulling my hair out with this one, so if anyone can help it will be very much appreciated!

    Many thanks!

    Lee
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find Highest Match from Another Column

    Using your posted workbook
    AND
    D1: a name to match....LEE

    This ARRAY FORMULA, completed by holding down CTRL and SHIFT when you press ENTER (instead of just pressing ENTER)
    returns the max value associated with that name:
    E1: =MAX(IF(D5:D11=D1,E5:E11))
    However, since nobody I work with EVER remembers to C+S+E when editing an array formula,
    this regular formula also returns the correct value:
    E1: =MAX(INDEX((D5:D11=D1)*(E5:E11),0))
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-09-2014
    Location
    Bristol
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Find Highest Match from Another Column

    Thanks so much, Ron. It works a treat. Your help is much appreciated.

    Kind regards,

    Lee

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find Highest Match from Another Column

    Glad you got something you can use!

    If that resolves your issue, please take a moment to mark this thread as SOLVED (from the Thread Tools menu)

  5. #5
    Registered User
    Join Date
    12-09-2014
    Location
    Bristol
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Find Highest Match from Another Column

    Thanks to Tony and Alkey too!

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

    Re: Find Highest Match from Another Column

    You're welcome. We appreciate the feedback!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find Highest Match from Another Column

    With name in G5

    =MAX(IF(D5:D11=G5,E5:E11))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Row\Col
    D
    E
    F
    G
    H
    5
    Paul
    1
    Lee
    3
    6
    Lee
    3
    7
    Robin
    2
    8
    Lee
    2
    9
    Susan
    5
    10
    Paul
    4
    11
    Mike
    2
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

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

    Re: Find Highest Match from Another Column

    Here's another one if you're using Excel 2010 or later.

    D1 = some name

    =AGGREGATE(14,6,E5:E11/(D5:D11=D1),1))

+ 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] Re: Find lowest 5 numbers in column A with highest values in column B
    By jd16 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2013, 02:08 AM
  2. Replies: 4
    Last Post: 10-06-2013, 10:40 AM
  3. Find lowest 5 numbers in column A with highest values in column B
    By dmccoy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-06-2013, 09:22 AM
  4. [SOLVED] INDEX-MATCH to find next highest value (unsorted data)
    By Lady222 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-26-2012, 10:15 AM
  5. looking up figures in a column and selecting next highest match
    By jane-rawlins@beeb.net in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2005, 09:05 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