Best average for 5 years out of 8

  • Thread starter Thread starter Wendy
  • Start date Start date
W

Wendy

I am trying to figure out how to calculate an average of the best five years
out of 8.

My first example is 0, 3, 3, 5, 5, 3, 5, 5 I would expect my average to be
4.6.

Another example is 5, -2, -2, -2, -2, 0, 0, 0 I would expect my average to
be -0.6
 
Hi,

Two points, the average of the second set is not -0.6 but +0.6?

For top 5 the {1,2,3,4,5} is fine but if one wanted the top 50 this would be
a pain, so another solution is the array formula

=AVERAGE(LARGE(A11:H11,ROW(1:5)))

To make it an array you press Shift+Ctrl+Enter instead of Enter to enter it.
Notice that to average the top 50 this formula would be virtually the same:

=AVERAGE(LARGE(A11:DD11,ROW(1:50)))

while the {1,2,3,4,5,6,7,8,9,10,11,..... would get rather tedious.
 
For top 5 the {1,2,3,4,5} is fine but if one wanted
the top 50 this would be a pain, so another solution
is the array formula
=AVERAGE(LARGE(A11:H11,ROW(1:5)))

And that's vulnerable to row insertions will could cause an incorrect
result. Might be better to use this array** version:

=AVERAGE(LARGE(A12:H12,ROW(INDIRECT("1:5"))))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.
 
And how would we know that.. Should you have stayed in an original thread?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top