Skip to main content

Excel MEDIAN Function

doc median1

If you want to follow along with this tutorial, please download the example spreadsheet.

doc sample


The Excel MEDIAN function returns the middle number of the supplied numbers.

Syntax and arguments

Formula syntax

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


  • Number1: Required, a number, a reference cell to number, a name, an array or a range contains numbers that you want to find the middle number from.
  • Number2, ...: Optional, subsequent numbers, up to 255 numbers are allowed in MEDIAN function.

Return Value

The MEDIAN function returns a numeric value.


1. If there is an odd number of numbers in the set, the MEDIAN function returns the middle number of the set, if there is an even number of numbers in the set, the MEDIAN function returns the average of the two numbers in the middle of the set.

2. Arguments can either be numbers, names, arrays or references that contain numbers.

3. Logical values (TRUE and FALSE), texts, or empty cells are ignored by MEDIAN function.

4. Zero values are counted by MEDIAN function.

5. MEDIAN function measures central tendency, which is the location of the center of a group of numbers in a statistical distribution.


Excel 2003 and later

Usage and Examples

Example: basic usage

To get the middle numbers in range B4:C7, please use formula:


Press Enter key to get the median.

doc median function 2

Relative Functions:

  • Excel MAX Function
    The Excel MAX functionreturns the largest value in the supplied set of values (ignores logical values).

  • Excel MAXA Function
    The Excel MAXA function returns the largest value in the supplied set of values.

The Best Office Productivity Tools

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations