Average excluding x highest outlying values

JugglerJAF

Active Member
Joined
Feb 17, 2002
Messages
297
Office Version
  1. 365
Platform
  1. Windows
I'm producing a report on sickness absence and have been asked for an average (mean) figure by department.

Some areas are skewed by having a small number of absences over an extremely long term (i.e. one department has a total of 400 days absence across 7 employees, but over 180 days of this is down to one individual absence due to a serious car accident).

What I want to do is to produce the mean average of all the data, but excluding the x highest (and/or lowest) values which may otherwise skew the data.

Ideally, I'd like the average of the middle 50% of the data range. I've tried using the quartile function but that doesn't do what I need.

Example, if the data set was {0, 2, 4, 4, 4, 4, 7, 10, 10, 10, 11, 45} I would want the average of the middle 50% of values {4, 4, 4, 7, 10,10}

Data Inc/Exc
0 exclude
2 exclude
4 exclude
4 include
4 include
4 include
7 include
10 include
10 include
10 exclude
11 exclude
45 exclude

Thanks.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I don't suppose that MODE or MEDIAN would yield an acceptable result?

Otherwise perhaps;

Excel Workbook
A
27.14286
3
40
52
64
74
84
94
107
1110
1210
1311
1445
1530
1625
Index
Excel 2003
Cell Formulas
RangeFormula
A2=AVERAGE(OFFSET($A$4,ROUND(COUNTA($A$4:$A$16)/2/2,0),,ROUND(COUNTA($A$4:$A$16)/2,0)))

EDIT: takes average of middle half of range only...
 
Last edited:
Upvote 0
Use TRIMMEAN function. This formula will average the middle 50% of a range of values in A2:A21

Blimey I didn't know it even existed! Blows mine right out!
 
Upvote 0
Use TRIMMEAN function. This formula will average the middle 50% of a range of values in A2:A21

=TRIMMEAN(A2:A21,0.5)

Many thanks for this. Exactly what I needed. Like Jon, I never knew this existed. A trawl through Excel's lesser known functions is clearly in order!
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top