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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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,215,391
Messages
6,124,678
Members
449,179
Latest member
fcarfagna

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