week formula for retail fiscal calendar

Options

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?


Tags:

Best Answers

  • Nick Korna
    Nick Korna ✭✭✭✭✭✭
    Answer ✓
    Options

    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)), "")

  • cjsyms
    cjsyms
    edited 08/10/22 Answer ✓
    Options

    NICK! thank you — this worked and is so great. Cheers!

Answers

  • Nick Korna
    Nick Korna ✭✭✭✭✭✭
    Answer ✓
    Options

    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)), "")

  • cjsyms
    cjsyms
    edited 08/10/22 Answer ✓
    Options

    NICK! thank you — this worked and is so great. Cheers!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!