Sumifs for week of month

FlashDota

New Member
Joined
Jun 11, 2023
Messages
33
Office Version
  1. 2021
Platform
  1. Windows
I want to sumifs based on weeks of the month, the results should be for the month that is on top of "First week", displayed for "First week, Second week, Third week and Fourth week". Note: Column A is in text form, while Date is mm/dd/yyyy



NumberDateAmountJanuary 2024
January 2024
1/1/2024​
154​
First week
January 2024
1/2/2024​
104​
Second week
January 2024
1/3/2024​
133​
Third week
January 2024
1/4/2024​
127​
Fourth week
January 2024
1/5/2024​
102​
January 2024
1/6/2024​
103​
January 2024
1/7/2024​
134​
January 2024
1/8/2024​
176​
January 2024
1/9/2024​
101​
January 2024
1/10/2024​
158​
January 2024
1/11/2024​
141​
January 2024
1/12/2024​
134​
January 2024
1/13/2024​
180​
January 2024
1/14/2024​
148​
January 2024
1/15/2024​
174​
January 2024
1/16/2024​
181​
January 2024
1/17/2024​
103​
January 2024
1/18/2024​
102​
January 2024
1/19/2024​
170​
January 2024
1/20/2024​
170​
January 2024
1/21/2024​
138​
January 2024
1/22/2024​
145​
January 2024
1/23/2024​
112​
January 2024
1/24/2024​
179​
January 2024
1/25/2024​
151​
January 2024
1/26/2024​
167​
January 2024
1/27/2024​
151​
January 2024
1/28/2024​
167​
January 2024
1/29/2024​
121​
January 2024
1/30/2024​
156​
January 2024
1/31/2024​
110​
February 2024
2/1/2024​
166​
February 2024
2/2/2024​
138​
February 2024
2/3/2024​
132​
February 2024
2/4/2024​
171​
February 2024
2/5/2024​
147​
February 2024
2/6/2024​
106​
February 2024
2/7/2024​
186​
February 2024
2/8/2024​
161​
February 2024
2/9/2024​
147​
February 2024
2/10/2024​
141​
February 2024
2/11/2024​
177​
February 2024
2/12/2024​
148​
February 2024
2/13/2024​
138​
February 2024
2/14/2024​
122​
February 2024
2/15/2024​
165​
February 2024
2/16/2024​
125​
February 2024
2/17/2024​
165​
February 2024
2/18/2024​
149​
February 2024
2/19/2024​
117​
February 2024
2/20/2024​
129​
February 2024
2/21/2024​
158​
February 2024
2/22/2024​
190​
February 2024
2/23/2024​
167​
February 2024
2/24/2024​
126​
February 2024
2/25/2024​
165​
February 2024
2/26/2024​
129​
February 2024
2/27/2024​
126​
February 2024
2/28/2024​
191​
February 2024
2/29/2024​
108​
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
How do you determine what a week in the month is? is week 1 always the first 7 days? If so what about the last 1,2,or 3 days?
or do you have the week starting on a specific day?
 
Upvote 0
How do you determine what a week in the month is? is week 1 always the first 7 days? If so what about the last 1,2,or 3 days?
or do you have the week starting on a specific day?
For this example I would take days 1-7 week 1, 8-14 week 2 and so on. Looks like I have to add a Fifth week as well
 
Upvote 0
Well, this gets your January Data. I'm unsure how you want February displayed. The worksheet would need to be updated for that.

Book1
ABCDEFG
1NumberDateAmountJanuary 2024
2January 20242024-01-01154First week857
3January 20242024-01-02104Second week1038
4January 20242024-01-03133Third week1038
5January 20242024-01-04127Fourth week1072
6January 20242024-01-05102Fifth Week387
7January 20242024-01-06103
8January 20242024-01-07134
9January 20242024-01-08176
10January 20242024-01-09101
11January 20242024-01-10158
12January 20242024-01-11141
13January 20242024-01-12134
14January 20242024-01-13180
15January 20242024-01-14148
16January 20242024-01-15174
17January 20242024-01-16181
18January 20242024-01-17103
19January 20242024-01-18102
20January 20242024-01-19170
21January 20242024-01-20170
22January 20242024-01-21138
23January 20242024-01-22145
24January 20242024-01-23112
25January 20242024-01-24179
26January 20242024-01-25151
27January 20242024-01-26167
28January 20242024-01-27151
29January 20242024-01-28167
30January 20242024-01-29121
31January 20242024-01-30156
32January 20242024-01-31110
33February 20242024-02-01166
34February 20242024-02-02138
35February 20242024-02-03132
36February 20242024-02-04171
37February 20242024-02-05147
38February 20242024-02-06106
39February 20242024-02-07186
40February 20242024-02-08161
41February 20242024-02-09147
42February 20242024-02-10141
43February 20242024-02-11177
44February 20242024-02-12148
45February 20242024-02-13138
46February 20242024-02-14122
47February 20242024-02-15165
48February 20242024-02-16125
49February 20242024-02-17165
50February 20242024-02-18149
51February 20242024-02-19117
52February 20242024-02-20129
53February 20242024-02-21158
54February 20242024-02-22190
55February 20242024-02-23167
56February 20242024-02-24126
57February 20242024-02-25165
58February 20242024-02-26129
59February 20242024-02-27126
60February 20242024-02-28191
61February 20242024-02-29108
Sheet1
Cell Formulas
RangeFormula
G2:G6G2=SUMPRODUCT(($C$2:$C$61)*((INT((DAY($B$2:$B$61)-1)/7)+1)=(MOD((ROW()-2),7)+1))*(MONTH($B$2:$B$61)=MONTH(0+$E$1)))
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,155
Members
452,615
Latest member
bogeys2birdies

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