totn Excel Functions

MS Excel: How to use the MEDIAN Function (WS)

This Excel tutorial explains how to use the Excel MEDIAN function with syntax and examples.

Description

The Microsoft Excel MEDIAN function returns the median of the numbers provided.

The MEDIAN function is a built-in function in Excel that is categorized as a Statistical Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the MEDIAN function can be entered as part of a formula in a cell of a worksheet.

Syntax

The syntax for the MEDIAN function in Microsoft Excel is:

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

Parameters or Arguments

number1
A numeric value that can be a number, named range, array, or reference to a number.
number2, ... number_n
Optional. Numeric values that can be numbers, named ranges, arrays, or references to numbers. There can be up to 30 values entered.

Returns

The MEDIAN function returns a numeric value.

Applies To

  • Excel for Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Function

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MEDIAN function examples and explore how to use the MEDIAN function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the Excel spreadsheet above, the following MEDIAN examples would return:

=MEDIAN(A2, A3)
Result: 8.85

=MEDIAN(A3, A5, 45)
Result: 7.2

=MEDIAN(A2:A6)
Result: 8.1

=MEDIAN(1, 3, 13, 14, 15)
Result: 13