In reference to http://chandoo.org/wp/2010/06/04/average-of-top-5-values/.
This formula allows you to average 3 numbers at a time in consecutive rows:
=IF((ROW()-2)<CEILING(COUNT($B$2:$B$13)/3,1),AVERAGE(OFFSET($B$2,3*(ROW()-2),0,3)),"")
Is it possible to do this by % of the largest values? For example, I want to average the first largest 25% within the list of values. Then the next 25% of the largest. And so on. I can average the largest 25% of values with:
=AVERAGE(LARGE($B$2:$B$13,ROW(OFFSET($B$2,-1,,CEILING(COUNT($B$2:$B$13)*25%,1))))) CSE
Note that the values to be averaged will be in a dynamic list and won't be sorted.
I hope the attached helps to explain better.
http://chandoo.org/forum/attachments/average_largest_by_top_x_percent-xlsx.34871/
This formula allows you to average 3 numbers at a time in consecutive rows:
=IF((ROW()-2)<CEILING(COUNT($B$2:$B$13)/3,1),AVERAGE(OFFSET($B$2,3*(ROW()-2),0,3)),"")
Is it possible to do this by % of the largest values? For example, I want to average the first largest 25% within the list of values. Then the next 25% of the largest. And so on. I can average the largest 25% of values with:
=AVERAGE(LARGE($B$2:$B$13,ROW(OFFSET($B$2,-1,,CEILING(COUNT($B$2:$B$13)*25%,1))))) CSE
Note that the values to be averaged will be in a dynamic list and won't be sorted.
I hope the attached helps to explain better.
http://chandoo.org/forum/attachments/average_largest_by_top_x_percent-xlsx.34871/
Attachments
Last edited: