Total by week (and month) not adding up? Please help!

Watcher05

New Member
Joined
Oct 27, 2017
Messages
11
Hi all

I've been trying to use the formula for adding up weekly totals and using Mr Excels formula/example on youtube: https://www.youtube.com/watch?v=ZbEmZErWdvY

=SUMIFS($B$2:$B$14,$A$2:$A$14,">="&D2,A2:A14,"<"&D3)



I cannot for some reason copy the actual formula down any more then two cells. I know I'm doing something wrong which is simple!

In my example spreadsheet is very basic i plan to use this against several hundred/thousand transactions to try and workout weekly totals for tonnages for a local government weighbridge where everyone brings their waste to dump.

Also there will be multiple dates that will be the same. Will this formula work on duplicate dates as well?:(

I appreciate your feedback and help!

https://drive.google.com/open?id=0BwEPI8y2KRcZaXVjTEVibTQ2YWM

thanks - Daniel


datetonnesend of weektotal tonnes
29/09/20157729/09/20152413
30/09/20152006/10/20151782
1/10/20152213/10/20150
2/10/201556320/10/20150
3/10/201555427/10/20150
4/10/20155563/11/20150
5/10/201544110/11/20150
6/10/201511217/11/20150
7/10/20154450
8/10/20154470
9/10/20157780
10/10/2015950
2/11/2021221

<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
There wasnt too much wrong with what you had save for the absolution of the 2nd date range A2:A14. That said id use:

=SUMIFS(B:B,A:A,">"&D2-7,A:A,"<="&D2)

because SUMIFS can cope with full column references and then will work if you add more data. I wouldnt expect everything to add up bacuse one of your dates in column A is in the yesr 2021 which is not in your results column. Finally it will allow for multiple dates the same.
 
Upvote 0
There wasnt too much wrong with what you had save for the absolution of the 2nd date range A2:A14. That said id use:

=SUMIFS(B:B,A:A,">"&D2-7,A:A,"<="&D2)

because SUMIFS can cope with full column references and then will work if you add more data. I wouldnt expect everything to add up bacuse one of your dates in column A is in the yesr 2021 which is not in your results column. Finally it will allow for multiple dates the same.


Thanks for for your help but to confirm, in your formula/example are the cells both "D2", or should one be be D3?

appreacite your feedback!
 
Upvote 0
A
B
C
D
E
1
datetonnesend of weektotal tonnes
2
9/29/2015​
77​
9/29/2015​
77​
3
9/30/2015​
200​
10/6/2015​
2448​
4
10/1/2015​
22​
10/13/2015​
4013​
5
10/2/2015​
563​
10/20/2015​
3991​
6
10/3/2015​
554​
10/27/2015​
3428​
7
10/4/2015​
556​
11/3/2015​
2874​
8
10/5/2015​
441​
11/10/2015​
2318​
9
10/6/2015​
112​
11/17/2015​
1877​
10
10/7/2015​
445​
0​
11
10/8/2015​
447​
0​
12
10/9/2015​
778​
0​
13
10/10/2015​
95​
0​
14
11/2/2021​
221​

<tbody>
</tbody>

e2=
SUMIFS($B$2:$B$14,$A$2:$A$14,">="&A2,$A$2:$A$14,"<="&D2) copy down

 
Upvote 0
Thanks for for your help but to confirm, in your formula/example are the cells both "D2", or should one be be D3?

appreacite your feedback!

As it says end of week ive used greater than D2-7 for the start of the week and less than or equal to D2 for the end of the week. That gives you a week window.
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,050
Members
449,206
Latest member
Healthydogs

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