Center With MEDIAN and MODE
Find the middle and most common values in a dataset.
Center With MEDIAN and MODE is a free Excel Formulas Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Two Kinds of Middle
When you summarize data, the average is not the only "middle." Two other measures of center matter: the median and the mode.
- MEDIAN is the middle value when numbers are sorted.
- MODE is the value that appears most often.
Each tells a different story about your dataset, and together they paint a clearer picture than the average alone.
Why Not Just Use AVERAGE?
The average is easily pulled around by extreme values. If most salaries are near 50,000 but one person earns 5,000,000, the average jumps far above what a typical person earns.
The median ignores this. It simply asks: what value sits exactly in the middle? That makes it a robust measure of "typical" for skewed data like income, house prices, or response times.
The MEDIAN Function
MEDIAN takes a range and returns the middle value after sorting. You do not need to sort the data yourself.
Here we find the median of ten values in column A. If there is an odd count, MEDIAN returns the exact middle item. If there is an even count, it averages the two middle items.
=MEDIAN(A2:A11)Median of an Even List
Suppose your sorted values are 2, 4, 6, 10. There is no single middle item, so MEDIAN averages the two central numbers: (4 + 6) / 2 = 5.
This is why a median can be a value that does not actually appear in your data. It still represents the center of the distribution.
=MEDIAN(2,4,6,10)Comparing Average and Median
A quick trick: compare the average and the median side by side.
- If they are close, your data is fairly symmetric.
- If the average is much higher than the median, you have high outliers pulling it up.
- If the average is lower, low outliers are dragging it down.
This single comparison is a fast health check for any dataset.
=AVERAGE(A2:A11)-MEDIAN(A2:A11)The MODE Function
The mode is the most frequently occurring value. In modern Excel and Google Sheets you use MODE.SNGL (single mode); the older MODE still works for one result.
Here we find the single most common value in a range. This is handy for finding the most-ordered product size, the most common rating, or a typical quantity.
=MODE.SNGL(A2:A20)When There Is No Repeat
MODE only works if at least one value repeats. If every number in the range is unique, MODE.SNGL returns the #N/A error.
To avoid an ugly error in a report, wrap it with IFERROR and provide a friendly fallback message.
=IFERROR(MODE.SNGL(A2:A20),"No repeats")Multiple Modes With MODE.MULT
Sometimes two or more values tie for most frequent. MODE.MULT returns all of them as a spilled array.
In modern Excel and Google Sheets, typing this in one cell lets the results spill down into the cells below automatically.
=MODE.MULT(A2:A20)A Worked Example: Survey Ratings
Imagine star ratings from 1 to 5 in A2:A21. You want the typical rating.
- MEDIAN tells you the middle rating.
- MODE tells you the rating people chose most.
If MEDIAN is 4 but MODE is 5, most people gave 5 stars yet a chunk gave lower scores, pulling the middle down to 4. Two numbers, two insights.
=MEDIAN(A2:A21) & " / " & MODE.SNGL(A2:A21)Ignoring Text and Blanks
Both MEDIAN and MODE.SNGL look only at numbers. Blank cells and text labels inside the range are simply ignored, not counted as zero.
That means you can point these functions at a whole column even if it has a header or stray notes. Just be careful: a number stored as text (left-aligned) is ignored too, which can quietly change your result.
=MEDIAN(A:A)Conditional Median
There is no built-in MEDIANIF, but you can compute a median for one group using an array. In modern Excel and Sheets, MEDIAN combined with IF gives the median of only the East region.
This returns the middle order value for just the rows where the region equals East, ignoring everything else.
=MEDIAN(IF(B2:B100="East",C2:C100))Quick Check
Test your understanding of center measures.
Recap: Median and Mode
You learned the two non-average measures of center:
MEDIAN(range)returns the middle value, ignoring outliers.MODE.SNGL(range)returns the most frequent value;MODE.MULTreturns all ties.- MODE returns #N/A with no repeats, so wrap it in IFERROR.
- Comparing average to median reveals skew in your data.
Use these together for a fuller picture than the average alone.
Frequently asked questions
Is the “Center With MEDIAN and MODE” lesson free?
Yes — the full text of “Center With MEDIAN and MODE” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.
What will I learn in “Center With MEDIAN and MODE”?
Find the middle and most common values in a dataset. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Excel Formulas Academy?
No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Center With MEDIAN and MODE” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Excel Formulas Academy lesson?
Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Center With MEDIAN and MODE
- Spread With STDEV and VAR
- Ranking With RANK and PERCENTILE
- Top and Bottom With LARGE and SMALL