Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
DDH DDH is offline
external usenet poster
 
Posts: 2
Default Calculating statistics on a portion of a distribution

I am interested in calculating basic stats (mean, median, std dev) on the
middle 80% of a distribution, to eliminate the extreme lows and highs. I
have been doing this manually by counting the number of samples and removing
the bottom 10% and top 10% of the distribution, and then using the average,
median, and stdeva functions on the middle 80%. Is there an automated way to
do this in Excel?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default Calculating statistics on a portion of a distribution

See Help for the TRIMMEAN worksheet function. For other statistics, you
could probably construct an array formula using the SMALL or LARGE function
to return the middle portion of the sample.

Jerry

"DDH" wrote:

I am interested in calculating basic stats (mean, median, std dev) on the
middle 80% of a distribution, to eliminate the extreme lows and highs. I
have been doing this manually by counting the number of samples and removing
the bottom 10% and top 10% of the distribution, and then using the average,
median, and stdeva functions on the middle 80%. Is there an automated way to
do this in Excel?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default Calculating statistics on a portion of a distribution

Hi,

I do this by creating a helper column to eliminate the reqyired percentage
of high and low values.
If your data is in A1:A20, then in b1, enter
=IF(OR(PERCENTRANK($A$1:$A$20,A1)<0.1,PERCENTRANK( $A$1:$A$20,A1)0.9),"",A1)
and drag down.
This will eliminate the upper and lower 10% of the data.
Change the 0.1 and 0.9 in the formula to suit your own cut off points.
Then you can use =MEAN, =MEDIAN and =STDEV on column B, as th blanl cells
will be ignored.

Dave

"DDH" wrote:

I am interested in calculating basic stats (mean, median, std dev) on the
middle 80% of a distribution, to eliminate the extreme lows and highs. I
have been doing this manually by counting the number of samples and removing
the bottom 10% and top 10% of the distribution, and then using the average,
median, and stdeva functions on the middle 80%. Is there an automated way to
do this in Excel?

  #4   Report Post  
Posted to microsoft.public.excel.misc
DDH DDH is offline
external usenet poster
 
Posts: 2
Default Calculating statistics on a portion of a distribution

Dave - this works perfectly. Thank you! DDH

"Dave Curtis" wrote:

Hi,

I do this by creating a helper column to eliminate the reqyired percentage
of high and low values.
If your data is in A1:A20, then in b1, enter
=IF(OR(PERCENTRANK($A$1:$A$20,A1)<0.1,PERCENTRANK( $A$1:$A$20,A1)0.9),"",A1)
and drag down.
This will eliminate the upper and lower 10% of the data.
Change the 0.1 and 0.9 in the formula to suit your own cut off points.
Then you can use =MEAN, =MEDIAN and =STDEV on column B, as th blanl cells
will be ignored.

Dave

"DDH" wrote:

I am interested in calculating basic stats (mean, median, std dev) on the
middle 80% of a distribution, to eliminate the extreme lows and highs. I
have been doing this manually by counting the number of samples and removing
the bottom 10% and top 10% of the distribution, and then using the average,
median, and stdeva functions on the middle 80%. Is there an automated way to
do this in Excel?

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
Extract portion of a cell Secret Squirrel Excel Discussion (Misc queries) 4 October 26th 08 05:24 AM
How do I add a portion of a day to a date? notanexcelguru Excel Worksheet Functions 2 May 2nd 08 05:52 PM
Underline portion of footer with VBA LandesMD Excel Discussion (Misc queries) 5 September 8th 06 04:41 AM
how do i copy only a portion of a spreadsheet tazsdad Excel Discussion (Misc queries) 3 December 5th 05 11:15 PM
copy only a portion of a spreadsheet tazsdad Excel Discussion (Misc queries) 0 December 5th 05 10:09 PM


All times are GMT +1. The time now is 04:30 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"