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:
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!