Formula to Get week Number starting on Wednesday

drom

Well-known Member
Joined
Mar 20, 2005
Messages
543
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and thanks in advance!

In our company the week number goes from Wednesday to Tuesday

Check the Following table:
Row/ColABC
1DATEDesired WeekNumberFormula?
22020-Dec-23 Wednesday52
32020-Dec-24 Thursday52
42020-Dec-25 Friday52
52020-Dec-26 Saturday52
62020-Dec-27 Sunday52
72020-Dec-28 Monday52
82020-Dec-29 Tuesday52
92020-Dec-30 Wednesday53
102020-Dec-31 Thursday53
112021-Jan-01 Friday53
122021-Jan-02 Saturday53
132021-Jan-03 Sunday53
142021-Jan-04 Monday53
152021-Jan-05 Tuesday53
162021-Jan-06 Wednesday1
172021-Jan-07 Thursday1

I would like to have a formula to get the Week number I put manually in Column B
I have been trying
  • =WEEKNUM($A2, 1)
  • =WEEKNUM($A2, 2)
  • =WEEKNUM($A2, 11)
  • =WEEKNUM($A2, 12)
  • =WEEKNUM($A2, 13)
  • =WEEKNUM($A2, 14)
  • =WEEKNUM($A2, 15)
  • =WEEKNUM($A2, 16)
  • =WEEKNUM($A2, 17)
  • =WEEKNUM($A2, 21)
  • =ISOWEEKNUM($A2)
But non of those formulas works
  • from the 2021-Jan-04 Monday

Thanks again
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
MrExcelPlayground2.xlsx
ABC
1DATEDesired WeekNumberFormula
2Wednesday, December 23, 20205252
3Thursday, December 24, 20205252
4Friday, December 25, 20205252
5Saturday, December 26, 20205252
6Sunday, December 27, 20205252
7Monday, December 28, 20205252
8Tuesday, December 29, 20205252
9Wednesday, December 30, 20205353
10Thursday, December 31, 20205353
11Friday, January 1, 20215353
12Saturday, January 2, 20215353
13Sunday, January 3, 20215353
14Monday, January 4, 20215353
15Tuesday, January 5, 20215353
16Wednesday, January 6, 202111
17Thursday, January 7, 202111
18Friday, January 8, 20211
19Saturday, January 9, 20211
20Sunday, January 10, 20211
21Monday, January 11, 20211
22Tuesday, January 12, 20211
23Wednesday, January 13, 20212
24Thursday, January 14, 20212
25Friday, January 15, 20212
Sheet22
Cell Formulas
RangeFormula
C2:C25C2=WEEKNUM(INT((A2-4)/7)*7+4,21)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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