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?
Thanks
S
Best Answer
-
I would think that using IFS and having a check that the Year(End Date@row) matches Year(Today()) would work?
/marc
Answers
-
I would think that using IFS and having a check that the Year(End Date@row) matches Year(Today()) would work?
/marc
-
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), "")
S
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!