End of Year Weeknumber Issues
Automations 1
✭✭✭✭✭
Hi,
I'm having issues with many of my weeknumber formulas, now that it's the end of the year.
- I have a Start Date column. I want the weeknumber of three weeks after the start date. Until now I used =WEEKNUMBER([Start date]@row) + 3. That doesn't work for the end of the year, because after 53 it goes to 54, 55, 56 ect.. Instead of going to 1, 2, 3
- In another scenario I want to know if the Start Date is in a future week - not this week, but in a future week. Until now I've been using this formula: =IF(WEEKNUMBER([Start date]@row) > WEEKNUMBER(TODAY()), 1, 0). But again, this formula stopped working if the Start Date is in January '21 or past that.
Any solutions?? Do I need to change all my weeknumber formulas and just use date formulas?
Answers
-
You can always run an if statement to subtract 52 from the weeknumber if its over 52. And then it would revert once the date stops using the end of the year.
=IF(WEEKNUMBER([Start date]@row) + 3 > 52, Weeknumber([Start date]@row) + 3 - 52, Weeknumber([start date]@row + 3)
Does this formula work for you?
-
For your first issue, change the formula to =WEEKNUMBER([[Start date]@row + 21)
your second issue is a bit more complicated because of how the weeknumber function behaves...
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!