Setting flag when task falls within a date range

At my company we have certain dates when we do not make changes to our website (holidays usually). I'd like to be able to highlight or somehow flag a task if it falls within one of the freeze date ranges. Is there a way to do this?
Comments
-
How many different freeze ranges are there? If there aren't many, then you could build a nested if statement that would flag the row if the date is greater than or less than the date range. If there are a ton, I would consider keeping those ranges documented in a separate spreadsheet and do a countif statement that uses cross-sheet references to flag if there is the date on your current row meets the requirements of the holiday ranges on the other sheet. If it does, and the count is greater than 0 you could have it flag the row.
- Create the separate sheet "Holiday Dates" with the holiday start date and holiday end date.
- Create a new column in your project sheets with a symbol column type of FLAG.
- Create the following formula by using cross-sheet formulas.
=IF(COUNTIFS({Cross Ref - Start Date Range 1}, <=[Due Date]1, {Cross Ref -End Date Range 2}, >=[Due Date]1), 1, 0)
To create a cross-sheet reference you have to click on the link in the formula helper to reference another sheet.
See my screenshot to see the formula in action.
For more on Cross sheet references:
- https://help.smartsheet.com/videos/advanced-cross-sheet-formulas
- https://help.smartsheet.com/videos/cross-sheet-formulas
- https://www.smartsheet.com/blog/powerful-and-flexible-cross-sheet-formulas
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.5K Get Help
- 433 Global Discussions
- 152 Industry Talk
- 494 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 505 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!