Q: median if, Conditional medians
I want get the MEDIAN of a column IF it meets specific criteria found in another column. EXCEL can do it with the following formula:
=MEDIAN(IF($A:$A="trade association",$B:$B))
"Because the formula itself references an array, you need to hit CTRL+SHIFT+ENTER instead of just ENTER when you've finished writing the formula."
That same formula didn't work in iWork Numbers.
Nor did this one
=IF($A:$A="trade association",MEDIAN($B:$B))
I know an easy solution would be to create a new column with an IF statement, but I'm trying to avoid that for a number of other reasons.
When I tried to import an Excel document into Numbers, I got the error "The array formula couldn't be imported and was replaced by the last calculated value."
TYPE | TOTAL REVENUE |
trade association | $1,601,466,444 |
trade association | $732,697,005 |
professional society | $601,993,361 |
professional society | $586,676,226 |
trade association | $466,733,002 |
professional society | $462,700,048 |
trade association | $457,383,677 |
trade association | $389,161,833 |
trade association | $311,840,739 |
trade association | $276,005,771 |
Posted on Aug 25, 2016 10:47 AM
Thanks for the definitive answer: Numbers doesn't support "array formulas." I can stop looking around now.
Numbers does support AVERAGEIF and SUMIF. I hoped they'd support other functions too.
Posted on Aug 25, 2016 11:43 AM
