Median with multiple condition formula

kogur

New Member
Joined
Jul 28, 2014
Messages
15
Hey folks,

As the title says, I am trying to make this formula work. Any idea what I might be doing wrong?

{=MEDIAN(IF('Raw Median Incidents'!$Y:$Y="1 - Critical",IF('Raw Median Incidents'!$F:$F="2019",IF('Raw Median Incidents'!$G:$G="2/2019",'Raw Median Incidents'!$I:$I))))}

Column Y=Priority
Column F=Year Closed
Column F=Month Closed
Column I = Hours to resolve

I'm sure you all see what I'm doing but just in case - I want the Median Hours to resolve based on priority, year, and month.

It keeps coming back with a NUM error.

I've been on the fence with kutools for years - would that help with this?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Try removing the quotes from "2019"
 
Upvote 0
1639419517717.png

Thank you Fluff I will update now!
 
Upvote 0
Thanks for that, did you try removing the quotes?
 
Upvote 0
Just did - now instead of an NUM error it comes back with a NAME error. I think the quotes have to be there. I could definitely be wrong though!
 
Upvote 0
Did you just remove them from the 2019?
 
Upvote 0
Because using "2019" makes it text & not a number.

As you are using xl365, you can also use
Excel Formula:
=MEDIAN(FILTER($I:$I,($Y:$Y="1 - Critical")*($F:$F=2019)*($G:$G="2/2019")))
Although you should avoid using whole column references.
 
Upvote 0
You're formula is much better! Why avoid using entire columns? It keeps you from having to adjust ranges based on newly added data, no?
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top