Try these two formulas to sum top 10 of unique values
enter as a regular formula
Formula:
=SUM(LARGE(INDEX((B2:B20=1)*(A2:A20),0),{1,2,3,4,5,6,7,8,9,10}))
or an array formula
Formula:
=SUM(LARGE(IF(B2:B20=1,A2:A20),ROW(1:10)))
***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER
for helper column use this formula in B2 and copy down
Formula:
=COUNTIF(A$2:A2,A2)
|
A |
B |
C |
D |
1 |
Values |
Helper |
|
Result |
2 |
25 |
1 |
|
288 |
3 |
25 |
2 |
|
|
4 |
32 |
1 |
|
|
5 |
48 |
1 |
|
|
6 |
25 |
3 |
|
|
7 |
37 |
1 |
|
|
8 |
45 |
1 |
|
|
9 |
32 |
2 |
|
|
10 |
8 |
1 |
|
|
11 |
12 |
1 |
|
|
12 |
45 |
2 |
|
|
13 |
32 |
3 |
|
|
14 |
56 |
1 |
|
|
15 |
45 |
3 |
|
|
16 |
32 |
4 |
|
|
17 |
19 |
1 |
|
|
18 |
6 |
1 |
|
|
19 |
8 |
2 |
|
|
20 |
4 |
1 |
|
|
Bookmarks