Top 5 Scores

C

coolblueshot

Greetings,

I need some help in creating a function.

Example:

A B
1 John 25
2 Mary 50
3 Tim 35
4 Todd 15
5 Nicole 5
6 Kathy 75
7 Nic 25
8 Justin 100
9 Harley 125
10 Mercedes 125

I need a function that will find the top 5 highest scores from column B
and return the corresponding name from column A. In the above example,
it should return Merceds, Harley, Justin, Kathy, Mary.

Can someone help? Thanks!
 
P

Paul B

have a look here for a way to do it,

http://www.cpearson.com/excel/rank.htm

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
D

Domenic

Assuming that A2:B11 contains the data, try the following which will
take into consideration ties for 5th place...

C1: 5

(This indicates that you want a Top 5 list. If, for example, you want a
Top 10, enter 10 instead.)

D1:

=COUNTIF(B2:B11,">="&LARGE(B2:B11,C1))

E2, copied down:

=IF(ROWS(E$2:E2)<=$D$1,LARGE($B$2:$B$11,ROWS(E$2:E2)),"")

F2, copied down:

=IF(E2<>"",INDEX($A$2:$A$11,SMALL(IF($B$2:$B$11=E2,ROW($B$2:$B$11)-ROW($B
$2)+1),COUNTIF($E$2:E2,E2))),"")

Note that this formula needs to be confirmed with CONTROL+SHIFT+ENTER,
not just ENTER.

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top