Trigger Checkbox check once week meets criteria


Hi Smarties,

I have a Checkbox column that will be checked automatically when an End Date is met. This checkbox is then used in a report and published that particular row in a dashboard.

=IFERROR(IF(WEEKNUMBER([End Date]@row) = WEEKNUMBER(TODAY()) - 1, 1), "")

However, I totally overlooked that this will also trigger duplicate checkboxes when we get into a new year -for example Week ending 17Feb 2023, and week ending 11th Feb 2022 will trigger both boxes.

I know there has been a post about this, but can someone remind me again, how do I tweak the formula above to work only for current year?




Best Answer


  • marc4
    marc4 ✭✭✭✭
    edited 02/15/23 Answer ✓

    I would think that using IFS and having a check that the Year(End Date@row) matches Year(Today()) would work?


  • Syed Muhafzal
    Syed Muhafzal ✭✭✭✭✭
    edited 02/15/23

    Thanks Marc.

    I have modified the formula and it seems to be working, thanks for the suggestion!

    =IFERROR(IF(AND(WEEKNUMBER([End Date]@row) = WEEKNUMBER(TODAY()) - 1, YEAR([End Date]@row) = YEAR(TODAY())), 1), "")


Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!