Tabellab

AVERAGE vs MEDIAN vs MODE.SNGL and a Trimmed Mean

Lesson 1 of 20Lab

All lessons
  1. AVERAGE vs MEDIAN vs MODE.SNGL and a Trimmed MeanLabFree
  2. Conditional Statistics: AVERAGEIFS, MAXIFS, MINIFS and COUNTIFSLab Locked
  3. Spread: Range, STDEV.S vs STDEV.P, VAR and the IQRLab Locked
  4. PERCENTILE, PERCENTRANK and Quartile BandsLab Locked
  5. RANK.EQ vs RANK.AVG and Top-N with LARGE and SMALLLab Locked
  6. Frequency Tables and Histograms with COUNTIFSLab Locked
  7. CORREL, COVARIANCE and STANDARDIZE z-ScoresLab Locked
  8. Mid-course project: Outlier Flags and a Summary Statistics TableLab Locked
  9. Weighted Mean with SUMPRODUCT, GEOMEAN for Growth and HARMEAN for RatesLab Locked
  10. Distribution Shape: SKEW, KURT and the Mean–Median GapLab Locked
  11. Comparing Consistency: Coefficient of Variation, AVEDEV and the Median Absolute DeviationLab Locked
  12. No MEDIANIFS? Conditional MEDIAN, PERCENTILE and STDEV with IF ArraysLab Locked
  13. Blanks, Text and Zero Placeholders: COUNT vs COUNTA, AVERAGEIF and AGGREGATE FiltersLab Locked
  14. Is the Normal Model Good Enough? NORM.DIST and NORM.INV vs the Actual DataLab Locked
  15. Ranking Within Groups: COUNTIFS Ranks, Tie-Breakers and Percent RanksLab Locked
  16. Revenue Concentration: Sorted Shares, the 80% Point and a Pareto CurveLab Locked
  17. The FREQUENCY Function: Bins, the Overflow Bin and a Cumulative Share CurveLab Locked
  18. Two Quarters Compared: Average of Changes vs Change of the TotalLab Locked
  19. A Correlation Matrix with CORREL and INDEX/MATCHLab Locked
  20. Final Project: Region Statistics Dashboard for a Second RetailerLab Locked

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — €9.90
Loading the spreadsheet…

Which number describes a "typical" value? It depends

Your manager asks a simple question: "How much does a typical sales rep bring in per quarter?" You select the revenue column, glance at the status bar, read the average and send it off. It is a natural reflex, and in many data sets it is the wrong answer. When one value is much larger than the rest, the average stops describing anybody in particular, and decisions built on it (targets, bonuses, hiring plans) end up miscalibrated.

This free lesson is for analysts, managers, HR and finance teams, students in a first statistics course, and anyone who reports numbers from Excel. We use the Q3 results of Orchard Row Outfitters, a fictional outdoor-gear company with 20 sales reps; the reps and numbers are invented for practice. You will compare the four most common ways to describe a typical value: the mean (AVERAGE), the median (MEDIAN), the mode (MODE.SNGL) and a trimmed mean. You will see exactly why they disagree, which one to report in which situation, and how to calculate each in Excel with one formula.

The lab above contains the same 20 reps, so every number in this article can be checked in a live sheet as you read.

The core concept: four answers to one question

Statisticians call these measures of central tendency. Each one summarises a list of numbers in a single value, but each has a different definition and a different weakness:

  • Mean (=AVERAGE(range)): add all values and divide by how many there are. Every value counts equally, so a single extreme value moves the result. The mean is the right tool when you need totals to add up, for example to forecast total revenue as "mean per rep × number of reps".
  • Median (=MEDIAN(range)): sort the values and take the middle one. With an even count, as with 20 reps, Excel averages the two middle values (the 10th and 11th). Half the values are below the median and half above, no matter how extreme the top or bottom is. That makes it the better "typical" figure for skewed data such as revenue, salaries, house prices or delivery times.
  • Mode (=MODE.SNGL(range)): the value that occurs most often. It is useful for counts and categories (deals per rep, items per order, shoe sizes), and close to useless for continuous amounts like revenue, where every value is different and the function returns #N/A.
  • Trimmed mean: drop a small share of the highest and lowest values, then average the rest. It keeps most of the information of the mean while ignoring the extremes. Excel has a dedicated function, =TRIMMEAN(range, percent), and you can also build it by hand.

