Using contains for a date in a range of dates
Nitzan
✭✭
Hey guys,
I would like to check if a certian date appears in a range of dates. I tried contains function but it only works for string/int type.
attaching a screenshot:
I would like to check if 8/12/22 (CF col) is in holiday col, and if it is, then take CF date and minus 2.
I tried this formula:
=IF(CONTAINS(CF@row, holiday:holiday), CF@row - 2, CF@row)
but it won't work
is there any way to to that?
Thank you
Answers
-
@Nitzan try something like
=if(countifs(holiday:holiday, cf@row) > 0, CF@row -2, CF@row)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!