+ Reply to Thread
Results 1 to 4 of 4

Work out highest number and display another column

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Question Work out highest number and display another column

    Hey guys,

    Can you please help, i have a list of people that are in a compertition and accumilate points. How do i get excel 2010 to figure out who has the most points and display the name of that person.

    Daniel

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

    Re: Work out highest number and display another column

    Is there going to be only one max every time?

    If so...

    =INDEX(A1:A10,MATCH(MAX(B2:B10),B2:B10,0))

    where A1:A10 contain the names, and B2:B10 contain the points.

    If not....

    =IFERROR(INDEX(A$1:A$10,SMALL(IF(B$2:B$10=MAX(B$2:B$10),ROW(B$2:B$10)-ROW(B$2)+1),ROWS(B$2:B2))),"")

    confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down as far as needed to get all
    Last edited by NBVC; 08-21-2012 at 03:41 PM.
    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
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Work out highest number and display another column

    Assuming there are no ties, sort your data in descending order. Use a vlookup:
    =VLOOKUP(MAX(SELECT RANGE OF SCORES),SELECT RANGE OF SCORES AND NAMES,2,FALSE)

    Note, this assumes that scores appear in the left hand column and names in the column next to it...
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  4. #4
    Registered User
    Join Date
    08-21-2012
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Work out highest number and display another column

    Cheers NBVC,

    The first statement was the one i was after. I'm sure i will have loads more questions later.

    Many Thanks

+ 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