Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default pick top 5 out of 8 numbers

have a row of 8 numbers and want to average the top 5 numbers

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default pick top 5 out of 8 numbers

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.

--
Biff
Microsoft Excel MVP


"poncho" <u49547@uwe wrote in message news:919390a5827bd@uwe...
have a row of 8 numbers and want to average the top 5 numbers



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default pick top 5 out of 8 numbers

poncho wrote:
have a row of 8 numbers and want to average the top 5 numbers


Thanks Bob Phillips, found it in an earlier thread...

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default pick top 5 out of 8 numbers

Thanks T. Valko, needed to know about the error...

T. Valko wrote:
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.

have a row of 8 numbers and want to average the top 5 numbers


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default pick top 5 out of 8 numbers

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.)


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"poncho" wrote:

poncho wrote:
have a row of 8 numbers and want to average the top 5 numbers


Thanks Bob Phillips, found it in an earlier thread...


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to set up a formula to pick random numbers Joe Excel Worksheet Functions 3 September 9th 08 09:10 PM
How to pick up 1 number with a lot of same numbers in row/ column? Jon New Users to Excel 1 August 14th 08 07:37 AM
Pick the low number in a column of Numbers boxarox Excel Discussion (Misc queries) 3 May 29th 08 07:59 PM
Can Excel pick random numbers from 1-300 and not repeat numbers? Julian Excel Discussion (Misc queries) 1 June 7th 06 07:17 AM
Possible to pick out the lowest eight numbers in a row? Christian Borchgrevink-Vigeland Excel Discussion (Misc queries) 4 December 23rd 04 03:53 PM


All times are GMT +1. The time now is 01:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"