Sum Proc across multiple sheets

Gvlewis81

Board Regular
Joined
Feb 5, 2013
Messages
202
Office Version
  1. 365
Platform
  1. Windows
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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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!
 
Upvote 0
Will this work if not all the sheets are in the workbook ?
 
Upvote 0

Forum statistics

Threads
1,213,520
Messages
6,114,099
Members
448,548
Latest member
harryls

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