SaraWitch
Active Member
- Joined
- Sep 29, 2015
- Messages
- 370
- Office Version
- 365
- Platform
- Windows
Hello peeps,
I'm trying to calculate the number of weeks in a fiscal year. I've tried several formulas where I count the Sundays, Mondays, etc., but so far none are working. I need something really simple so users can just put in 01/04/[relevant year] and 31/03/[following year].
The fiscal year runs from the first Monday in April until the first Sunday after 31st March the following year. I have a formula that calculates these dates based on the entry dates (e.g., =A1-DAY(A1)+8-WEEKDAY(A1-DAY(A1)+6) for the Mondays and =IF(MOD(B1-1,7)>7,B1+7-MOD(B1-1,7)+7,B1+7-MOD(B1-1,7)) for the Sundays.
I then found a formula which is based on the difference in days from 1st January to fiscal year start (=WEEKNUM((A1-[number of days difference]),1)) but can't find a way of finding a formula to change date to 1st January in the same year as the date entered in another cell (fiscal year start date), to then calculate difference - this all needs to be done automatically from just two dates entered by user.
I'm starting to tie myself up in knots, so any practical advice on how to find the number of weeks in a fiscal year based on the above criteria (first April Monday, first Sunday after 31st March) would be greatly welcomed!
I'm trying to calculate the number of weeks in a fiscal year. I've tried several formulas where I count the Sundays, Mondays, etc., but so far none are working. I need something really simple so users can just put in 01/04/[relevant year] and 31/03/[following year].
The fiscal year runs from the first Monday in April until the first Sunday after 31st March the following year. I have a formula that calculates these dates based on the entry dates (e.g., =A1-DAY(A1)+8-WEEKDAY(A1-DAY(A1)+6) for the Mondays and =IF(MOD(B1-1,7)>7,B1+7-MOD(B1-1,7)+7,B1+7-MOD(B1-1,7)) for the Sundays.
I then found a formula which is based on the difference in days from 1st January to fiscal year start (=WEEKNUM((A1-[number of days difference]),1)) but can't find a way of finding a formula to change date to 1st January in the same year as the date entered in another cell (fiscal year start date), to then calculate difference - this all needs to be done automatically from just two dates entered by user.
I'm starting to tie myself up in knots, so any practical advice on how to find the number of weeks in a fiscal year based on the above criteria (first April Monday, first Sunday after 31st March) would be greatly welcomed!