Statistical function

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)
ArgumentWhat it means
arrayRequiredThe range of numbers.
percentRequiredThe 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

D2fx=TRIMMEAN(A2:B5, 0.25)
ABCD
1Judges' scores
28.568.92
398.9
48.89.1
59.29.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

E2fx=TRIMMEAN(A2:C5, 0.2)
ABCDE
1Response times (ms)
212151413.625
3111395
4161214
513

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.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
DanishTRIMMIDDELVÆRDI
DutchGETRIMD.GEM
FinnishKESKIARVO.TASATTU
FrenchMOYENNE.REDUITE
GermanGESTUTZTMITTEL
HungarianRÉSZÁTLAG
ItalianMEDIA.TRONCATA
Norwegian (Bokmål)TRIMMET.GJENNOMSNITT
PolishŚREDNIA.WEWN
Portuguese (Brazil)MÉDIA.INTERNA
Portuguese (Portugal)MÉDIA.INTERNA
RussianУРЕЗСРЕДНЕЕ
SpanishMEDIA.ACOTADA
SwedishTRIMMEDEL
TurkishKIRPORTALAMA