Sumif Sum Range to be a reference

stroffso

Board Regular
Joined
Jul 12, 2016
Messages
160
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have an indirect formula which works fine however I now need to make the SUM range dynamic as its basically summing a different date each week.

Name
06/10/16 (this date changes each week)
David8 (this is where the formula would be)

<tbody>
</tbody>

This is the formula I currently have
=SUMIFS(INDIRECT($A12&"!H:H"),INDIRECT($A12&"!$A:$A"),$B12,INDIRECT($A12&"!$B:$B"),$C12,INDIRECT($A12&"!$F:$F"),$G12)

Column H in this case is where all of the october 6th is but next week I want the SUM range to be on column I which is October 13th. Obviously I want this to happen without changing it every week. I have made a list table which has all dates in there so I presume I need to link it to this somehow? My question is how do I do that?

thanks in advance
 

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.
Dont suppose anyone could provide help with this one?
 
Upvote 0
... Column H in this case is where all of the october 6th is but next week I want the SUM range to be on column I which is October 13th. Obviously I want this to happen without changing it every week. I have made a list table which has all dates in there so I presume I need to link it to this somehow?..
Here is a different approach. Assuming your weekly changing date is in cell B2, try:

=SUMIFS(OFFSET(INDIRECT($A12&"!H:H"),0,ROUND(($B$2-"6-Oct-2016")/7,0)),INDIRECT($A12&"!$A:$A"),$B12,INDIRECT($A12&"!$B:$B"),$C12,INDIRECT($A12&"!$F:$F"),$G12)
 
Upvote 0
Thanks for that. So does this mean I have to change the formula each week where it says "6-Oct..."?

Here is a different approach. Assuming your weekly changing date is in cell B2, try:

=SUMIFS(OFFSET(INDIRECT($A12&"!H:H"),0,ROUND(($B$2-"6-Oct-2016")/7,0)),INDIRECT($A12&"!$A:$A"),$B12,INDIRECT($A12&"!$B:$B"),$C12,INDIRECT($A12&"!$F:$F"),$G12)
 
Upvote 0

Forum statistics

Threads
1,215,507
Messages
6,125,212
Members
449,214
Latest member
mr_ordinaryboy

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