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
- 62.9K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 302 Events
- 33 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!