A useful rule of thumb: if the mean and the median are close, the data is roughly symmetric and either one works. If the mean is clearly above the median, a few large values pull it up (the data is right-skewed), and the median is the safer description of a typical case. If the mean is clearly below the median, a few very small values pull it down.

Worked example: Orchard Row's 20 sales reps

Here is the data from the lab, revenue in column C and the number of deals closed in column D:

RowRepRegionRevenue (C)Deals (D)
2Ava MorenoNorth61,20018
3Ben OkaforSouth48,90014
4Chloe ParkEast72,45021
5Diego SilvaWest55,30016
6Emma LaurentNorth83,70024
7Farid HaddadSouth39,80011
8Grace KimEast66,10019
9Hugo BrandtWest182,40031
10Isla NovakNorth57,65016
11Jamal ReedSouth70,90021
12Keiko SatoEast44,30012
13Liam ByrneWest91,25026
14Maya PatelNorth52,80015
15Noah AdlerSouth63,40018
16Olivia ChenEast77,60022
17Pablo RuizWest49,75014
18Quinn HayesNorth68,30019
19Rosa LindqvistSouth58,90016
20Sam WhitfieldEast41,60012
21Tara QuinnWest74,80020

Now the four measures, with the exact formulas from the lab and the values Excel returns:

MeasureFormulaResultWhat it tells you
Mean revenue=AVERAGE(C2:C21)68,055Total revenue (1,361,100) shared equally by 20 reps
Median revenue=MEDIAN(C2:C21)62,300Average of the 10th (61,200) and 11th (63,400) value when sorted
Most common deal count=MODE.SNGL(D2:D21)16Three reps closed 16 deals; no other count occurs more than twice
Trimmed mean revenue=(SUM(C2:C21)-MAX(C2:C21)-MIN(C2:C21))/(COUNT(C2:C21)-2)63,272Mean of the 18 reps left after dropping 182,400 and 39,800
Same, with TRIMMEAN=TRIMMEAN(C2:C21,10%)63,27210% of 20 values = 2 values, one from each end

The mean is 68,055, the median 62,300: a gap of 5,755. The reason is one rep, Hugo Brandt, with 182,400, almost exactly twice the second-highest value (91,250). His revenue alone adds 182,400 ÷ 20 = 9,120 to the mean. The median does not care how far above everybody else he is; it only needs to know that he is above the middle.

20 revenues on one line: where are the mean and the median?40k60k80k100k120k140k160k180kHugo Brandt182,400median 62,300mean 68,05512 of the 20 reps sell less than the mean. One large value drags it to the right.Trimmed mean (without the top and bottom value): 63,272
Each dot is one rep. The median sits inside the main cluster; the mean is pulled to the right by a single value.

Here is the uncomfortable consequence: 12 of the 20 reps sell less than the "average" rep. If Orchard Row set every rep's quarterly target at the mean, more than half of the team would start the quarter behind, not because they are weak but because Hugo is exceptional. A target near the median, or near the trimmed mean of 63,272, describes the typical rep much more honestly.

You can test how robust each measure is with a simple experiment: change Hugo's revenue and watch the two results. In the chart below, his revenue moves from 40,000 to 300,000 while the other 19 reps stay the same. The mean climbs by 5,000 for every 100,000 he adds (100,000 ÷ 20). The median moves only while he crosses the middle of the list, then stays at 62,300 however large his number becomes.

What if the top rep had sold more (or less)?55k60k65k70k75k80k50k100k150k200k250k300krevenue of the top rep (all other 19 reps unchanged)Hugo today: 182,400meanmedian stays 62,300
The median is "robust": once the top value is above the middle, its size no longer matters. The mean reacts to every change.

What happens if Hugo is removed completely, perhaps because he handled one exceptional corporate contract that will not repeat? Then the mean of the other 19 reps is 62,037 and their median is 61,200. Notice how close the mean without him is to the median with him. That is a classic sign that one outlier, rather than the whole distribution, is responsible for the gap. Whether you should exclude such a value is a business decision, not a statistical one; the honest approach is to report both and say why.

