Formula Help with Count of Week Numbers for every Each Month

Lukma

Active Member
Joined
Feb 12, 2020
Messages
259
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi Friend

Good day all, I need help with a formula on the week number in my data Column C and I need it to count for each month and for the following month to start all over counting from 1-5
I am having doubts about the formula I have used.
Let's say January 2023 I want it to count the total week number for January including weekends and for the following to start from 1 and count again for February etc.

Appreciate Your help with a solution.

2023-Master Data Onshore Jetty Operation Tracking.xlsx
CDEFGHIJKLMN
4MonthMus NumSupply VesselVessel Arrived FWB Date&TimeChanel Status Manifest Date & TimeMnfst On TimeMnfst Delay HoursControl Tower Permission Date & TimeTower Perm On TimeTower Perms Delay HoursVessel Arrive ADNOC Port Date & Time
551153-MADNOC-23027/04/23 14:2527/04/23 14:3000:05Met27/04/23 19:305:00Not Met27/04/23 23:35
611154CECILIE-K01/05/23 10:0001/05/23 12:4002:40Met01/05/23 12:440:04Met01/05/23 18:06
711155Z-OCEAN01/05/23 14:3001/05/23 13:40-00:50Met01/05/23 13:510:11Met01/05/23 18:10
811156SWISSCO RUBY02/05/23 06:0001/05/23 21:56-08:04Met01/05/23 22:400:44Met02/05/23 09:35
911157LCT-SHEWELEH01/05/23 16:0001/05/23 17:3701:37Met01/05/23 18:270:50Met01/05/23 23:05
1011158A-RANGER01/05/23 20:0001/05/23 16:57-03:03Met01/05/23 17:000:03Met02/05/23 00:25
1111159ADNOC-S0201/05/23 21:1001/05/23 20:14-00:56Met02/05/23 03:006:46Not Met02/05/23 03:00
1211160ADNOC-81001/05/23 01:5001/05/23 19:5518:05Not Met01/05/23 20:080:13Met01/05/23 22:50
1311161ADNOC-51101/05/23 22:1001/05/23 21:21-00:49Met01/05/23 21:380:17Met02/05/23 02:35
1411162SK MAINSTAY02/05/23 06:0502/05/23 01:59-04:06Met02/05/23 05:463:47Not Met02/05/23 09:55
1511163MUTAWA-40201/05/23 10:0002/05/23 01:3115:31Not Met02/05/23 01:500:19Met02/05/23 06:30
1611164ADNOC-51202/05/23 08:1002/05/23 05:19-02:51Met02/05/23 05:500:31Met02/05/23 11:55
1711165ADNOC-81202/05/23 09:4002/05/23 09:13-00:27Met02/05/23 09:220:09Met02/05/23 16:50
1811166Z-POWER02/05/23 04:2002/05/23 11:1406:54Not Met02/05/23 11:490:35Met02/05/23 14:35
1911167ADNOC-81102/05/23 09:5502/05/23 11:0101:06Met02/05/23 11:500:49Met02/05/23 15:30
2011168ADNOC-22202/05/23 08:2002/05/23 11:2003:00Not Met02/05/23 11:490:29Met02/05/23 16:20
2111169SMIT LUMUT02/05/23 18:0002/05/23 13:26-04:34Met02/05/23 20:106:44Not Met02/05/23 23:59
2211170A-RADIANT-702/05/23 09:0002/05/23 13:0804:08Not Met02/05/23 15:222:14Met02/05/23 20:10
Onshore Tracking Report
Cell Formulas
RangeFormula
I5:I22I5=IFERROR(IF((H5-F5)>0,(H5-F5),TEXT(ABS(H5-F5),"-hh:mm")),"")
J5:J22J5=IF(F5="","",IF(OR(LEFT(I5,1)="-",I5<3/24),"Met","Not Met"))
L5:L22L5=IFERROR(IF((K5-H5)>0,(K5-H5),TEXT(ABS(K5-H5),"-h:mm")),"")
M5:M22M5=IF(H5="","",IF(OR(LEFT(L5,1)="-",L5<3/24),"Met","Not Met"))
C5:C22C5=IF(WEEKDAY(N5,2)>7,"",WEEKNUM(N5)-WEEKNUM(DATE(YEAR(N5),MONTH(N5),1))+1)
 
