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
Check out the Formula Handbook template!