have a row of 8 numbers and want to average the top 5 numbers
T T. Valko Feb 12, 2009 #2 Try this: =AVERAGE(LARGE(A1:H1,{1,2,3,4,5})) If there is less than 5 numbers in the range the formula will return an error.
Try this: =AVERAGE(LARGE(A1:H1,{1,2,3,4,5})) If there is less than 5 numbers in the range the formula will return an error.
P poncho Feb 12, 2009 #3 poncho said: have a row of 8 numbers and want to average the top 5 numbers Click to expand... Thanks Bob Phillips, found it in an earlier thread...
poncho said: have a row of 8 numbers and want to average the top 5 numbers Click to expand... Thanks Bob Phillips, found it in an earlier thread...
S Shane Devenshire Feb 12, 2009 #5 Hi, You could also consider =SUMPRODUCT(LARGE(A1:H1,ROW(1:5))/5) or to handle errors because of less than 5 numbers: =AVERAGE(LARGE(A1:H1,ROW(INDIRECT("1:"&MIN(5,COUNT(A1:H1)))))) this will calculate the average of the 5 largest or the 4 largest if there are only 4 items and so on. This formula requires array entry (press Shif+Ctrl+Enter to enter it, not Enter.)
Hi, You could also consider =SUMPRODUCT(LARGE(A1:H1,ROW(1:5))/5) or to handle errors because of less than 5 numbers: =AVERAGE(LARGE(A1:H1,ROW(INDIRECT("1:"&MIN(5,COUNT(A1:H1)))))) this will calculate the average of the 5 largest or the 4 largest if there are only 4 items and so on. This formula requires array entry (press Shif+Ctrl+Enter to enter it, not Enter.)