Excel TRIMMEAN Function: Syntax, Examples & Tips

The TRIMMEAN function calculates the average of a dataset while excluding a specified percentage of the highest and lowest values.
Excel
=TRIMMEAN(array, percent)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single TRIMMEAN formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is a TRIMMEAN Formula in Excel?
  3. A Practical Example
  4. TRIMMEAN Formula
  5. Result of the Formula
  6. Why Use TRIMMEAN?
  7. Key Takeaways:
  8. Example use case

Parameters

array:
The range or array of data points from which you want to calculate the trimmed mean.

percent:
The percentage of data points to exclude from the calculation, specified as a decimal value between 0 and 1. This represents the proportion of data to be trimmed from both ends of the sorted array.

What is a TRIMMEAN Formula in Excel?

The TRIMMEAN function in Excel is a statistical tool that calculates the mean (average) of a dataset while excluding a specified percentage of the highest and lowest values. This is particularly useful when you want to minimize the impact of outliers on your average calculation, providing a more accurate representation of the central tendency of your data.

In simpler terms, the TRIMMEAN function helps you find an average that is less affected by extreme values, making it easier to analyze data that may contain anomalies.

A Practical Example

Imagine you are analyzing the test scores of a group of students, and you have the following data in an Excel spreadsheet:

Test Scores Table:

StudentScore
Alice95
Bob85
Charlie75
David90
Eve100
Frank60
Grace80

You want to find the average score while excluding the top 10% and bottom 10% of scores.

TRIMMEAN Formula

To calculate the trimmed mean of the scores, you would use the TRIMMEAN formula as follows:

Excel
=TRIMMEAN(B2:B8, 0.2)

Breakdown of the Formula:

  • B2:B8: This is the range of scores from which the mean will be calculated.
  • 0.2: This represents the percentage of data to exclude from both ends of the dataset (10% from the top and 10% from the bottom).

Result of the Formula

When you apply the formula, it calculates the average score after excluding the highest and lowest scores. The output would be:

Trimmed Mean Score
85

Here, the trimmed mean is calculated by excluding the scores of Frank (60) and Alice (95), resulting in an average of the remaining scores.

Why Use TRIMMEAN?

The TRIMMEAN function is particularly useful when you need to analyze data that may contain outliers or extreme values that could skew the average. It allows you to derive a more reliable average that better reflects the overall performance of the dataset.

Key Takeaways:

  • TRIMMEAN: Calculates the mean while excluding a specified percentage of the highest and lowest values.
  • Accurate Data Analysis: Helps provide a more reliable average by minimizing the impact of outliers.
  • Common Use Cases: Ideal for test scores, financial data, and any scenario where extreme values may distort the average.

Understanding how to use the TRIMMEAN function can significantly enhance your data analysis capabilities in Excel, enabling you to extract meaningful insights from your datasets.

Happy calculating!

Example use case

You have a table where Column A contains the scores of students in a class and Column B contains their corresponding names. You can use the TRIMMEAN function to calculate the average score while excluding the top and bottom 10% of scores. This allows for a more accurate representation of the students' performance by minimizing the impact of outliers, helping educators assess the overall class performance and make informed decisions regarding curriculum adjustments and student support.

Beyond the TRIMMEAN function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.