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