Here's an approach that will take ties into consideration...
D2, copied down:
=RANK(B2,$B$2:$B$100)+COUNTIF($B$2:B2,B2)-1
E1:
=MAX(IF(B2:B100=INDEX(B2:B100,MATCH(F1,D2:D100,0)) ,D2:D100))-F1
...entered using CONTROL+SHIFT+ENTER.
F1: contains your Top N parameter, in this case 25
G2, copied down:
=IF(ROW()-ROW(G$2)+1<=$E$1+$F$1,INDEX(A$2:A$100,MATCH(ROW()-ROW(G$2)+1,$D$2:$D$100,0)),"")
If you want to display the corresponding information, copy this formula
across and down.
Hope this helps!
--
Domenic
------------------------------------------------------------------------
Domenic's Profile:
http://www.excelforum.com/member.php...o&userid=10785
View this thread:
http://www.excelforum.com/showthread...hreadid=273740