Using TRIMEAN on a filtered list

  • Thread starter Thread starter claytorm
  • Start date Start date
C

claytorm

Hi,

I want to apply TRIMEAN to a filtered data set. TRIMEAN ignores a set
percentage of outliers. I am currently using AVERAGE embedded in
SUBTOTAL, but there is no option to embed TRIMEAN within SUBTOTAL. Any
suggestions on how I could find a solution to this?

Bertie
 
Bertie,

You need to embed your filtering criteria within the TRIMMEAN function using an IF statement, along
the lines of:

=TRIMMEAN(IF(B1:B15="A",A1:A15,""),20%)

HTH,
Bernie
MS Excel MVP
 
Bertie,

Sorry, forgot to state that the formula as written must be entered as an array formula, using
Ctrl-Shift-Enter.

HTH,
Bernie
MS Excel MVP


Bernie Deitrick said:
Bertie,

You need to embed your filtering criteria within the TRIMMEAN function using an IF statement,
along the lines of:

=TRIMMEAN(IF(B1:B15="A",A1:A15,""),20%)

HTH,
Bernie
MS Excel MVP
 
=TRIMMEAN(IF(SUBTOTAL(3,OFFSET($C$3:$C$400,ROW($C$3:$C$400)-ROW($C$3),,1)),$C$3:$C$400),0.1)

where 0.1 is a percentage value.

The formula must be confirmed with control+shift+enter, not just with enter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top