Try change to:

=MIN(5,WEEKNUM(B340)-WEEKNUM(EOMONTH(B340,-1)+1)+1)
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
What about this?

23 08 20.xlsm
AB
2Week NumberDate & Time
3101/01/23 12:00
4101/01/23 14:35
5101/01/23 18:10
6101/01/23 17:45
7101/01/23 18:05
8101/01/23 18:15
9102/01/23 01:40
10102/01/23 20:00
11102/01/23 19:15
12102/01/23 22:30
13103/01/23 14:50
14103/01/23 21:24
15104/01/23 16:45
16103/01/23 13:20
17104/01/23 00:50
18104/01/23 00:40
19104/01/23 00:20
20103/01/23 23:20
21104/01/23 03:30
22103/01/23 23:40
23104/01/23 12:30
24104/01/23 08:10
25105/01/23 04:35
26104/01/23 17:30
27104/01/23 19:00
28104/01/23 20:00
29105/01/23 11:00
30105/01/23 04:35
31105/01/23 14:05
32105/01/23 14:40
33105/01/23 16:48
34105/01/23 23:00
35106/01/23 00:20
36105/01/23 22:10
37106/01/23 00:50
38106/01/23 04:40
39106/01/23 23:30
40107/01/23 03:30
41107/01/23 00:10
42107/01/23 02:00
43208/01/23 06:35
44208/01/23 06:30
45208/01/23 07:10
46208/01/23 10:45
47208/01/23 16:45
48208/01/23 10:00
49208/01/23 19:53
50208/01/23 21:27
51208/01/23 17:45
52208/01/23 17:12
53208/01/23 21:10
54208/01/23 17:20
55209/01/23 08:30
56209/01/23 03:00
57209/01/23 06:54
58209/01/23 03:15
59209/01/23 04:00
60209/01/23 05:25
61209/01/23 09:50
62208/01/23 23:50
63209/01/23 12:15
64210/01/23 09:05
65209/01/23 17:20
66209/01/23 14:00
67209/01/23 21:00
68209/01/23 23:50
69210/01/23 14:45
70210/01/23 14:30
71210/01/23 15:15
72210/01/23 23:05
73210/01/23 19:55
74210/01/23 20:00
75211/01/23 02:05
76210/01/23 22:10
77210/01/23 21:20
78210/01/23 22:15
79210/01/23 23:59
80211/01/23 00:45
81105/01/23 13:10
82210/01/23 21:45
83211/01/23 04:25
84211/01/23 13:35
85212/01/23 04:10
86211/01/23 20:50
87211/01/23 20:35
88212/01/23 09:55
89212/01/23 13:40
90213/01/23 01:00
91212/01/23 12:00
92212/01/23 13:10
93212/01/23 12:30
94212/01/23 16:45
95212/01/23 16:25
96212/01/23 16:30
97212/01/23 16:55
98212/01/23 21:20
99211/01/23 21:05
100212/01/23 22:05
101212/01/23 22:30
102213/01/23 10:12
103213/01/23 05:30
104213/01/23 04:40
105213/01/23 09:40
106213/01/23 14:35
107213/01/23 16:30
108213/01/23 19:12
109213/01/23 18:12
110213/01/23 19:40
111214/01/23 03:15
112214/01/23 06:30
113214/01/23 09:00
114214/01/23 00:40
115214/01/23 15:05
116214/01/23 14:15
117214/01/23 13:50
118214/01/23 21:25
119315/01/23 00:35
120214/01/23 23:59
121315/01/23 03:25
122214/01/23 21:20
123214/01/23 07:30
124315/01/23 02:42
125315/01/23 01:40
126315/01/23 02:54
127315/01/23 02:40
128315/01/23 11:50
129315/01/23 10:00
130315/01/23 15:45
131315/01/23 12:36
132315/01/23 23:00
133316/01/23 21:00
134316/01/23 21:05
135316/01/23 19:50
136316/01/23 21:30
137317/01/23 00:45
138316/01/23 07:25
139317/01/23 11:35
140318/01/23 02:20
141317/01/23 15:36
142317/01/23 23:35
143317/01/23 21:25
144318/01/23 03:26
145316/01/23 22:25
146318/01/23 04:45
147318/01/23 05:10
148318/01/23 11:50
149318/01/23 00:07
150318/01/23 05:00
151318/01/23 15:45
152318/01/23 15:35
153318/01/23 13:50
154318/01/23 17:30
155318/01/23 17:30
156318/01/23 20:20
157319/01/23 01:30
158319/01/23 03:10
159319/01/23 01:30
160319/01/23 02:30
161319/01/23 07:36
162319/01/23 19:00
163320/01/23 00:15
164320/01/23 04:55
165320/01/23 06:10
166319/01/23 22:40
167320/01/23 00:50
168320/01/23 08:00
169320/01/23 14:25
170320/01/23 02:06
171321/01/23 02:00
172321/01/23 01:25
173321/01/23 00:54
174321/01/23 01:05
175422/01/23 11:25
176321/01/23 02:55
177423/01/23 05:10
178423/01/23 05:00
179423/01/23 09:00
180423/01/23 13:10
181424/01/23 09:40
182424/01/23 00:55
183424/01/23 03:18
184424/01/23 02:05
185423/01/23 23:00
186424/01/23 03:40
187423/01/23 23:25
188424/01/23 03:50
189424/01/23 09:30
190424/01/23 19:00
191424/01/23 20:45
192424/01/23 20:05
193424/01/23 23:10
194425/01/23 00:15
195425/01/23 01:45
196425/01/23 08:15
197425/01/23 08:35
198425/01/23 09:30
199425/01/23 12:30
200425/01/23 16:54
201425/01/23 21:40
202425/01/23 22:15
203426/01/23 00:00
204426/01/23 04:30
205426/01/23 12:54
206426/01/23 08:30
207426/01/23 09:25
208426/01/23 15:15
209426/01/23 17:55
210426/01/23 15:45
211426/01/23 20:35
212427/01/23 03:15
213427/01/23 14:20
214427/01/23 00:01
215427/01/23 16:05
216427/01/23 13:05
217427/01/23 07:15
218427/01/23 07:00
219427/01/23 06:15
220427/01/23 12:40
221427/01/23 15:00
222427/01/23 23:35
223427/01/23 21:41
224428/01/23 06:35
225428/01/23 02:20
226427/01/23 21:48
227426/01/23 12:54
228428/01/23 07:35
229428/01/23 00:50
230428/01/23 10:00
231529/01/23 07:25
232428/01/23 09:50
233428/01/23 09:20
234428/01/23 14:00
235428/01/23 17:40
236529/01/23 00:55
237428/01/23 17:20
238428/01/23 19:40
239529/01/23 05:00
240529/01/23 11:10
241529/01/23 05:15
242529/01/23 07:30
243529/01/23 09:54
244529/01/23 06:45
245529/01/23 20:15
246530/01/23 07:10
247530/01/23 00:40
248530/01/23 05:35
249530/01/23 16:15
250530/01/23 23:30
251530/01/23 20:40
252530/01/23 18:10
253531/01/23 15:50
254531/01/23 06:30
255531/01/23 10:30
256531/01/23 23:00
257531/01/23 22:25
258531/01/23 22:20
259101/02/23 02:35
260101/02/23 02:15
261101/02/23 05:00
262101/02/23 12:45
263101/02/23 17:15
264101/02/23 17:50
265101/02/23 23:15
266102/02/23 12:10
267102/02/23 06:20
268101/02/23 22:45
269102/02/23 11:06
270102/02/23 09:00
271102/02/23 14:30
272102/02/23 15:10
273102/02/23 15:00
274102/02/23 18:35
275102/02/23 23:00
276102/02/23 08:35
277103/02/23 06:55
278103/02/23 01:45
279103/02/23 08:20
280103/02/23 01:00
281102/02/23 23:36
282103/02/23 09:00
283104/02/23 03:35
284104/02/23 04:00
285104/02/23 03:30
286104/02/23 07:15
287104/02/23 01:15
288104/02/23 05:15
289104/02/23 06:15
290104/02/23 14:55
291104/02/23 19:18
292104/02/23 22:50
293105/02/23 00:45
294105/02/23 03:00
295105/02/23 17:36
296105/02/23 15:35
297105/02/23 05:20
298105/02/23 05:35
299105/02/23 03:45
300105/02/23 16:15
301105/02/23 17:20
302106/02/23 02:00
303105/02/23 21:05
304105/02/23 22:45
305106/02/23 06:40
306106/02/23 04:25
307105/02/23 00:45
308106/02/23 06:35
309106/02/23 00:15
310106/02/23 03:50
311105/02/23 23:06
312106/02/23 02:10
313107/02/23 07:45
314107/02/23 12:10
315107/02/23 13:20
316107/02/23 18:00
317107/02/23 18:35
318107/02/23 13:20
319208/02/23 00:40
320208/02/23 18:25
321209/02/23 19:54
322210/02/23 01:30
323210/02/23 00:30
324209/02/23 08:48
325210/02/23 04:50
326210/02/23 04:00
327210/02/23 09:20
328210/02/23 15:25
329210/02/23 18:50
330210/02/23 20:22
331211/02/23 03:10
332211/02/23 11:10
333211/02/23 02:20
334211/02/23 07:30
335211/02/23 09:10
336211/02/23 16:30
337211/02/23 16:45
338
339529/07/23 08:30
340529/07/23 13:30
341529/07/23 13:25
342529/07/23 15:05
343529/07/23 15:45
344530/07/23 02:30
345529/07/23 17:00
346530/07/23 04:10
347529/07/23 18:15
348530/07/23 02:10
349530/07/23 04:30
350530/07/23 05:50
351530/07/23 11:35
352530/07/23 12:15
353530/07/23 02:45
354529/07/23 22:35
355529/07/23 22:45
356530/07/23 13:30
357530/07/23 09:06
358530/07/23 21:30
359530/07/23 22:55
360530/07/23 13:30
361530/07/23 22:35
362531/07/23 00:45
363531/07/23 10:25
364531/07/23 07:40
365531/07/23 12:35
366531/07/23 01:40
367531/07/23 10:53
368531/07/23 07:40
369531/07/23 07:05
370531/07/23 16:35
371531/07/23 17:12
372531/07/23 21:40
Wk (2)
Cell Formulas
RangeFormula
A3:A337,A339:A372A3=MATCH(DAY(B3),{1,8,15,22,29})
 
Upvote 0
Hi

Thank you so much, I tried it but when it comes to July month am having some problems, Close to the month's end is giving Wk-6 rather than 5weeks number is they am i missing out

That the result after dragging it down

Appreciate your support

2023-Master Data Onshore Jetty Operation Tracking.xlsx
AB
340529/07/23 08:30
341529/07/23 13:30
342529/07/23 13:25
343529/07/23 15:05
344529/07/23 15:45
345630/07/23 02:30
346529/07/23 17:00
347630/07/23 04:10
348529/07/23 18:15
349630/07/23 02:10
350630/07/23 04:30
351630/07/23 05:50
352630/07/23 11:35
353630/07/23 12:15
354630/07/23 02:45
355529/07/23 22:35
356529/07/23 22:45
357630/07/23 13:30
358630/07/23 09:06
359630/07/23 21:30
360630/07/23 22:55
361630/07/23 13:30
362630/07/23 22:35
363631/07/23 00:45
364631/07/23 10:25
365631/07/23 07:40
366631/07/23 12:35
367631/07/23 01:40
368631/07/23 10:53
369631/07/23 07:40
370631/07/23 07:05
371631/07/23 16:35
372631/07/23 17:12
373631/07/23 21:40
Sheet4
Cell Formulas
RangeFormula
A340:A373A340=MATCH(WEEKNUM(B340),ROW(INDIRECT(WEEKNUM(EOMONTH(B340,-1)+1)&":"&WEEKNUM(EOMONTH(B340,0)))))
That's because there is a sixth week in July. 30 and 31 on the sixth row are considered week 6. Do you want to just cap it at 5?

