merging 3x average(if arrays to give average of all 3

neowok

Board Regular
Joined
Mar 24, 2005
Messages
68
I have the following array formula

Code:
=AVERAGE(IF(('Phase 2B'!$BN$3:$BN$1370>0)*('Phase 2B'!$AA$3:$AA$1370>TODAY()-365),'Phase 2B'!$BN$3:$BN$1370)+IF(('Phase 2A'!$BY$3:$BY$1500>0)*('Phase 2A'!$Z$3:$Z$1500>TODAY()-365),'Phase 2A'!$BY$3:$BY$1500)+IF(('RSZ Phase 1'!$CB$3:$CB$1500>0)*('RSZ Phase 1'!$Z$3:$Z$1500>TODAY()-365),'RSZ Phase 1'!$CB$3:$CB$1500))*0.71

Which works fine for calculating the average on a phase 2b sheet. But I now need to calculate the average over phase 2b and phase 1. I have the same array formulas to do each sheet on its own and they work fine, but have not been able to merge them into a single formula to get the average over all 3 sheets. I came up with this (as array) but it just returns N/A

Code:
=AVERAGE(IF(('Phase 2B'!$BN$3:$BN$1370>0)*('Phase 2B'!$AA$3:$AA$1370>TODAY()-365),'Phase 2B'!$BN$3:$BN$1370)+IF(('Phase 2A'!$BY$3:$BY$1500>0)*('Phase 2A'!$Z$3:$Z$1500>TODAY()-365),'Phase 2A'!$BY$3:$BY$1500)+IF(('Phase 1'!$CB$3:$CB$1500>0)*('Phase 1'!$Z$3:$Z$1500>TODAY()-365),'Phase 1'!$CB$3:$CB$1500))*0.71
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
You can't add cell ranges or arrays with different sizes, that will return an error.

Try this:

=AVERAGE(IF(('Phase 2B'!$BN$3:$BN$1370>0)*('Phase 2B'!$AA$3:$AA$1370>TODAY()-365),'Phase 2B'!$BN$3:$BN$1370),IF(('Phase 2A'!$BY$3:$BY$1500>0)*('Phase 2A'!$Z$3:$Z$1500>TODAY()-365),'Phase 2A'!$BY$3:$BY$1500),IF(('Phase 1'!$CB$3:$CB$1500>0)*('Phase 1'!$Z$3:$Z$1500>TODAY()-365),'Phase 1'!$CB$3:$CB$1500))*0.71
 
Last edited:
Upvote 0
Ahh I forgot they were different ranges (could make them the same size anyway, a lot of the bottom rows are blank to capture any new data they enter).

Yours works anyway, thanks.
 
Upvote 0

Forum statistics

Threads
1,215,556
Messages
6,125,495
Members
449,235
Latest member
Terra0013

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