
π This article includes 1 downloadable practice file β
In this article
- Syntax & Parameter Breakdown
- Where You Will Use It
- Practical Worked Examples
- Mistakes People Make & How to Avoid Them
- Frequently Asked Questions
- When should you use MEDIAN instead of AVERAGE?
- How does MEDIAN handle an even number of values?
- Can MEDIAN be calculated with conditions (like a MEDIANIF)?
- MEDIAN in practice
- Where you will use it
- Worked example
- Mistakes people make
- Continue learning
The MEDIAN function in Excel is an essential spreadsheet tool designed to Calculate the statistical median (exact middle value) of a numeric dataset, providing a realistic baseline unaffected by extreme outliers.
Syntax & Parameter Breakdown
=MEDIAN(number1, [number2], ...)
| Argument | Requirement & Description |
|---|---|
number1 |
Required. The first number, cell reference, or range of numbers. |
number2, ... |
Optional. Up to 254 additional numeric items or ranges. |
Where You Will Use It
Standard metric for salaries, home prices, customer response times, and financial benchmarks where a few ultra-high values skew the mean average.
Practical Worked Examples
Here are common real-world formula scenarios utilizing MEDIAN:
| Formula | Expected Behavior & Purpose |
|---|---|
=MEDIAN(B2:B200) |
Returns the median salary from column B, giving a true picture of typical pay. |
=MEDIAN(A2:A50, C2:C50) |
Calculates the median across two separate data sets. |
=MEDIAN(10, 20, 30, 40) |
Returns 25 (the average of the two middle numbers in an even-sized set). |
Mistakes People Make & How to Avoid Them
Non-numeric cells, text strings, and blank cells in ranges are ignored. If all values are non-numeric, MEDIAN returns a #NUM! error.
Frequently Asked Questions
When should you use MEDIAN instead of AVERAGE?
Use MEDIAN whenever your dataset has extreme outliers (e.g. real estate pricing or compensation) that distort the arithmetic mean.
How does MEDIAN handle an even number of values?
If the count is even, MEDIAN calculates the average of the two numbers in the middle.
Can MEDIAN be calculated with conditions (like a MEDIANIF)?
Yes, in Excel 365 use =MEDIAN(FILTER(B2:B100, A2:A100=”Engineering”)).
π Master spreadsheet formulas with our Free Excel Course or explore related functions in the Formula Lab.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
MEDIAN in practice
Where you will use it
- Typical salary without big outliers
- Middle delivery time
- Typical order value when a few orders are huge
Worked example
Notice how one Rs 95,000 order barely moves the median.
| Order | Formula | Result |
|---|---|---|
| 1200 | =MEDIAN($A$2:A2) | 1200 |
| 1500 | =MEDIAN($A$2:A3) | 1350 |
| 1800 | =MEDIAN($A$2:A4) | 1500 |
| 95000 | =MEDIAN($A$2:A5) | 1650 |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Using AVERAGE with outliers | MEDIAN resists extreme values |
| Even number of values | MEDIAN averages the two middle values |
π Practice files for this article
- πPractice workbook: Statistics basics22 tasks on realistic sales data β type your formula, the Check column turns green when it is right. Answers sheet included.β¬ XLSX Β· 34 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βBuild this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.