1692623472211.png
 
Upvote 0
What about this?

23 08 20.xlsm
AB
2Week NumberDate & Time
3101/01/23 12:00
4101/01/23 14:35
5101/01/23 18:10
6101/01/23 17:45
7101/01/23 18:05
8101/01/23 18:15
9102/01/23 01:40
10102/01/23 20:00
11102/01/23 19:15
12102/01/23 22:30
13103/01/23 14:50
14103/01/23 21:24
15104/01/23 16:45
16103/01/23 13:20
17104/01/23 00:50
18104/01/23 00:40
19104/01/23 00:20
20103/01/23 23:20
21104/01/23 03:30
22103/01/23 23:40
23104/01/23 12:30
24104/01/23 08:10
25105/01/23 04:35
26104/01/23 17:30
27104/01/23 19:00
28104/01/23 20:00
29105/01/23 11:00
30105/01/23 04:35
31105/01/23 14:05
32105/01/23 14:40
33105/01/23 16:48
34105/01/23 23:00
35106/01/23 00:20
36105/01/23 22:10
37106/01/23 00:50
38106/01/23 04:40
39106/01/23 23:30
40107/01/23 03:30
41107/01/23 00:10
42107/01/23 02:00
43208/01/23 06:35
44208/01/23 06:30
45208/01/23 07:10
46208/01/23 10:45
47208/01/23 16:45
48208/01/23 10:00
49208/01/23 19:53
50208/01/23 21:27
51208/01/23 17:45
52208/01/23 17:12
53208/01/23 21:10
54208/01/23 17:20
55209/01/23 08:30
56209/01/23 03:00
57209/01/23 06:54
58209/01/23 03:15
59209/01/23 04:00
60209/01/23 05:25
61209/01/23 09:50
62208/01/23 23:50
63209/01/23 12:15
64210/01/23 09:05
65209/01/23 17:20
66209/01/23 14:00
67209/01/23 21:00
68209/01/23 23:50
69210/01/23 14:45
70210/01/23 14:30
71210/01/23 15:15
72210/01/23 23:05
73210/01/23 19:55
74210/01/23 20:00
75211/01/23 02:05
76210/01/23 22:10
77210/01/23 21:20
78210/01/23 22:15
79210/01/23 23:59
80211/01/23 00:45
81105/01/23 13:10
82210/01/23 21:45
83211/01/23 04:25
84211/01/23 13:35
85212/01/23 04:10
86211/01/23 20:50
87211/01/23 20:35
88212/01/23 09:55
89212/01/23 13:40
90213/01/23 01:00
91212/01/23 12:00
92212/01/23 13:10
93212/01/23 12:30
94212/01/23 16:45
95212/01/23 16:25
96212/01/23 16:30
97212/01/23 16:55
98212/01/23 21:20
99211/01/23 21:05
100212/01/23 22:05
101212/01/23 22:30
102213/01/23 10:12
103213/01/23 05:30
104213/01/23 04:40
105213/01/23 09:40
106213/01/23 14:35
107213/01/23 16:30
108213/01/23 19:12
109213/01/23 18:12
110213/01/23 19:40
111214/01/23 03:15
112214/01/23 06:30
113214/01/23 09:00
114214/01/23 00:40
115214/01/23 15:05
116214/01/23 14:15
117214/01/23 13:50
118214/01/23 21:25
119315/01/23 00:35
120214/01/23 23:59
121315/01/23 03:25
122214/01/23 21:20
123214/01/23 07:30
124315/01/23 02:42
125315/01/23 01:40
126315/01/23 02:54
127315/01/23 02:40
128315/01/23 11:50
129315/01/23 10:00
130315/01/23 15:45
131315/01/23 12:36
132315/01/23 23:00
133316/01/23 21:00
134316/01/23 21:05
135316/01/23 19:50
136316/01/23 21:30
137317/01/23 00:45
138316/01/23 07:25
139317/01/23 11:35
140318/01/23 02:20
141317/01/23 15:36
142317/01/23 23:35
143317/01/23 21:25
144318/01/23 03:26
145316/01/23 22:25
146318/01/23 04:45
147318/01/23 05:10
148318/01/23 11:50
149318/01/23 00:07
150318/01/23 05:00
151318/01/23 15:45
152318/01/23 15:35
153318/01/23 13:50
154318/01/23 17:30
155318/01/23 17:30
156318/01/23 20:20
157319/01/23 01:30
158319/01/23 03:10
159319/01/23 01:30
160319/01/23 02:30
161319/01/23 07:36
162319/01/23 19:00
163320/01/23 00:15
164320/01/23 04:55
165320/01/23 06:10
166319/01/23 22:40
167320/01/23 00:50
168320/01/23 08:00
169320/01/23 14:25
170320/01/23 02:06
171321/01/23 02:00
172321/01/23 01:25
173321/01/23 00:54
174321/01/23 01:05
175422/01/23 11:25
176321/01/23 02:55
177423/01/23 05:10
178423/01/23 05:00
179423/01/23 09:00
180423/01/23 13:10
181424/01/23 09:40
182424/01/23 00:55
183424/01/23 03:18
184424/01/23 02:05
185423/01/23 23:00
186424/01/23 03:40
187423/01/23 23:25
188424/01/23 03:50
189424/01/23 09:30
190424/01/23 19:00
191424/01/23 20:45
192424/01/23 20:05
193424/01/23 23:10
194425/01/23 00:15
195425/01/23 01:45
196425/01/23 08:15
197425/01/23 08:35
198425/01/23 09:30
199425/01/23 12:30
200425/01/23 16:54
201425/01/23 21:40
202425/01/23 22:15
203426/01/23 00:00
204426/01/23 04:30
205426/01/23 12:54
206426/01/23 08:30
207426/01/23 09:25
208426/01/23 15:15
209426/01/23 17:55
210426/01/23 15:45
211426/01/23 20:35
212427/01/23 03:15
213427/01/23 14:20
214427/01/23 00:01
215427/01/23 16:05
216427/01/23 13:05
217427/01/23 07:15
218427/01/23 07:00
219427/01/23 06:15
220427/01/23 12:40
221427/01/23 15:00
222427/01/23 23:35
223427/01/23 21:41
224428/01/23 06:35
225428/01/23 02:20
226427/01/23 21:48
227426/01/23 12:54
228428/01/23 07:35
229428/01/23 00:50
230428/01/23 10:00
231529/01/23 07:25
232428/01/23 09:50
233428/01/23 09:20
234428/01/23 14:00
235428/01/23 17:40
236529/01/23 00:55
237428/01/23 17:20
238428/01/23 19:40
239529/01/23 05:00
240529/01/23 11:10
241529/01/23 05:15
242529/01/23 07:30
243529/01/23 09:54
244529/01/23 06:45
245529/01/23 20:15
246530/01/23 07:10
247530/01/23 00:40
248530/01/23 05:35
249530/01/23 16:15
250530/01/23 23:30
251530/01/23 20:40
252530/01/23 18:10
253531/01/23 15:50
254531/01/23 06:30
255531/01/23 10:30
256531/01/23 23:00
257531/01/23 22:25
258531/01/23 22:20
259101/02/23 02:35
260101/02/23 02:15
261101/02/23 05:00
262101/02/23 12:45
263101/02/23 17:15
264101/02/23 17:50
265101/02/23 23:15
266102/02/23 12:10
267102/02/23 06:20
268101/02/23 22:45
269102/02/23 11:06
270102/02/23 09:00
271102/02/23 14:30
272102/02/23 15:10
273102/02/23 15:00
274102/02/23 18:35
275102/02/23 23:00
276102/02/23 08:35
277103/02/23 06:55
278103/02/23 01:45
279103/02/23 08:20
280103/02/23 01:00
281102/02/23 23:36
282103/02/23 09:00
283104/02/23 03:35
284104/02/23 04:00
285104/02/23 03:30
286104/02/23 07:15
287104/02/23 01:15
288104/02/23 05:15
289104/02/23 06:15
290104/02/23 14:55
291104/02/23 19:18
292104/02/23 22:50
293105/02/23 00:45
294105/02/23 03:00
295105/02/23 17:36
296105/02/23 15:35
297105/02/23 05:20
298105/02/23 05:35
299105/02/23 03:45
300105/02/23 16:15
301105/02/23 17:20
302106/02/23 02:00
303105/02/23 21:05
304105/02/23 22:45
305106/02/23 06:40
306106/02/23 04:25
307105/02/23 00:45
308106/02/23 06:35
309106/02/23 00:15
310106/02/23 03:50
311105/02/23 23:06
312106/02/23 02:10
313107/02/23 07:45
314107/02/23 12:10
315107/02/23 13:20
316107/02/23 18:00
317107/02/23 18:35
318107/02/23 13:20
319208/02/23 00:40
320208/02/23 18:25
321209/02/23 19:54
322210/02/23 01:30
323210/02/23 00:30
324209/02/23 08:48
325210/02/23 04:50
326210/02/23 04:00
327210/02/23 09:20
328210/02/23 15:25
329210/02/23 18:50
330210/02/23 20:22
331211/02/23 03:10
332211/02/23 11:10
333211/02/23 02:20
334211/02/23 07:30
335211/02/23 09:10
336211/02/23 16:30
337211/02/23 16:45
338
339529/07/23 08:30
340529/07/23 13:30
341529/07/23 13:25
342529/07/23 15:05
343529/07/23 15:45
344530/07/23 02:30
345529/07/23 17:00
346530/07/23 04:10
347529/07/23 18:15
348530/07/23 02:10
349530/07/23 04:30
350530/07/23 05:50
351530/07/23 11:35
352530/07/23 12:15
353530/07/23 02:45
354529/07/23 22:35
355529/07/23 22:45
356530/07/23 13:30
357530/07/23 09:06
358530/07/23 21:30
359530/07/23 22:55
360530/07/23 13:30
361530/07/23 22:35
362531/07/23 00:45
363531/07/23 10:25
364531/07/23 07:40
365531/07/23 12:35
366531/07/23 01:40
367531/07/23 10:53
368531/07/23 07:40
369531/07/23 07:05
370531/07/23 16:35
371531/07/23 17:12
372531/07/23 21:40
Wk (2)
Cell Formulas
RangeFormula
A3:A337,A339:A372A3=MATCH(DAY(B3),{1,8,15,22,29})
Hi peter

