# Sum Proc across multiple sheets

#### Gvlewis81

##### Board Regular
Hi,

Ive seen a few threads but cant quite get what i'm after.

I have this formula on a summary sheet;

Code:
``=SUMPRODUCT((RIGHT('Week 10'!\$D\$3:\$D\$300,8)=Sheet1!H\$1)*('Week 10'!\$B\$3:\$B\$300=Sheet1!\$A2)*'Week 10'!\$G\$3:\$G\$300)``

Problem is i want it to go across sheets 'Week 1' to 'Week 53', next issue is that not all the weeks sheets are there and thay are added in on a weekly basis.

Is there a formula for this or an easy code that could do the job ?

Thanks,

Garth

### Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try the following formula, which needs to be confirmed with CONTROL+SHIFT+ENTER...

=SUM(IFERROR(SUMIFS(INDIRECT("'"&"Week "&ROW(INDIRECT("1:52"))&"'!G3:G300"),INDIRECT("'"&"Week "&ROW(INDIRECT("1:52"))&"'!D3:D300"),"*"&Sheet1!H\$1,INDIRECT("'"&"Week "&ROW(INDIRECT("1:52"))&"'!B3:B300"),Sheet1!\$A2),0))

Hope this helps!

Will this work if not all the sheets are in the workbook ?

Yes...

Replies
3
Views
366
Replies
7
Views
331
Replies
1
Views
291
Replies
1
Views
616
Replies
3
Views
896

1,196,389
Messages
6,014,999
Members
441,864
Latest member
sweezy40

### 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.

### Which adblocker are you using?

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

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