![]() |
Top 5 Scores
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! |
Top 5 Scores
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 wrote in message oups.com... 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! |
Top 5 Scores
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:E 2)),"") 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! In article .com, wrote: 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! |
All times are GMT +1. The time now is 12:53 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com