It's been a great day hearing from and assisting as usual it works just fine and many thanks
 
Upvote 0
Try change to:

=MIN(5,WEEKNUM(B340)-WEEKNUM(EOMONTH(B340,-1)+1)+1)
Thank Phuoc

It's great and perfectly works just as I needed it however can I apply it to all
your all are great and helpful

i appreciate everyone

Thanks
 
Upvote 0
Cell Formulas
RangeFormula
A2=SEQUENCE(365,1,DATE(2023,1,1),1)
B2 then Drag til B366=IF(AND(TEXT(VALUE(EOMONTH(A2,-1)+1),"mm")=TEXT(VALUE($A2),"mm"),TEXT(VALUE($A2),"dd")+6<14),1,IF(AND(TEXT(VALUE(EOMONTH(A2,-1)+1),"mm")=TEXT(VALUE($A2),"mm"),TEXT(VALUE($A2),"dd")+6<21),2,IF(AND(TEXT(VALUE(EOMONTH(A2,-1)+1),"mm")=TEXT(VALUE($A2),"mm"),TEXT(VALUE($A2),"dd")+6<28),3,IF(AND(TEXT(VALUE(EOMONTH(A2,-1)+1),"mm")=TEXT(VALUE($A2),"mm"),TEXT(VALUE($A2),"dd")+6<35),4,IF(AND(TEXT(VALUE(EOMONTH(A2,-1)+1),"mm")=TEXT(VALUE($A2),"mm"),TEXT(VALUE($A2),"dd")+6<37),5,B1)))))
 
Upvote 0
@Armstrong_N14
Wondering if you tested the short suggestions made earlier before developing that huge formula to do the same job? :eek:

Also please be careful not to duplicate posts. I have removed the duplicate.
 
Upvote 0
@Armstrong_N14
Wondering if you tested the short suggestions made earlier before developing that huge formula to do the same job? :eek:

Also please be careful not to duplicate posts. I have removed the duplicate.
I was so silly not to see the resolved tag 🤣 Apologies. And I got net issues causing my post to get duplicated.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
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