Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Average of top x% of a list

I need a flexible formula to find the average of the top x% of data in tables
of varying size.

To be more specific, I have daily data for many years and I need to
calculate the average if the top x% of the data. To make it more complicated,
each year is missing a different number of data points, so this formula needs
to calculate how many points to average.

I've played with Sumif/countif, percentile and Large, but can't get anything
to work. Any help would be appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Average of top x% of a list

Brendan,

Use an array formula like this, entered using Ctrl-Shift-Enter (with your data in cells A2:A2000)

=AVERAGE(IF(A2:A2000=PERCENTILE(A2:A2000,1-C2),A2:A2000))

Enter 10% into C2 to get the average of the top 10%, 20% to get the top 20%, etc.

HTH,
Bernie
MS Excel MVP


"Brendan" wrote in message
...
I need a flexible formula to find the average of the top x% of data in tables
of varying size.

To be more specific, I have daily data for many years and I need to
calculate the average if the top x% of the data. To make it more complicated,
each year is missing a different number of data points, so this formula needs
to calculate how many points to average.

I've played with Sumif/countif, percentile and Large, but can't get anything
to work. Any help would be appreciated!



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
Average a list with high and low ignored Shu of AZ Excel Worksheet Functions 21 February 7th 08 07:00 AM
Average of a list with high and low ignored Shu of AZ Excel Discussion (Misc queries) 3 February 6th 08 05:21 PM
Average a List and sorting Brandon G. Excel Worksheet Functions 1 December 19th 07 12:41 AM
How can I average data from a repeating list into a unique list? Bob Phillips Excel Worksheet Functions 0 March 3rd 06 06:47 PM
How can I average data from a repeating list into a unique list? Duke Carey Excel Worksheet Functions 0 March 3rd 06 06:38 PM


All times are GMT +1. The time now is 05:06 AM.

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

About Us

"It's about Microsoft Excel"