FormulaCraft

How to find the median of a range in Excel and Google Sheets

Topic:AVERAGE & central tendency
Excel & Google Sheets
=MEDIAN(B2:B6)

Verified example

Computed by a real spreadsheet engine on the sample data below.

SalespersonRevenue
Alice300
Bob500
Carol200
Dave800
Eve450

=MEDIAN(B2:B6)450

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the output cell.
  2. 2Type =MEDIAN(.
  3. 3Select or type the range of numbers, e.g. B2:B6.
  4. 4Close the parenthesis and press Enter.
  5. 5MEDIAN automatically ignores text and blank cells.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

How do I calculate a conditional median?

In Excel 365 or Google Sheets: =MEDIAN(IF(A2:A6="North",B2:B6)). In older Excel, confirm with Ctrl+Shift+Enter to make it an array formula.

What does MEDIAN return for an even number of values?

It returns the arithmetic mean of the two middle values when the count is even.

More on AVERAGE & central tendency

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: