Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
georgeb
 
Posts: n/a
Default 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?
  #2   Report Post  
Vasant Nanavati
 
Posts: n/a
Default


"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



  #3   Report Post  
Ragdyer
 
Posts: n/a
Default

=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?


  #4   Report Post  
Ragdyer
 
Posts: n/a
Default

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?



  #5   Report Post  
Biff
 
Posts: n/a
Default

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?





  #6   Report Post  
Harlan Grove
 
Posts: n/a
Default

"Biff" wrote...
....
Another method:

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

....

That fails when the 4th largest value appears multiple times.


  #7   Report Post  
Biff
 
Posts: n/a
Default

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.



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
plotted Average Micayla Bergen Charts and Charting in Excel 4 July 15th 05 12:13 PM
Three Dimensional Array Question Tornados Excel Discussion (Misc queries) 1 June 20th 05 12:58 AM
Match Last Occurrence of two numbers and Count to Previous Occurence Sam via OfficeKB.com Excel Worksheet Functions 33 April 4th 05 02:17 PM
Average of numbers in column between to other numbers Ditandhischeese Excel Discussion (Misc queries) 2 March 31st 05 03:35 AM
finding common numbers in large lists Jenn Excel Worksheet Functions 1 November 11th 04 07:42 PM


All times are GMT +1. The time now is 09:42 AM.

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"