Forum Discussion

kcastrofan's avatar
kcastrofan
Copper Contributor
Jun 02, 2021

Count Weeks in Sequential Year

I have been fighting with a formula for way too long and I hope you can help.

 

Our “gas-week” starts on a Friday and goes through Thursday. I want to assign a week number to each date. Seems easy enough with WEEKNUM (using 15-Friday as the first day of the week) or ISOWEEKNUM (but the default is week starts on Monday). The issue arises when the calendar flips.

 

The attached file shows a formula I believe is very close in column L  but it fails when the calendar flips to a year that starts on Friday (i.e. 2021).

 

Any guidance or help you can provide would be much appreciated – and probably put hair back in my head an years on my life.  Thanks!

7 Replies