week formula for retail fiscal calendar
need help with a formula I have for our Week columns. we operate on a Retail Fiscal Calendar, so we're 4 weeks behind the Smartsheet default, hence the "- 4" in my formulas. The formulas work great for February through December, but once January hits, the Week cells populate as -3 (Jan wk 1), -2 (Jan wk 2) and so on...
current column formulas:
Week Start: =IFERROR(WEEKNUMBER([Go-Live Date]@row) - 4, "")
Week End: =IFERROR(WEEKNUMBER([End Date]@row) - 4, "")
Can someone help adjust this formula so that January doesn't read as negative numbers and instead populates Weeks 49-52?
Best Answers
-
Hi @cjsyms ,
These should help do what you're after:
=IFERROR(IF((WEEKNUMBER([Go-Live Date]@row) - 4) <= 0, 52 + (WEEKNUMBER([Go-Live Date]@row) - 4), (WEEKNUMBER([Go-Live Date]@row) - 4)), "")
=IFERROR(IF((WEEKNUMBER([End Date]@row) - 4) <= 0, 52 + (WEEKNUMBER([End Date]@row) - 4), (WEEKNUMBER([End Date]@row) - 4)), "")
-
NICK! thank you — this worked and is so great. Cheers!
Answers
-
Hi @cjsyms ,
These should help do what you're after:
=IFERROR(IF((WEEKNUMBER([Go-Live Date]@row) - 4) <= 0, 52 + (WEEKNUMBER([Go-Live Date]@row) - 4), (WEEKNUMBER([Go-Live Date]@row) - 4)), "")
=IFERROR(IF((WEEKNUMBER([End Date]@row) - 4) <= 0, 52 + (WEEKNUMBER([End Date]@row) - 4), (WEEKNUMBER([End Date]@row) - 4)), "")
-
NICK! thank you — this worked and is so great. Cheers!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 448 Global Discussions
- 154 Industry Talk
- 504 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 512 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!