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

Find the middle value in an Excel range, test odd and even lists, and see when the median is more informative than the mean.

Table of Contents

Enter =MEDIAN(D5:D9) in an empty cell to find the median of those values. You do not need to sort the worksheet. With an odd number of values, Excel returns the middle value. With an even number, it averages the two middle values.

Calculate the median of a score column

If scores are in D5:D9, enter =MEDIAN(D5:D9) in a cell outside that range, such as C11. The screenshots show a score sheet and its result.

MEDIAN function in Excel, how to use and examples Picture 1

MEDIAN function in Excel, how to use and examples Picture 2

Test the result with a small example

  • =MEDIAN(2,4,9) returns 4.
  • =MEDIAN(2,4,9,20) returns 6.5, the mean of 4 and 9.
  • For 2, 4, 9, 20, 100, the median is 9 and the mean is 27. The large value pulls up the mean.

Check for missing or imported values

When you pass a cell range, MEDIAN ignores blanks, text, and logical values in the range. It includes numeric zero. If a score looks like a number but was imported as text, first check the cell type and use the VALUE function if you need to convert it. See Microsoft's MEDIAN reference for argument handling. For a small report, the chart and summary lesson shows how to present the underlying distribution alongside a summary value.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.