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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!