check box within date range
Hi community
im looking for a formula to automatically check boxes related to dates from a table containing a start date and a end date
table 1 is the dates source:
table 2 (boxes to be checked)
i'm trying this formula but there is no response:
=IF(COUNTIFS({Sherbrooke - Time Off Tracker name}, [Main Tech]@row, {Sherbrooke - Time Off Tracker start}, >=Start@row, {Sherbrooke - Time Off Tracker end}, <=Start@row) > 0, 1, 0)
thank you for your help
Best Answer
-
Try switching the arguments. You want the {Start Date} to be less than or equal to Start@row and the {End Date} to be greater than or equal to Start@row.
Answers
-
Try switching the arguments. You want the {Start Date} to be less than or equal to Start@row and the {End Date} to be greater than or equal to Start@row.
-
You need another condition to check against. It also depends on when and how often the formula is getting run - for example, the formula below can check the box if today's date is between the start and end date, indicating the employee is currently on vacation. Make it a column formula to capture everyone and continuously update (Smartsheet recalculates formula columns whenever the sheet is opened, edited, or refreshed). Also of note: the below formula assumes the output formula and the source data are in the same sheet.
=IF(AND(TODAY() >= [Start Date]@row, TODAY() <= [End Date]@row), 1, 0)
-
Thank you @Paul Newcome! so simple…
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 61 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!