average array across multiple sheets

zakasnak

Active Member
Joined
Sep 21, 2005
Messages
308
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
I have this array formula that works perfectly.

Code:
=AVERAGE(IF(N(INDIRECT("'"&$W$4:$W$11&"'!E4"))>0,N(INDIRECT("'"&$W$4:$W$11&"'!E4"))))

My problem is that when I copy this formula thru the thousand or so rows (sorry, 969 rows to be exact), the *row* indicator '!E4 does not update. Is this because it's in quotes?

Is there a way either thru the formula or VBA that I can update this part of the formula for the correct row on every row? I have 969 rows & 8 columns (E, F, G, I, J, L, N & O) to update. Help?
 
Last edited:

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Yes, it is because it is within the quotes.
Try
=AVERAGE(IF(N(INDIRECT("'"&$W$4:$W$11&"'!"&E4))>0,N(INDIRECT("'"&$W$4:$W$11&"'!"&E4))))
 
Upvote 0
Another question. Can I add error checking to this array formula?
 
Upvote 0
I'm on Row 86 of find & replace.... Please help?
 
Upvote 0
..... Row 189 of find & replace.... Please help?

Can it not be done?
 
Upvote 0
Last bump....... still finding & replacing ... in EACH ROW.

VBA doesn't scare me if someone can help me get started.
 
Upvote 0
I have this array formula that works perfectly.

Code:
=AVERAGE(IF(N(INDIRECT("'"&$W$4:$W$11&"'!E4"))>0,N(INDIRECT("'"&$W$4:$W$11&"'!E4"))))
My problem is that when I copy this formula thru the thousand or so rows (sorry, 969 rows to be exact), the *row* indicator '!E4 does not update. Is this because it's in quotes?

Is there a way either thru the formula or VBA that I can update this part of the formula for the correct row on every row? I have 969 rows & 8 columns (E, F, G, I, J, L, N & O) to update. Help?

Control+shift+enter, not just enter, and copy across...
Code:
=AVERAGE(IF(N(INDIRECT("'"&$W$4:$W$11&"'!"&CELL("address",E4)))>0,
     N(INDIRECT("'"&$W$4:$W$11&"'!"&CELL("address",E4)))))
 
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,705
Members
453,748
Latest member
akhtarf3

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