average of kth largest numbers in an array of n numbers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What function will find the average of the k largest numbers in an array of n
numbers?
 
georgeb said:
What function will find the average of the k largest numbers in an array
of n
numbers?

Perhaps something like:

=AVERAGE(LARGE(A1:A10,ROW(1:4)))

entered as an array formula with <Ctrl> <Shift> <Enter>. This will give you
the average of the 4 largest numbers in the range A1:A10.
 
Hi!

A non array entered version:

=AVERAGE(LARGE(A1:A100,{1,2,3,4}))

Of course, if you wanted the largest 50 you wouldn't want to use the above
method!

Another method:

=SUMIF(A1:A100,">="&LARGE(A1:A100,4))/4

Biff
 

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