Ignore Highest and Lowest Values

DanUK

New Member
Joined
Aug 27, 2008
Messages
42
Hi folks,

Anyone know how to go about creating a formula that can be used to ignore (ie not remove but simply set to zero) the highest and lowest values from an array of values..?

Value 1 - 9 (ignore)
Value 2 - 3
Value 3 - 4
Value 4 - 5
Value 5 - 7
Value 6 - 2 (ignore)

Using the above data I would like to calculate an average but I'd like to strip-out the highest and lowest value from the calculation....

Another consideration is calculation of a weighted average value where the highest and lowest value are given a much lower weighting that the other values.

Value 1 - 9 (weight = 0.5)
Value 2 - 3 (weight = 1.0)
Value 3 - 4 (weight = 1.0)
Value 4 - 5 (weight = 1.0)
Value 5 - 7 (weight = 1.0)
Value 6 - 2 (weight = 0.5)

Again - I'd like to determine a weighted average but values 1 and 6 are given differing weights...

Any thought..?

Regards,

Dan
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Does this help?
Excel Workbook
ABCDEFGH
1
2
3
4Test
5Scores
680.0094.00<< Max() For the Highest
766.0063.00<< Min() For the LowestBreaking things down as
875.0013<< Count - 2you go through the steps
990.00to get final answer
1092.001,047.0080.54
1178.00
1275.00
1382.00
1488.0080.54>>>>>>>>>>>>>>>>>>>>>>>Combined formula per
1594.00J Waldenbach (Spelling?)
1672.00
1793.00
1883.00
1973.00
2063.00
21
Sheet1
Excel 2007
Cell Formulas
RangeFormula
D6=MAX(Scores)
D7=MIN(Scores)
D8=COUNT(Scores)-2
D10=AVERAGE(SUM(Scores)-(D6+D7))
D14=(SUM(Scores)-MIN(Scores)-MAX(Scores))/(COUNT(Scores)-2)
E10=D10/D8
Excel Workbook
NameRefers To
Scores=Sheet1!$B$6:$B$20
Workbook Defined Names
 
Upvote 0
Hi folks,

Anyone know how to go about creating a formula that can be used to ignore (ie not remove but simply set to zero) the highest and lowest values from an array of values..?

Value 1 - 9 (ignore)
Value 2 - 3
Value 3 - 4
Value 4 - 5
Value 5 - 7
Value 6 - 2 (ignore)

Using the above data I would like to calculate an average but I'd like to strip-out the highest and lowest value from the calculation....

Another consideration is calculation of a weighted average value where the highest and lowest value are given a much lower weighting that the other values.

Value 1 - 9 (weight = 0.5)
Value 2 - 3 (weight = 1.0)
Value 3 - 4 (weight = 1.0)
Value 4 - 5 (weight = 1.0)
Value 5 - 7 (weight = 1.0)
Value 6 - 2 (weight = 0.5)

Again - I'd like to determine a weighted average but values 1 and 6 are given differing weights...

Any thought..?

Regards,

Dan
1] Looks like...

=TRIMMEAN(A2:A7,2/COUNT(A2:A7))

2] Is this

=SUM(SUM(A2:A7)-MAX(A2:A7)-MIN(A2:A7),MAX(A2:A7)*0.5,MIN(A2:A7)*0.5)/COUNT(A2:A7)

what you re after?
 
Upvote 0
1] Looks like...

=TRIMMEAN(A2:A7,2/COUNT(A2:A7))

2] Is this

=SUM(SUM(A2:A7)-MAX(A2:A7)-MIN(A2:A7),MAX(A2:A7)*0.5,MIN(A2:A7)*0.5)/COUNT(A2:A7)

what you re after?


Yes!! Well, almost... As its a weighted average I need to divide by the sum of the weights.

=SUM(SUM(A2:A7)-MAX(A2:A7)-MIN(A2:A7),MAX(A2:A7)*0.5,MIN(A2:A7)*0.5)/SUM(A2:A7)

Thanks very much everyone who replied:):)
 
Upvote 0
Yes!! Well, almost... As its a weighted average I need to divide by the sum of the weights.

=SUM(SUM(A2:A7)-MAX(A2:A7)-MIN(A2:A7),MAX(A2:A7)*0.5,MIN(A2:A7)*0.5)/SUM(A2:A7)

Thanks very much everyone who replied:):)

What would be the desired result: 4.9?
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,142
Members
452,892
Latest member
JUSTOUTOFMYREACH

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