Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use the MEDIAN Function in Excel

Learn how to use MEDIAN Function in Excel, including its purpose, syntax, examples, and common errors, with clear step-by-step guidance.

Table of Contents

This guide explains how to use MEDIAN Function in Excel, including its syntax, required arguments, practical examples, and common errors.

How to Use the MEDIAN Function in Excel screenshot

Description: The function returns the median of the given numbers. Median number is the number in the middle of a set of numbers.

Syntax: MEDIAN (number1, [number2]. )

Inside:

- number1, [number2]. ) Are the values you want to find the median, where number1 is the required parameter, other values are optional and contain up to 255 number parameters .

Attention:

- The value of the argument must be a number, name, array or reference containing numbers.

- If the number of sets of numbers you want to calculate the median is even -> the function performs the average calculation of the two middle numbers.

- Logical or text values when typing directly into the argument list -> these values are still counted.

- If the argument is a reference array containing text values or logic -> these values are ignored, but the value 0 is still counted.

- Arguments that are text or error values cannot be converted -> cause errors in the function.

For example:

Calculate the median of number values as described in the following data table:

How to Use the MEDIAN Function in Excel screenshot 2

- In the cell to calculate enter the formula : = MEDIAN (D6: D11)

How to Use the MEDIAN Function in Excel screenshot 3

- Press Enter -> median of values is:

How to Use the MEDIAN Function in Excel screenshot 4

- Where the number of values in the set of values you want to calculate the median is even, but the values are not evenly spaced -> the function still calculates the normal way.

How to Use the MEDIAN Function in Excel screenshot 5

- Where the number of values in the set of values you want to calculate the median is even, but the values are evenly spaced -> the function performs the average value of the two numbers in the middle, here (12 + 15) ) / 2 = 13.5

How to Use the MEDIAN Function in Excel screenshot 6

Above are instructions and some specific examples when using MEDIAN function in Excel.

Good luck!

FAQ

What does the MEDIAN function do in Excel?

The MEDIAN function performs the calculation described in this guide. Use the correct arguments and compatible data types for reliable results.

How do I enter the MEDIAN function correctly?

Start with an equals sign, enter MEDIAN, add the required arguments inside parentheses, and confirm that cell references and separators are correct.

Why does the MEDIAN function return an error?

Common causes include missing arguments, invalid data types, incorrect cell references, unsupported values, or regional separator settings.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.