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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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