GhostWatch
New Member
- Joined
- May 26, 2023
- Messages
- 7
- Office Version
- 365
- Platform
- Windows
Im making an automatics calendar where the months are separate and weeks are Monday to Sunday.
I use this to find the weeknumber within the month and it resets for each month.
=ISOWEEKNUM(A364)-ISOWEEKNUM(DATE(YEAR(A364),MONTH(A364),1))+1
However for the end of December it no longer works and gives an error.
Each month is set out as below but as you can see the dates do not carry on until the month end.
If i use
=WEEKNUM(A364,2)-WEEKNUM(DATE(YEAR(A364),MONTH(A364),1),1)+1
then if the week doesn't start on a Sunday, then it leaves an empty row in the calendar under the days.
How would i go about fixing this?
I use this to find the weeknumber within the month and it resets for each month.
=ISOWEEKNUM(A364)-ISOWEEKNUM(DATE(YEAR(A364),MONTH(A364),1))+1
However for the end of December it no longer works and gives an error.
Each month is set out as below but as you can see the dates do not carry on until the month end.
If i use
=WEEKNUM(A364,2)-WEEKNUM(DATE(YEAR(A364),MONTH(A364),1),1)+1
then if the week doesn't start on a Sunday, then it leaves an empty row in the calendar under the days.
How would i go about fixing this?