Week number in the calendar

UmairKamal

New Member
Joined
Aug 27, 2021
Messages
17
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Dear users,

I would like to create a calendar in Excel. Here are the basic rules:

1. The financial year runs from April to March
2. The week runs from Monday to Sunday
3. The week numbers are based on the Sundays in that year. for example, week commencing 30 March 2020, Monday ends on a Sunday, 5 April 2020 and should be week 1 for the financial year 2020-21. Similarly, week commencing 22 March 2021, Monday ends on a Sunday, 28 March 2021 and should be week 52 for the financial year 2020-21.
4. Following on from the example above, the week commencing Monday, 29 March 2021 ends on a Sunday 4 April 2021, and should be week 1 for the financial year 2021-22 and so on and so forth.

Considering all my dates are in Column A and I want the week numbers in Column B, please assist me with a formula which automatically calculates the week numbers.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I used a helper column, but if you like walls of text feel free to combine it into one cell

Book3
ABC
101-Jan-20-12.0040
202-Jan-20-12.0040
303-Jan-20-12.0040
404-Jan-20-12.0040
505-Jan-20-12.0040
606-Jan-20-11.0041
707-Jan-20-11.0041
808-Jan-20-11.0041
909-Jan-20-11.0041
1010-Jan-20-11.0041
1111-Jan-20-11.0041
1212-Jan-20-11.0041
Sheet1
Cell Formulas
RangeFormula
B1:B12B1=ISOWEEKNUM(A1)-ISOWEEKNUM(DATE(IF(ISOWEEKNUM(A1)=ISOWEEKNUM(DATE(YEAR(A1),4,1)),YEAR(A1),YEAR(A1)-1),4,1))+1
C1:C12C1=IF(B1>0,B1,B1+ISOWEEKNUM(DATE(YEAR(A1)-1,12,28)))
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$B$1:$C$1096C1
 
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