Week numbers but in the same month only add up

VbaHell

Well-known Member
Joined
Jan 30, 2011
Messages
1,220
Hello All

I am trying to add up multiple rows of date to show the outstanding sales for each week

At the moment I am using the formula WEEKNUM using the daily date

The issue I have is that the WEEKNUM sometimes rolls the date into the next month which I can't have

I have to be accurate to the end of each month

Any idea's please on how to complete this, my date is in column "S" and the WEEKNUM would be in column "T"
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Where are the values you are adding up, and where are you putting these SUMs?
How are you currently getting the SUM? With a SUMIF or SUMIFS formula?
If so, you should able to do what you want with a SUMPRODUCT formula, something like this (if the column you are summing is column R):
Code:
=SUMPRODUCT(--(T:T=T1),--(MONTH(S:S)=[COLOR=#ff0000]1[/COLOR]),R:R)
(assuming the formula is starting in row 1)
The number in red is the month number you want.
If you are placing this on every row, then maybe something like:
Code:
=SUMPRODUCT(--(T:T=T1),--(MONTH(S:S)=[COLOR=#ff0000]MONTH(S1)[/COLOR]),R:R)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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