Please help revert 07 formula to 02

wraith972

Board Regular
Joined
Mar 6, 2007
Messages
104
I have been wrestling with this for couple of hours now and was hoping to get pointed in the correct direction.

I have this formula in Excel 07 and of course works beautifully.

Code:
=IFERROR(AVERAGEIF(March!$D$3:$D$10000,"Yes",March!$P$3:$P$10000),0)

I've tried this but it's not factoring in the Yes....

Code:
=IF(ISERROR(AVERAGE(IF(March!$D$3:$D$10000="Yes",AVERAGE(March!$P$3:$P$10000)))),0,AVERAGE(IF(March!$D$3:$D$10000="Yes",AVERAGE(March!$P$3:$P$10000))))

Obviously, I can't use the 07 formula because no one else in the department has it. Any help is always greatly appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I assume you are confirming this with control+shift+enter and not just enter? I'm not positive if you need the extra average either maybe try:

Code:
=IF(ISERROR(AVERAGE(IF(March!$D$3:$D$10000="Yes",March!$P$3:$P$10000))),0,AVERAGE(IF(March!$D$3:$D$10000="Yes",March!$P$3:$P$10000)))
Hope that helps.
 
Upvote 0
schielrn, that did it! I was confirming the formula but was just over thinking it like I sometimes do. I'm getting so use to the new formulas; I really am forgetting some of the older ways.

Thanks!!
 
Upvote 0
=IFERROR(AVERAGEIF(March!$D$3:$D$10000,"Yes",March!$P$3:$P$10000),0)

Cheaper to run...

Control+shift+enter, not just enter:
Code:
=LOOKUP(9.99999999999999E+307,CHOOSE({1,2},0,
    AVERAGE(IF(March!$D$3:$D$10000,"Yes",March!$P$3:$P$10000))))
 
Upvote 0
Wow, Aladin... After the many green beers I consume this evening, that may make more sense. :LOL:

Obviously the first part of the forumla is doing the same as the iserror but will you please explain how?

Thanks as always!!
 
Upvote 0
Wow, Aladin... After the many green beers I consume this evening, that may make more sense. :LOL:

Obviously the first part of the forumla is doing the same as the iserror but will you please explain how?

Thanks as always!!

CHOOSE calculates 2 results: 0 and avg which is a number or #DIV/0! and puts them in an array, like in {0,2.4} or {0,#DIV/0!}. LOOKUP with that big number as the lookup value returns the last numeric value from the array CHOOSE constructs.

How LOOKUP does its job is explained graphically in the following link:

http://www.mrexcel.com/forum/showthread.php?t=310278
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

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