TRIMMEAN for 6 cells

Michael67

New Member
Joined
Apr 13, 2022
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
I would like to apply TRIMMEAN on 6 cells, discounting 2 of them and using the middle 4. I am getting 'too many arguments' returned. Could someone please advise how I can fix this.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Welcome to the board.

The arguments for the function are ( array, percent), so you don't have a lot of leeway built into the function to adjust that array. If you can figure a way to make a single argument for "array" that already discounts the two values you don't want, then that would do the trick, but that's going to be messy and likely hard to explain (or recall later) when you try to audit or duplicate the process. So my suggestion is to arrange a 'helper' array of values (because you'll still want to have an array consisting of four values), that has already removed the two cells you want to ignore, and operate on that array. Having that 'helper' array constructed on the worksheet somewhere, even if it's later hidden for cosmetic reasons, will make the thing easier to explain or do again in the future sometime.
 
Upvote 0
Hi Michael67
Can you post some rows of your data as an example
 
Upvote 0
Welcome to the MrExcel board!

Could you use something like this? (formula to be confirmed with Ctrl+Shift+Enter, not just Enter before dragging across)

22 04 14.xlsm
ABCDE
112568222
299958322
32355622
45477922
575956122
615573722
7
8Mean of middle 4:3960.7569.522
Mean
Cell Formulas
RangeFormula
B8:E8B8=AVERAGE(LARGE(B1:B6,{2,3,4,5}))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,216,025
Messages
6,128,341
Members
449,443
Latest member
Chrissy_M

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