SUMPRODUCT across worksheets

NJActuary

New Member
Joined
Aug 4, 2003
Messages
32
I have a workbook with many worksheets (let's call them SheetA, SheetB, ..., SheetZ), each formatted identically. I need to do a sumproduct of cell E1 with E2 across all the worksheets. I tried something of the form
=SUMPRODUCT('SheetA:SheetZ'!E1,'SheetA:SheetZ'!E2)
but that gave me a #REF! error.

Any ideas on how to correct my syntax to get this right?

Thanks.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Let A2:A27 contain the sheet names, then try...

=SUMPRODUCT(N(INDIRECT("'"&$A$2:$A$27&"'!E1")),N(INDIRECT("'"&$A$2:$A$27&"'!E2")))

If the references for E1 and E2 need to be relative, try the followoing formula instead...

=SUMPRODUCT(N(INDIRECT("'"&$A$2:$A$27&"'!"&CELL("address",E1))),N(INDIRECT("'"&$A$2:$A$27&"'!"&CELL("address",E2))))

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,845
Members
449,051
Latest member
excelquestion515

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