+ Reply to Thread
Results 1 to 5 of 5

Thread: Return name with largest value in multiple column array

  1. #1
    Registered User
    Join Date
    10-13-2009
    Location
    Stavanger
    MS-Off Ver
    Excel 2007
    Posts
    15

    Return name with largest value in multiple column array

    Hi

    I have a list of names in column A. In Column B to M there are listed scores in a competition.
    Example: in column A I have the names Frank, William and Peter. In the columns behind these names (B to M) there are stated numbers as scores in a test. In this table I am able to see who has the best average score.
    I addition I would like to have a top 5 list of these scores in a different table, and I am able to list the top 5 scores by adding a LARGE formula. What I am struggling to add in the top 5 table is who own this specific score. To be more specific I want to relate the LARGE value with the name in the A column.
    I have tried to search for this, however I have only been able to find solutions with match and index formulas. These seems to not work for the LARGE formula with multiple columns.
    Appreciate any help. Thank you.
    Last edited by saslotteroy; 01-24-2012 at 05:15 PM.

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

    Re: Return name with largest value in multiple column array

    See attachment.

    If you names are in A2:A12 and respective averages are in F2:F12,

    Then list your top 5 scores in say K2:K6 with formula:

    =LARGE($F$2:$F$12,ROWS($A$2:$A2)) copied down 5 cells.

    Then in L2 enter:

    =INDEX($A$2:$A$12,SMALL(IF($F$2:$F$12=K2,ROW($A$2:$A$12)-MIN(ROW($A$2:$A$12))+1),COUNTIF(K$2:K2,K2)))

    confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down.
    Attached Files Attached Files
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    10-13-2009
    Location
    Stavanger
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Return name with largest value in multiple column array

    Hi NBVC

    I was probably not too clear in my thread. Sorry about that.
    What I would like to show is a top list of all scores. This means that one person can show up several times in the list.
    So I will have to find data in several (multiple) columns, and not only one as in your example (F2:F12). For example F2:L12.
    Hopefully this made it a bit clearer.
    Thanks for the effort anyway!

  4. #4
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Return name with largest value in multiple column array

    Do you mean as per attached...

    So score data is in B2:D12

    in K2 for largest scores:

    =LARGE($B$2:$D$12,ROWS($A$2:$A2))

    copied down

    in L2 for names:

    =INDEX($A$2:$A$12,SMALL(IF($B$2:$D$12=K2,ROW($A$2:$A$12)-MIN(ROW($A$2:$A$12))+1),COUNTIF(K$2:K2,K2)))

    confirmed with CTRL+SHIFT+ENTER and copied down.
    Attached Files Attached Files
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    10-13-2009
    Location
    Stavanger
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Return name with largest value in multiple column array

    Yes!
    Thank you very much.
    Appreciate your help.

+ 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.2.0