Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.
All articles MEDIAN Learn How to Use MEDIAN and IF to Find the Median When There are Conditions

Learn How to Use MEDIAN and IF to Find the Median When There are Conditions

With knowledge of excel MEDIAN and IF functions, it is now possible to get the median of values that meet a given criteria. Note that excel does not have MEDIANIF as a function. But by combining these two functions, we can be able to achieve our goals. This post provides a clear guide on how to use a combination of MEDIAN and IF functions to get the median when there are conditions.

Figure 1. Final result

General syntax of the formula

{=MEDIAN(IF(range=criteria, median_range))}

Understanding the formula

This formula is a combination of two functions, the MEDIAN and IF functions. Note that we do not have a single function in excel that combines MEDIAN and IF functions.

But for us to get the median based on set conditions, we need to use both of these functions.

In the example above, our criteria is to get median based on item named A. column A shall be our range, while B will be the median_range.

We then set our formula as shown below;

{=MEDIAN(IF(A2:A14=A2,B2:B14))}

It is important to remember that this is an array formula, thus needs to be entered by Control + Shift + Enter.

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Leave a Comment

avatar

Subscribe to Excelchat.co

Get updates on helpful Excel topics

Subscribe to Excelchat.co
Trusted by people who work at
Amazon.com, Inc
Facebook, Inc
Accenture PLC
Siemens AG
Macy's
The Allstate Corporation
United Parcel Service
Dell Inc