+ Reply to Thread
Results 1 to 3 of 3

Data Ranking not Working!

  1. #1
    Registered User
    Join Date
    03-08-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Data Ranking not Working!

    Hi there, long time reader, first time poster.

    I am having trouble getting this equation to work correctly:

    "=INDEX(B:B,MATCH(MAX(LARGE(N:N,1)),N:N,0))".

    I have names in Column B and scores in Column N. The equation does correctly displays the highest score of Column N. However, it does not work correctly if two of the scores are the same.

    Column B Column N
    John 89
    Jacob 91
    Max 82
    Ben 91
    Sam 85

    First Place: Jacob
    Second Place: Jacob (this should be Ben if Jacob is first place)
    Third Place: John

    Does anyone know what I'm doing wrong?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Data Ranking not Working!

    why is ben second if he has the same score?
    you might try unique ranking in a spare columm then match against that
    enter in say O1
    =RANK(N1,$N$1:$N$5)+COUNTIF($N$1:N1,N1)-1
    and drag down this will rank them if 2 are the same the first one down the list gets ranked higher
    then you can simply index match on 1,2,3,4,5,
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    03-08-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Data Ranking not Working!

    Quote Originally Posted by martindwilson View Post
    why is ben second if he has the same score?
    you might try unique ranking in a spare columm then match against that
    enter in say O1
    =RANK(N1,$N$1:$N$5)+COUNTIF($N$1:N1,N1)-1
    and drag down this will rank them if 2 are the same the first one down the list gets ranked higher
    then you can simply index match on 1,2,3,4,5,
    Thank you! It works!

+ 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