G Guest Sep 5, 2005 #1 What function will find the average of the k largest numbers in an array of n numbers?
V Vasant Nanavati Sep 5, 2005 #2 georgeb said: What function will find the average of the k largest numbers in an array of n numbers? Click to expand... 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.
georgeb said: What function will find the average of the k largest numbers in an array of n numbers? Click to expand... 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.
R Ragdyer Sep 5, 2005 #4 Using the array constant allows the above formula to equate as a regular formula!
B Biff Sep 5, 2005 #5 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
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
H Harlan Grove Sep 5, 2005 #6 ... .... Another method: =SUMIF(A1:A100,">="&LARGE(A1:A100,4))/4 Click to expand... .... That fails when the 4th largest value appears multiple times.
... .... Another method: =SUMIF(A1:A100,">="&LARGE(A1:A100,4))/4 Click to expand... .... That fails when the 4th largest value appears multiple times.
B Biff Sep 5, 2005 #7 True Biff Harlan Grove said: ... ... ... That fails when the 4th largest value appears multiple times. Click to expand...
True Biff Harlan Grove said: ... ... ... That fails when the 4th largest value appears multiple times. Click to expand...