Return true of Date equals a date within a range of specified dates

helper column
=IF([Deploy Date]@row = [Deploy Date]29, 1, 0)
Works fine. If the date in the row equals the date in row 29 - returns 1
However i'd like it to search within a range of dates and i'm clearly missing something.
=IF([Deploy Date]@row = [Deploy Date]28:[Deploy Date]39, 1, 0))
I'd like if the deploy date @ row equals ANY date within a range of dates listed on row 28-39 - return 1.
That way conditional format will look for the 1, highlight row red.
Best Answer
-
You cannot compare or equate a value directly with a range. Try the below,
=IF(MATCH([Deploy Date]@row, [Deploy Date]28:[Deploy Date]39, 0) > 0, 1, 0)
Answers
-
You cannot compare or equate a value directly with a range. Try the below,
=IF(MATCH([Deploy Date]@row, [Deploy Date]28:[Deploy Date]39, 0) > 0, 1, 0)
-
Thank you! How do I tell it to ignore e cell Thank you, How do i tell it to ignore if the cell @row is blank or if the range of dates. [Deploy date] 28:[Deploy Date]39 are blank?
-
Try this: (basically this check if both the cell at row and the range is not empty. Range is assumed not empty if at least one column within the range has value)
=IF(AND(NOT(ISBLANK([Deploy Date]@row)), COUNTIF([Deploy Date]28:[Deploy Date]39, <>"") > 0 ), IF(MATCH([Deploy Date]@row, [Deploy Date]28:[Deploy Date]39, 0) > 0, 1, 0))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.1K Get Help
- 430 Global Discussions
- 149 Industry Talk
- 488 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 154 Just for fun
- 74 Community Job Board
- 499 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!