Statistical
All versions
◉ 20 views
=TRIMMEAN()
Returns the mean of the interior of a data set. TRIMMEAN calculates the mean taken by excluding a percentage of data points from the top and bottom tails of a data set. You can use this function when you wish to exclude outlying data from your analysis.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=TRIMMEAN(array, percent)
Hover argument names in the table for details.
Output typeNumber
Popularity20 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =TRIMMEAN() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
array |
Array | Required | The array or range of values to trim and average. |
percent |
Number | Required | The fractional number of data points to exclude from the calculation. For example, if percent = 0.2, 4 points are trimmed from a data set of 20 points (20 x 0.2): 2 from the top and 2 from the bottom of the set. |
▣ Examples
▦ Data
| Cell | Value |
|---|---|
A2 |
4 |
A3 |
5 |
A4 |
6 |
A5 |
7 |
A6 |
2 |
A7 |
3 |
A8 |
4 |
A9 |
5 |
A10 |
1 |
A11 |
2 |
A12 |
3 |
A13 |
4 |
A14 |
5 |
A15 |
6 |
A16 |
7 |
A17 |
2 |
A18 |
3 |
A19 |
4 |
A20 |
5 |
A21 |
1 |
A22 |
2 |
A23 |
3 |
Mean of the interior of the data set contained in A2:A12, with 20 percent excluded from calculation.
=TRIMMEAN(A2:A12,0.2)
Result:
3.778
§ Remarks
- If percent < 0 or percent > 1, TRIMMEAN returns the #NUM! error value.
- 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.
✦ Tips
- 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.
⚠ Common Errors
#NUM!
If percent < 0 or percent > 1, TRIMMEAN returns the #NUM! error value.
Fix: Enter a percentage as a number between 0 and 1
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!