Multiple 'Median' Values

lincolnshep

New Member
Joined
Nov 1, 2010
Messages
9
I've never asked a question on here before but have benefitted from many answers posted to other users questions - so thank you all for that. :) I can't however, find an answer to this one.

I have a list of 30 numbers (all +ve integers or zero) that changes every day. I want to ignore the lowest 10 and the highest 10 and then find the average of the 'middle' 10. At the minute I copy the latest 30 numbers every day and then re-order them to identify the middle 10 but there must be a neater way.

Can anyone think of a way of doing this in a formula or with VBA?

Thanks in advance.

(BTW, I've got Excel 2007)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
This should sum the middle 10 numbers
=SUMPRODUCT(A1:A30,--(10 < RANK(A1:A30,A1:A30)),--(RANK(A1:A30,A1:A30)<=20))
 
Upvote 0
Richard, won't the median of the middle 10 always be the same as the median of the entire sample?

Of course if you want an average then I think that using AVERAGE instead of MEDIAN in Richard's suggestion would be valid....
 
Upvote 0
Assuming the upper and lower ranges discarded are the same size then yes - if they are different sizes then no (determined by the array constant passed in to Large).

Think that's right, anyhow ;-)
 
Upvote 0
Barry / Richard, Thank you both, I've not used LARGE before but combining it with AVERAGE has given me just what I wanted. I've checked the results against my old 'manual' system and they match every time. Perfect!

Mike, Thank you too for your quick answer, I'm sure it works just as well but I found the other one a little easier to follow.

Really appreciate everyone's help with this.

Regards,
Shep
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,629
Members
452,661
Latest member
Nonhle

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