Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default TRIMMEAN with different percentiles?

The TRIMMEAN function gives you the average of the interior of a
distribution, where you cut x% from both the top and the bottom.

Is it possible to easily modify the percentages, so I could find the
average between specific percentiles? Say, finding the average of the
values between the 20th and 40th percentiles, rather than just trimming
out on either end? (In this example, I know I could use PERCENTILE to
just find the 30th percentile to get close, but in the data I'm using
it would be better to get an average of a group.)

Thanks very much,

Andrew

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jerry W. Lewis
 
Posts: n/a
Default TRIMMEAN with different percentiles?

You could try something like
=AVERAGE(IF((dataPERCENTILE(data,20%))*(data<PERC ENTILE(data,40%)),data))
array entered (Ctrl-Shift-Enter). Ties could be problematic, but they are
with TRIMMEAN as well, since TRIMMEAN{1,1,1,1,1,1,1,1,2,2},10%) should return
1.125=(7*1+1*2)/8 but instead returns 1.2.

Jerry

" wrote:

The TRIMMEAN function gives you the average of the interior of a
distribution, where you cut x% from both the top and the bottom.

Is it possible to easily modify the percentages, so I could find the
average between specific percentiles? Say, finding the average of the
values between the 20th and 40th percentiles, rather than just trimming
out on either end? (In this example, I know I could use PERCENTILE to
just find the 30th percentile to get close, but in the data I'm using
it would be better to get an average of a group.)

Thanks very much,

Andrew


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default TRIMMEAN with different percentiles?

Thanks! You'd think they'd make this easier. The whole issue came about
because Autofilter, while making it so you don't see certain cells on
the screen, doesn't exclude them from calculations that cover the whole
range. So I'm having to find ways to get around this. Thanks again,

Andrew

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jerry W. Lewis
 
Posts: n/a
Default TRIMMEAN with different percentiles?

Warning: Be sure brain is in gear before pressing Send. ;-)

1.125 = TRIMMEAN({1,1,1,1,1,1,1,1,2,2},20%), not
TRIMMEAN({1,1,1,1,1,1,1,1,2,2},10%)
Although the exact calcuation for TRIMMEAN({1,1,1,1,1,1,1,1,2,2},10%) is
unclear, since it is not the obvious
7/6=(7.5*1+1.5*2)/9

Jerry

"Jerry W. Lewis" wrote:

You could try something like
=AVERAGE(IF((dataPERCENTILE(data,20%))*(data<PERC ENTILE(data,40%)),data))
array entered (Ctrl-Shift-Enter). Ties could be problematic, but they are
with TRIMMEAN as well, since TRIMMEAN{1,1,1,1,1,1,1,1,2,2},10%) should return
1.125=(7*1+1*2)/8 but instead returns 1.2.

Jerry

" wrote:

The TRIMMEAN function gives you the average of the interior of a
distribution, where you cut x% from both the top and the bottom.

Is it possible to easily modify the percentages, so I could find the
average between specific percentiles? Say, finding the average of the
values between the 20th and 40th percentiles, rather than just trimming
out on either end? (In this example, I know I could use PERCENTILE to
just find the 30th percentile to get close, but in the data I'm using
it would be better to get an average of a group.)

Thanks very much,

Andrew


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jerry W. Lewis
 
Posts: n/a
Default TRIMMEAN with different percentiles?

Per Help, TRIMMEAN({1,1,1,1,1,1,1,1,2,2},10%) =
AVERAGE({1,1,1,1,1,1,1,1,2,2}); since 10% of 10 < 2, nothing is trimmed.

Jerry

"Jerry W. Lewis" wrote:

....
Although the exact calcuation for TRIMMEAN({1,1,1,1,1,1,1,1,2,2},10%) is
unclear ...

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
Calculating Percentiles of Test Scores? ddawg09 Excel Discussion (Misc queries) 4 February 19th 06 09:24 PM
Trimmean for limited array Sige Excel Worksheet Functions 3 January 31st 06 04:28 PM
Calculating percentiles kswan Excel Discussion (Misc queries) 1 June 16th 05 09:34 PM
percentiles? Agnes Goris Excel Worksheet Functions 1 June 14th 05 03:43 PM


All times are GMT +1. The time now is 08:04 PM.

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"