Statistical
720 monthly searches
Beginner
4 min read

MEDIAN Formula in Excel - Find Middle Value & Central Tendency

Find the true middle value in your data with the MEDIAN function in Excel....

Quick Start

Syntax

=MEDIAN(number1, [number2], ...)

Parameters

number1 - Required. First number, cell reference, or range to find the median of.

number2, ... - Optional. Optional. Additional numbers or ranges (up to 255 arguments total).

Simplest Example

AB
1SalaryAnalysis
2$45,000
3$52,000
4$48,000
5$350,000(CEO outlier)
6Median:
=MEDIAN(A2:A5)
$50,000

Quick Reference

Basic MEDIAN
=MEDIAN(A1:A10)

Find middle value in range

=MEDIAN(10,20,30,40,50) → 30

MEDIAN with Multiple Ranges
=MEDIAN(A1:A5, C1:C5)

Combine multiple ranges

=MEDIAN(10,15,20,25,30,35) → 22.5

MEDIAN vs AVERAGE Comparison
=IF(AVERAGE(A:A)>MEDIAN(A:A)*1.2,"Skewed","Normal")

Detect outlier-skewed data

Returns "Skewed" if average much higher

Conditional Median (Array)
=MEDIAN(IF(Category="A",Values))

Median of specific category only

Enter as array formula (Ctrl+Shift+Enter)

Real-World Examples

Median Salary Analysis (Outlier-Resistant)

Calculate the true typical salary in your organization without executive compensation distorting the results. The MEDIAN function in Excel is perfect for HR salary benchmarking, compensation analysis, and pay equity studies where a few high earners would skew the average salary. This Excel MEDIAN formula provides accurate middle values for salary surveys, market research, compensation planning, and fair pay structure analysis used by HR professionals, recruiters, and compensation analysts.

ABC
1EmployeeDepartmentSalary
2AliceSales$52,000
3BobSales$48,000
4CarolSales$55,000
5CEOExecutive$450,000
6Median Salary:
=MEDIAN(C2:C5)
$53,500
7Average (skewed):$151,250
Pro Tip: MEDIAN gives true middle salary ($53.5K), while AVERAGE is skewed to $151K by CEO outlier.
Pattern: =MEDIAN(salary_range) for outlier-resistant compensation analysis
Performance Benchmark Comparison

Compare individual performance scores against the median benchmark to identify above-average and below-average performers. The Excel MEDIAN function creates fair performance baselines unaffected by a few exceptional or poor performers. This MEDIAN formula pattern is essential for performance reviews, sales rankings, quality control metrics, and team assessments where you need an accurate middle reference point for employee evaluation and talent management.

ABC
1Sales RepSalesvs Median
2Alice$125,000
3Bob$87,000
4Carol$110,000
5Median:$110,000
=MEDIAN($B$2:$B$4)
6Alice Status:Above Median
Pro Tip: Use absolute references ($B$2:$B$4) so MEDIAN range stays fixed when copying formula.
Pattern: =IF(score>MEDIAN($range),"Above","Below") for benchmarking

Common Mistakes to Avoid

=MEDIAN(A1, A2, A3, A4, A5)Listing individual cells instead of using range

❌ The Problem:

  • Tedious for large datasets (100+ values)
  • Error-prone when adding/removing data rows
  • Difficult to maintain and audit formulas

✅ Solution:

=MEDIAN(A1:A5)

Use range notation (A1:A5) instead of comma-separated cells. The Excel MEDIAN function handles ranges efficiently, making formulas scalable and easier to maintain. For dynamic datasets, consider using entire column references like =MEDIAN(A:A) or named ranges for better formula readability.

=AVERAGE(A1:A10) when data has outliersUsing AVERAGE instead of MEDIAN for skewed data

❌ The Problem:

  • Average is pulled high/low by extreme outliers
  • Misrepresents the typical value in distribution
  • Leads to incorrect business decisions (salaries, pricing)

✅ Solution:

=MEDIAN(A1:A10)

Use MEDIAN function in Excel when your dataset contains outliers or extreme values. MEDIAN returns the true middle value, resistant to skew. Compare both: if AVERAGE is >20% different from MEDIAN, your data is skewed and MEDIAN is more accurate for central tendency analysis in compensation, pricing, and performance metrics.

=MEDIAN(A1:A10) including text/error cellsNot accounting for text and error values

❌ The Problem:

  • MEDIAN automatically ignores text and errors
  • May give unexpected results if you expect them counted
  • Can produce incorrect analysis if data quality is poor

✅ Solution:

=MEDIAN(IFERROR(A1:A10,""))

The MEDIAN function in Excel ignores text values, logical values, and empty cells - it only processes numbers. If you have mixed data types, clean your data first or use IFERROR to convert errors to values. For conditional median based on criteria, use array formulas like =MEDIAN(IF(Category="A",Values)).

Frequently Asked Questions

Other Statistical Functions

Related Formulas

Master these MEDIAN variants:

Master Excel MEDIAN

From basics to advanced - AI generates perfect formulas instantly.