Hello,
I am looking to see if there is a way to (auto) formulate an average omitting the top x% and bottom x%, where each % are different. As opposed to TRIMMEAN which is the same for top and bottom.
For example. To omit the top 20% and bottom 10% I can do it like so. Data in rows 1-10
=(SUM(A1:A20)-SUM(LARGE(A1:A20,{1,2}))-SUM(SMALL(A1:A20,{1})))/(COUNT(A1:A20)-3)
So the top 2 (20%) and bottom 1 (10%) are omitted from the sum and then divided by the count less the 3 omitted.
Is there any way to rewrite this formula to be more on going and keeping the %'s? For example, If I added 10 more rows of data, the formula would automatically exclude the top 4 and bottom 2? Assuming I always had a range larger than needed.
Thank you so much for any replies and help that may come.
Bookmarks