The mode answers a different question. For revenue, every value is different, so =MODE.SNGL(C2:C21) would return #N/A. For deal counts, repetition is natural: 16 deals occurs three times, more often than any other count, so the mode is 16. The mean deal count (18.25) and the median (18) are close, which tells you deal counts are much less skewed than revenue. Hugo closed 31 deals, high but not extreme. His revenue per deal is what stands out.

Deals per rep: the mode is the tallest bar1112121321411531617218219120221122231242512627282930131deals closed in Q3 (number of reps above each bar)=MODE.SNGL(D2:D21) = 16
Deal counts repeat, so the mode is meaningful: 16 deals occurs three times. For revenue, where no value repeats, MODE.SNGL returns #N/A.

How to do it in Excel, step by step

The functions below work in Excel for Microsoft 365, Excel 2021, 2019 and 2016 on Windows and Mac. MODE.SNGL was introduced in Excel 2010; older files may use MODE, which behaves the same.

  1. Get a quick first look. Select C2:C21 and look at the status bar at the bottom of the window: Excel shows Average, Count and Sum. Right-click the status bar to add Minimum and Maximum. A large gap between the maximum and the next values is your first hint of an outlier.
  2. Calculate the mean. In B24, type =AVERAGE(C2:C21) and press Enter. You can also use Home > Editing > AutoSum ▾ > Average; check that the range it proposes does not include headers or a total.
  3. Calculate the median. In B25, type =MEDIAN(C2:C21). You find it under Formulas > More Functions > Statistical as well. Compare it with the mean right away.
  4. Find the mode of the deal counts. In B26, type =MODE.SNGL(D2:D21). If you suspect two or more values tie for most frequent, use =MODE.MULT(D2:D21); in Microsoft 365 it spills all modes into the cells below.
  5. Build the trimmed mean. In B27, type =(SUM(C2:C21)-MAX(C2:C21)-MIN(C2:C21))/(COUNT(C2:C21)-2). In desktop Excel the short form is =TRIMMEAN(C2:C21,10%), which returns the same 63,272.22 here.
  6. Format the results. Select B24:B27 and press Ctrl+Shift+! for a thousands separator, then reduce the decimals for revenue with Home > Number > Decrease Decimal. B26 is a count and needs no decimals.
  7. Run a sensitivity check. Temporarily change Hugo's revenue in C9 to 82,000 and watch B24 and B25. The mean falls to 63,035, the median does not move. Press Ctrl+Z to undo.
  8. Optional: full summary in one go. Enable the Analysis ToolPak (File > Options > Add-ins > Manage: Excel Add-ins > Go, tick Analysis ToolPak), then use Data > Data Analysis > Descriptive Statistics with Summary statistics ticked. It lists mean, median, mode, standard deviation and more, but as fixed values, so formulas remain better for a live report.
Name your data range to make formulas readable: select C2:C21, type Revenue in the Name Box left of the formula bar and press Enter. Now =MEDIAN(Revenue) works anywhere in the workbook.

Excel statistical functions such as AVERAGEIFS, MEDIAN, PERCENTILE and RANK applied to a sales team table
One sales team, 20 labs: from typical values to percentiles, ranks, histograms, correlation and outlier flags.

Common mistakes and how to spot them

Statistical functions almost never return an error message when they are misused. They quietly return a different number. Watch for these:

  • Reporting the mean for skewed data. For revenue, pay or prices, a few large values pull the mean up. Spot it: calculate both mean and median; if the mean is clearly higher, report the median or both.
  • Zeros versus blank cells. AVERAGE and MEDIAN ignore empty cells and text, but they include zeros. A rep who has not reported yet should be blank, not 0, or the mean drops. Spot it: compare =COUNT(C2:C21) with the number of reps you expect.
  • Numbers stored as text. Imported values that are text are skipped silently, so the average covers fewer reps than you think. Spot it: =COUNT(range) is smaller than =COUNTA(range).
  • Including the total row. A range that runs into a total adds one huge value and wrecks the mean. Spot it: the maximum in the status bar equals your total.
  • Using MODE on unique values. MODE.SNGL on revenue returns #N/A because no value repeats. Use it only for counts or values that genuinely repeat.
  • Ignoring ties in the mode. When two values occur equally often, MODE.SNGL returns only the one it meets first in the range. Spot it: check with MODE.MULT or a quick COUNTIF.
  • Misreading the TRIMMEAN percentage. TRIMMEAN(range,10%) removes 10% of the values in total, half from each end, not 10% from each end. Excel also rounds the number excluded down to an even number, so with 20 values 10% drops exactly two.
  • Forgetting hidden rows. AVERAGE still includes rows you hid by hand. If you need the average of the visible rows only, use =SUBTOTAL(101,C2:C21) or AGGREGATE.

