Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 929

Nested IF functions in Median causes error in array

$
0
0

I have looked at a few solutions in this forum and tried their answers, but not been able to reach a solution. I have a data set I want to determine a conditional median for.

Sample Dataset:

enter image description here

Desired Outcome: I want to find the median of Ages, if the BD column has an entry of FSGS or MCD.

My current formula is:

{=MEDIAN(IF(BD="MCD",IF(BD="FSGS",Age)))}

But I keep getting a #Num! error.

I have checked that the "age" field are formatted as numbers. The BD field are formatted as General (but I have gone through and retyped each to ensure there were no leading spaces etc)

I can't seem to work out the problem, can anyone can help??


Viewing all articles
Browse latest Browse all 929

Trending Articles