want to extract week number for every month

trivedi

New Member
Joined
Nov 23, 2021
Messages
15
Hi,
I have data of 2019 - in weeknuumber column i need week num as per month
for ex in jan week column i am getting 1,2,3,4 when we see feb data, the week num should ot be 5,6,7,8 - they should be agian 1,2,3,4

Timeweek
WeekEnding
1/14/2018​
3​
WeekEnding
1/21/2018​
4​
WeekEnding
1/28/2018​
5​
WeekEnding
2/4/2018​
6​
WeekEnding
2/11/2018​
7​
WeekEnding
2/18/2018​
8​
WeekEnding
2/25/2018​
9​
WeekEnding
3/4/2018​
10​
WeekEnding
3/11/2018​
11​
WeekEnding
3/18/2018​
12​
WeekEnding
3/25/2018​
13​
WeekEnding
4/1/2018​
14​
WeekEnding
4/8/2018​
15​
WeekEnding
4/15/2018​
16​
WeekEnding
4/22/2018​
17​
WeekEnding
4/29/2018​
18​
WeekEnding
5/6/2018​
19​
WeekEnding
5/13/2018​
20​
WeekEnding
5/20/2018​
21​
WeekEnding
5/27/2018​
22​
WeekEnding
6/3/2018​
23​
WeekEnding
6/10/2018​
24​
WeekEnding
6/17/2018​
25​
WeekEnding
6/24/2018​
26​
WeekEnding
7/1/2018​
27​
WeekEnding
7/8/2018​
28​
WeekEnding
7/15/2018​
29​
WeekEnding
7/22/2018​
30​
WeekEnding
7/29/2018​
31​
WeekEnding
8/5/2018​
32​
WeekEnding
8/12/2018​
33​
WeekEnding
8/19/2018​
34​
WeekEnding
8/26/2018​
35​
WeekEnding
9/2/2018​
36​
WeekEnding
9/9/2018​
37​
WeekEnding
9/16/2018​
38​
WeekEnding
9/23/2018​
39​
WeekEnding
9/30/2018​
40​
WeekEnding
10/7/2018​
41​
WeekEnding
10/14/2018​
42​
WeekEnding
10/21/2018​
43​
WeekEnding
10/28/2018​
44​
WeekEnding
11/4/2018​
45​
WeekEnding
11/11/2018​
46​
WeekEnding
11/18/2018​
47​
WeekEnding
11/25/2018​
48​
WeekEnding
12/2/2018​
49​
WeekEnding
12/9/2018​
50​
WeekEnding
12/16/2018​
51​
WeekEnding
12/23/2018​
52​
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi,
You can test following
Excel Formula:
=WEEKNUM(C2)-WEEKNUM(DATE(YEAR(C2),MONTH(C2),1))+1
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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