With your sample data in A1:B8
and this list in D1:D5
1
2
3
4
5
This regular formula begins the list of 5 highest totals:
E1: =LARGE(INDEX(SUMIF($A$2:$A$9,(FREQUENCY($A$2:$A$8,$A$2:$A$8)>0)*$A$2:$A$9,$B$2:$B$9),0),D1)
Copy that formula down through E5
Using your data, these are the results:
200
180
150
125
120
EDITED TO INCLUDE THIS SECTION:
This regular formula returns the ID's for the 5 highest sums...allowing for ties:
Copy that formula down through E5
This are the returned values:
4
3
5
2
6
Is that something you can work with?
Bookmarks