=SUMPRODUCT(LARGE(Data,ROW(1:5)))
See the screen cast below to know secret behind this formula.

Actually we are using array formula to find top 5 values , then summing them to find the sum of top 5 values in unsorted range.
From the screen cast you can see that
1. We are entering this formula using sumproduct, which is shortcut to enter array formulas in excel.
2. Data is a named range A3 to B36
3. We are using excel function Large to find Top values.
4. Row(1:5) - is is shortcut to create an array of numbers {1,2,3,4,5} as Kth position
This leads to find top 5 values in unsorted range and then summing them.
Food for thought :
Just change Row(1:5) to Row(1:10) you will be able to find Top 10 values.
Or Change Large with small to find out bottom 5 values.









5 comments: