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
- Smartsheet Customer Resources
- 64K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!