Trimmean If Array Formula - Example in thread

mikeh44

Board Regular
Joined
May 7, 2008
Messages
54
Hi, I'm having issues with the below. I'm trying to trimmean the weeks where the weekly number is greater than 5. I want to trim the mean to then exclude the top /bottom 10%. Below is the formula I currently have which I cannot get to work. Any help is greatly appreciated. Thanks!!

{=TRIMMEAN(IF(A2:H2>5,A2:H2),0.1)}


ABCDEFGH
1Week 1Week 2Week 3Week 4Week 5Week 6Week 7Week 8
22030250240358

<tbody>
</tbody>
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
The TRIMMEAN function can be confusing. The percent part of TRIMMEAN(array,percent) is the number of data points to exclude. Using your example there are 6 data points greater than 5, To calculate the number of data points to exclude Excel would take the 0.1x6=.6 it then rounds this number up which would equal 1 and then divides this number by 2 to get the number of data points to exclude from the top and bottom of the data. Since in your example this number would be .5, so no data points are exclude.

From Office support:
https://support.office.com/en-us/article/trimmean-function-d90c9878-a119-4746-88fa-63d988f511d3

TRIMMEAN rounds the number of excluded data points down to the nearest multiple of 2. If percent = 0.1, 10 percent of 30 data points equals 3 points. For symmetry, TRIMMEAN excludes a single value from the top and bottom of the data set.

If you want to exclude the top/bottom 10%, then maybe something like this:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCDEFGH
1Week 1Week 2Week 3Week 4Week 5Week 6Week 7Week 8
22030250240358
3
427.5
Sheet
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

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