TRIMMEAN function
Returns the average after removing a percentage of the highest and lowest values, so a few outliers cannot distort it.
Available in All versions of Excel, including Microsoft 365 and Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
TRIMMEAN(array, percent)| Argument | What it means | |
|---|---|---|
array | Required | The range of numbers. |
percent | Required | The fraction of data points to exclude in total, split equally between the top and bottom (0 to just below 1). |
Returns: The mean of the remaining values.
How TRIMMEAN works
Sports judging drops the highest and lowest scores before averaging, so a single biased judge cannot swing the result. TRIMMEAN does the same for any data: it removes a percentage of values from both ends and averages the rest. Use it for response times with occasional system hiccups, survey ratings with a few extreme answers, or price comparisons with odd outliers. It sits between the AVERAGE (uses everything) and the MEDIAN (uses only the middle).
The exact rule: Excel multiplies the number of values by percent, rounds down to the nearest even number, and removes half of that from each end. With 10 values and 20%, 2 values go (1 lowest, 1 highest). With 8 values and 30%, 8 × 0.3 = 2.4 rounds down to 2, so again one from each end. If the calculation gives fewer than 2, nothing is removed.
Examples
1Judges' scores without the extremes
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Judges' scores | |||
| 2 | 8.5 | 6 | 8.92 | |
| 3 | 9 | 8.9 | ||
| 4 | 8.8 | 9.1 | ||
| 5 | 9.2 | 9.9 |
Result: 8.92
8 × 25% = 2 values removed: the lowest (6.0) and the highest (9.9). The average of the remaining six is 8.916667 (shown to 2 decimals), versus 8.6750 for the plain average.
2Response times with a system hiccup
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Response times (ms) | ||||
| 2 | 12 | 15 | 14 | 13.625 | |
| 3 | 11 | 13 | 95 | ||
| 4 | 16 | 12 | 14 | ||
| 5 | 13 |
Result: 13.625
10 values × 20% = 2, so the fastest (11) and slowest (95) are dropped. The trimmed mean is 13.625 ms, while the ordinary average is 21.5 ms because of the single 95 ms spike.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | percent is below 0 or 1 or more. | Use a fraction such as 0.1 or 0.2. |
#VALUE! | percent is text. | Use a number. |
Tips
- With small data sets, check how many values are actually trimmed:
=FLOOR(COUNT(r)*percent, 2)(returns the total removed). - Trimming removes data symmetrically; if outliers occur only on one side, consider filtering them instead.
Google Sheets
TRIMMEAN also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
TRIMMEAN in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | TRIMMIDDELVÆRDI |
| Dutch | GETRIMD.GEM |
| Finnish | KESKIARVO.TASATTU |
| French | MOYENNE.REDUITE |
| German | GESTUTZTMITTEL |
| Hungarian | RÉSZÁTLAG |
| Italian | MEDIA.TRONCATA |
| Norwegian (Bokmål) | TRIMMET.GJENNOMSNITT |
| Polish | ŚREDNIA.WEWN |
| Portuguese (Brazil) | MÉDIA.INTERNA |
| Portuguese (Portugal) | MÉDIA.INTERNA |
| Russian | УРЕЗСРЕДНЕЕ |
| Spanish | MEDIA.ACOTADA |
| Swedish | TRIMMEDEL |
| Turkish | KIRPORTALAMA |