![]() |
average of kth largest numbers in an array of n numbers
What function will find the average of the k largest numbers in an array of n
numbers? |
"georgeb" wrote in message ... 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. -- Vasant |
=AVERAGE(LARGE(A1:A10,{1,2,3}))
-- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "georgeb" wrote in message ... What function will find the average of the k largest numbers in an array of n numbers? |
Using the array constant allows the above formula to equate as a regular
formula! -- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Ragdyer" wrote in message ... =AVERAGE(LARGE(A1:A10,{1,2,3})) -- HTH, RD -------------------------------------------------------------------------- - Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------------------- - "georgeb" wrote in message ... What function will find the average of the k largest numbers in an array of n numbers? |
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 "georgeb" wrote in message ... What function will find the average of the k largest numbers in an array of n numbers? |
"Biff" wrote...
.... Another method: =SUMIF(A1:A100,"="&LARGE(A1:A100,4))/4 .... That fails when the 4th largest value appears multiple times. |
True
Biff "Harlan Grove" wrote in message ... "Biff" wrote... ... Another method: =SUMIF(A1:A100,"="&LARGE(A1:A100,4))/4 ... That fails when the 4th largest value appears multiple times. |
All times are GMT +1. The time now is 08:12 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com