TRIMMEAN In A Filtered Table

arichar3

New Member
Joined
Feb 11, 2016
Messages
3
Hi All,

Hopefully someone can help me out with this. Been trying for awhile with no luck.

I'm trying to build a TRIMMEAN function to use on a table that will be filtered. I continue to get the entire table's mean despite the filters. The cells being calculated are all functions themselves and a number are returning errors (#N/A) due to missing data. Not sure if this matters.

=TRIMMEAN(IFERROR(Table1[Days as Lead],""),25%)

Appreciate any help you can provide,
 
Control+shift+enter, not just enter:

=TRIMMEAN(IF(ISNUMBER(Table[Days as Lead]),Table[Days as Lead]),25%)

This should work as intended.
 
Upvote 0
Thanks for the quick reply but it's still not changing the average when I filter the rows. I created Filter Buttons on the table to filter by other rows in the same table. Is that what you mean?
 
Upvote 0
Thanks for the quick reply but it's still not changing the average when I filter the rows. I created Filter Buttons on the table to filter by other rows in the same table. Is that what you mean?

Control+shift+enter, not just enter:
Rich (BB code):
=TRIMMEAN(IF(SUBTOTAL(2,OFFSET(Table1[@[Days as Lead]],
    ROW(Table1[Days as Lead])-ROW(Table1[@[Days as Lead]]),0,1)),
    IF(ISNUMBER(Table1[Days as Lead]),Table1[Days as Lead])),25%)
 
Upvote 0

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