Struggling with MEDIANIF, get #NUM!

somanyqs

Board Regular
Joined
Oct 2, 2007
Messages
76
On Excel for Mac 2011

I have a median if array (am using C-S-E) that works for about 5 of my criteria, but when I add in my last criteria, it goes to #NUM!.
I know I am missing something basic, and that #NUM! is a clue for where I am going wrong, but can't figure it out...

So I have for example:
{=MEDIAN(IF(CAR_HP=B1,IF(COLOR_="Yes",IF(DENTED="No",IF(OPTIONS="Standard",VALUE)))))}

Where each of the names above refers to a column in another sheet that holds all the data, and B1 is the horsepower

When I try adding the FY (fiscal year) of purchase (which I type in cell A1) to the formula, it produces #NUM!

I've tried a few things with no luck (including formatting the cell A1 as a number and text, and same with the values in FY on other sheet)
{=MEDIAN(IF(CAR_HP=B1,IF(COLOR_="Yes",IF(DENTED="No",IF(OPTIONS="Standard",IF(FY=A1,VALUE))))))}

{=MEDIAN(IF(CAR_HP=B1,IF(COLOR_="Yes",IF(DENTED="No",IF(OPTIONS="Standard",IF(FY="2013",VALUE))))))}
tried testing 2013 directly in formula, no luck

Thanks for any tips!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I should add, when I do an AVERAGEIFS, I can get the formula to work fine...which makes me thinking I'm missing something even more basic! :-O
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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