Quick reference: functions and shortcuts from this lesson

Function / shortcutSyntaxUse it for
AVERAGE=AVERAGE(range)Mean; totals must add up; roughly symmetric data
MEDIAN=MEDIAN(range)Typical value of skewed data (revenue, pay, prices)
MODE.SNGL=MODE.SNGL(range)Most frequent value of counts or categories coded as numbers
MODE.MULT=MODE.MULT(range)All values that tie for most frequent
TRIMMEAN=TRIMMEAN(range,percent)Mean without a share of extreme values
Manual trimmed mean=(SUM(r)-MAX(r)-MIN(r))/(COUNT(r)-2)Drop exactly one value from each end
COUNT / COUNTA=COUNT(range), =COUNTA(range)Check how many numbers are really included
SUBTOTAL=SUBTOTAL(101,range)Average of visible rows only
AutoSum menuAlt+= (Windows)Inserts SUM; the ▾ next to AutoSum offers Average
Number formatCtrl+Shift+!Thousands separator, two decimals

Real-world uses

Choosing the right typical value is one of the most practical statistics skills, because it shows up in almost every report:

  • Setting sales targets. Base a quarterly target on the median or a trimmed mean of past results, so one exceptional deal does not raise the bar for the whole team, as the Orchard Row example shows.
  • Pay and salary reviews. HR teams usually compare salaries with the median of a peer group, because a few executive salaries can make the mean misleading.
  • Customer orders. The mode of items per order tells a warehouse which bundle size to prepare, and the median order value is a better basis for a free-shipping threshold than the mean.
  • Service and delivery times. Waiting or delivery times are usually right-skewed: most are short, a few are very long. Report the median as the typical case and look at the long ones separately.
  • Survey and rating data. For 1–5 ratings, the mode and the median are often more meaningful than a mean like 3.7, which no single respondent actually gave.

What you will build in the rest of this course

The same 20 Orchard Row reps (and a few related data sets) carry you through 19 more labs. Each one adds a tool that analysts use every week, with every cell checked instantly.

Lesson 2: Conditional Statistics: AVERAGEIFS, MAXIFS, MINIFS and COUNTIFS. Ask the questions managers actually ask: what is the average revenue in the West region, who has the highest deal count in the North, how many reps meet three conditions at once? You build a region summary with AVERAGEIFS, MAXIFS, MINIFS and COUNTIFS.

Lesson 3: Spread: Range, STDEV.S vs STDEV.P, VAR and the IQR. Two teams can have the same average and completely different consistency. You measure how much days-to-close vary with the range, the standard deviation and variance (and learn when to use STDEV.S rather than STDEV.P), and the interquartile range.

Lesson 4: PERCENTILE, PERCENTRANK and Quartile Bands. Set a top-10% bonus threshold with PERCENTILE.INC, give every rep a percent rank and sort the team into four quartile bands. These are the formulas behind "top quartile" in every performance report.

Lesson 5: RANK.EQ vs RANK.AVG and Top-N with LARGE and SMALL. Rank reps by deals with RANK.EQ and RANK.AVG, see exactly how each treats ties, and list the top three and bottom three revenues with LARGE and SMALL, ready for a leaderboard.

Lesson 6: Frequency Tables and Histograms with COUNTIFS. Group 40 web orders into $50 bins with COUNTIFS, add each bin's share and draw a histogram. A histogram shows the shape of the data that the mean and median only summarise.

