From data to report in one minute or less. Ajelix BI is launched! 🚀 Get started for free.

How To Find The Median In Excel: Median Function

  • Last updated:
    March 4, 2025
How To Find The Median In Excel blog-banner

Calculating the median is a fundamental statistical skill that can provide valuable insights into your data. In Excel, the median function simplifies this process, allowing users to quickly determine the middle value of a dataset without manually sorting the numbers. This article will guide you through how to find the median in Excel using the median formula in Excel, ensuring you can efficiently calculate the median in Excel for various applications.

The median in Excel is particularly useful when dealing with datasets that may contain outliers, as it offers a more accurate representation of central tendency than the average.

By utilizing the median function in Excel, you can easily analyze data such as test scores, sales figures, or any numerical values. Whether you’re a beginner or an experienced user, understanding how to use this function will enhance your data analysis skills.

In this article, we will cover step-by-step instructions on how to calculate median values using the Excel calculate median feature. You will learn practical examples and tips on how to effectively find median in Excel, making your data analysis tasks more straightforward and efficient.

What is MEDIAN function in Excel?

The MEDIAN function in Excel finds the middle number of a given set of numbers by arranging the given numbers in numerical order and then selecting the number in the middle of the list. If there is an even number of numbers, the median is found by taking the average of the two middle numbers.

Syntax

=MEDIAN(number1, [number2], …)

Ajelix logo iconExcel logo

Generate Your Excel Formulas For Free
Excel + Ajelix AI

How To Find The Median In Excel?

Time needed: 3 minutes

Finding the median in Excel is a straightforward process using the median function in Excel. This guide will walk you through how to calculate the median and find the median in Excel using the Excel calculate median feature.

  1. Prepare Your Data

    Enter your numerical data into a column or row in your Excel spreadsheet. Make sure each number is in a separate cell.
    How To Find The Median In Excel screenshot with data table

  2. Select the Cell for the Median

    Choose the cell where you want the median value to appear. This is where the median function in excel will display the result.
    How To Find The Median In Excel screenshot with selected cells for formula input

  3. Enter the Median Formula

    In the selected cell, type the following formula: =MEDIAN(. This initiates the excel median function.
    how to find median in excel screenshot with inserted formula

  4. Select the Data Range

    After typing (, select the range of cells containing your data. You can do this by: Clicking and dragging your mouse over the data range. Typing the cell range manually (e.g., A1:A10 if your data is in cells A1 through A10). This sets the data that excel calculate median will use.
    finding median in excel screenshot with applied formula

  5. Close the Parentheses

    Type a closing parenthesis ) to complete the formula.
    finished median function in excel screenshot

  6. Press Enter

    Excel will calculate and display the median of your data in the cell.

By following these steps, you can easily calculate the median in Excel and find the median in Excel using the Excel median function. This is particularly useful for analyzing datasets where outliers might skew the average, making the median a more reliable measure of central tendency.

You might also like:How To Sum A Column In Excel?

Finding MEDIAN Of Ungrouped Data Excel

Dealing with ungrouped data simply means your data points aren’t neatly arranged in a single, grouped range (like A1:A10). They might be scattered across different cells or ranges. Here’s how to find the median in such cases, both manually and using Excel.

Excel’s MEDIAN function is very versatile and can handle non-contiguous data. Here’s how to use it:

1.Identify Your Data Cells: Note the cell addresses of all your data points.

Median Excel function screenshot with example

2. Use the MEDIAN Function:

  • In an empty cell, type =MEDIAN(.
  • Now, enter each cell address or range, separated by commas.
    • For individual cells: =MEDIAN(A1, C5, D2, F8)
    • For multiple ranges: =MEDIAN(A1:A5, C1:C3)
  • Close the parentheses ).
  • Press Enter.
MEDIAN function in Excel for scattered data screenshot from spreadsheet

By following these steps, you can effectively find the median of non-contiguous data, whether you’re working manually or using the power of Excel.

Ajelix logo iconExcel logo

Generate Your Excel Formulas For Free
Excel + Ajelix AI

Excel Median IF With One Criteria

While Excel doesn’t have a direct “MEDIANIF” function like it does for AVERAGEIF or SUMIF, we can achieve the same result using a combination of the MEDIAN and IF functions. Here’s how:

1. Construct the Median IF Formula

This is where the magic happens. In an empty cell, enter the following formula structure:

  • =MEDIAN(IF(range_criteria=criteria, range_values))
  • Replace range_criteria with the range of cells containing your criteria (e.g., A2:A100).
  • Replace criteria with the specific criteria you’re looking for (e.g., “Project B”, “Project A”).
  • Replace range_values with the range of cells containing the numerical values (e.g., B2:B100).

For example: =MEDIAN(IF(B2:B13,"Project B",E2:E13))

Excel Median IF With One Criteria screenshot with formula

2. Enter as an Array Formula (Crucial!)

This is the most important step. Because we are using the IF function to create an array of values for the MEDIAN function, you must enter this as an array formula.

After typing the formula, instead of pressing Enter, press Ctrl + Shift + Enter (Windows) or Command + Shift + Enter (Mac).

keyboard command for excel formula screenshot

Excel will automatically enclose the formula in curly braces {}. These braces indicate that it’s an array formula. You should not type the curly braces manually.

You might also like:How Do You Calculate Averages In Excel?

3. Interpret the Result

  • Excel will calculate and display the median of the numerical values that meet your specified criteria.
  • You now have successfully used the median if in excel formula.
Median if formula final result screenshot

Thanks to AI, you can generate formulas from your text and include them easily in sheets 👇

Ajelix logo iconExcel logo

Generate Your Excel Formulas For Free
Excel + Ajelix AI

Download Template To Find Medium In Excel

Conclusions

In conclusion, mastering the MEDIAN function in Excel empowers you to quickly and accurately determine the central tendency of your datasets. As demonstrated, how to find the median in Excel for ungrouped data is a straightforward process using the median function in Excel.

Whether you need to find median in Excel for a simple list or require the more nuanced Median IF with one criteria (or its extension for multiple criteria), Excel provides the tools to accomplish your analytical goals.

Remember that the Median in Excel represents the middle value, offering a robust measure of central tendency that’s less susceptible to outliers than the mean. By understanding how to effectively utilize the median if formulas, you can extract valuable insights from your data, even when dealing with specific subsets based on defined criteria.

FAQ

How do I handle blank cells when calculating the median?

The MEDIAN function ignores blank cells. You don’t need to do anything special.

Is there a way to find the median of a subset of data based on a specific criteria?

Yes, you can use the MEDIAN function combined with the IF function as an array formula. Enter =MEDIAN(IF(criteria_range=criteria, value_range)) and press Ctrl + Shift + Enter (Windows) or Command + Shift + Enter (Mac).

Can I use the MEDIAN function with data in different sheets or workbooks?

Yes, you can reference cells in other sheets or workbooks within the MEDIAN function.

Speed up your spreadsheet tasks with Ajelix AI in Excel

formula generator preview illustration