Lesson 7: CORREL, COVARIANCE and STANDARDIZE z-Scores. Measure how strongly deals and revenue move together with CORREL and COVARIANCE, turn every revenue into a z-score with STANDARDIZE and draw a scatter chart with a trendline.

Lesson 8: Mid-course project: Outlier Flags and a Summary Statistics Table. Lab 8: flag outliers with the 1.5 × IQR rule (Hugo will not escape) and complete a summary statistics table that compares the whole team with the team without outliers, a reusable template for any data set.

Finish all 20 labs and the final exam to earn the Tabellab Certified Excel Statistics User certificate.

Summary

The mean, the median, the mode and the trimmed mean all describe a "typical" value, but they answer slightly different questions. The mean (68,055 for Orchard Row) uses every value and is pulled by extremes; the median (62,300) is the middle value and resists them; the mode (16 deals) is the most frequent value and suits counts; the trimmed mean (63,272) drops the extremes and averages the rest. When the mean and the median disagree, look for the value that causes the gap before you report either.

Now scroll up to the lab and calculate all four yourself. The Coach checks each formula instantly and explains what went wrong if you pick the wrong column or forget to adjust the count. It takes about 15 minutes.

Frequently asked questions

What is the difference between AVERAGE and MEDIAN in Excel?

AVERAGE adds all values and divides by the count, so extreme values pull it. MEDIAN returns the middle value of the sorted list and ignores how extreme the top and bottom values are.

When should I use the median instead of the mean?

Use the median for skewed data such as revenue, salaries, house prices or waiting times, where a few large values pull the mean up. If the mean and median are close, either one works.

Why does MODE.SNGL return #N/A?

MODE.SNGL returns #N/A when no value occurs more than once, which is typical for amounts like revenue. Use it for counts or other values that repeat.

How does MEDIAN work with an even number of values?

With an even count, Excel sorts the values and returns the average of the two middle ones. For 20 values, that is the average of the 10th and 11th value.

How do I calculate a trimmed mean in Excel?

Use =TRIMMEAN(range, percent), where the percent is the total share of values to drop, split evenly between both ends. To drop exactly the highest and lowest value, use =(SUM(r)-MAX(r)-MIN(r))/(COUNT(r)-2).

Does Excel AVERAGE include blank cells and zeros?

AVERAGE ignores blank cells and text but includes zeros. Leave missing values blank rather than entering 0, or the average will be too low.

Keep going: Excel Statistical Functions: AVERAGEIFS, MEDIAN, PERCENTILE, RANK & FREQUENCY

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time €9.90.

  1. Conditional Statistics: AVERAGEIFS, MAXIFS, MINIFS and COUNTIFS
  2. Spread: Range, STDEV.S vs STDEV.P, VAR and the IQR
  3. PERCENTILE, PERCENTRANK and Quartile Bands
  4. RANK.EQ vs RANK.AVG and Top-N with LARGE and SMALL
  5. Frequency Tables and Histograms with COUNTIFS
  6. CORREL, COVARIANCE and STANDARDIZE z-Scores
  7. Mid-course project: Outlier Flags and a Summary Statistics Table
  8. Weighted Mean with SUMPRODUCT, GEOMEAN for Growth and HARMEAN for Rates
  9. Distribution Shape: SKEW, KURT and the Mean–Median Gap
  10. Comparing Consistency: Coefficient of Variation, AVEDEV and the Median Absolute Deviation
  11. No MEDIANIFS? Conditional MEDIAN, PERCENTILE and STDEV with IF Arrays
  12. Blanks, Text and Zero Placeholders: COUNT vs COUNTA, AVERAGEIF and AGGREGATE Filters
  13. Is the Normal Model Good Enough? NORM.DIST and NORM.INV vs the Actual Data
  14. Ranking Within Groups: COUNTIFS Ranks, Tie-Breakers and Percent Ranks
  15. Revenue Concentration: Sorted Shares, the 80% Point and a Pareto Curve
  16. The FREQUENCY Function: Bins, the Overflow Bin and a Cumulative Share Curve
  17. Two Quarters Compared: Average of Changes vs Change of the Total
  18. A Correlation Matrix with CORREL and INDEX/MATCH
  19. Final Project: Region Statistics Dashboard for a Second Retailer

Buy course — €9.90 See the full course