Formula that returns true/false if today's date falls between two dates on my sheet?
I am trying to write a formula that returns true/false when today's date falls between a date range on my sheet. I want the formula to return "true" if today's date falls between "Start Date" and "End Date."
Below is my current formula, but I continue get a returned value of "#DATE EXPECTED."
=IF(AND(TODAY() >= [Start Date]1, TODAY() <= [End Date]1), true, false)
Any suggestions you have as to how I can make this formula work would be helpful. Thank you!
Best Answers
-
You have a date column and are attempting to output boolean data. You need to output text in order for this to work, and to output text you put quotes around what you want to return.
=IF(AND(TODAY() >= [Start Date]1, TODAY() <= [End Date]1), "true", "false")
-
Or you could change the column to either a text/number type or a symbol type that runs on true/false values such as single star, flag, or checkbox.
Answers
-
You have a date column and are attempting to output boolean data. You need to output text in order for this to work, and to output text you put quotes around what you want to return.
=IF(AND(TODAY() >= [Start Date]1, TODAY() <= [End Date]1), "true", "false")
-
Or you could change the column to either a text/number type or a symbol type that runs on true/false values such as single star, flag, or checkbox.
-
Thank you both so much! Both answers were very helpful and worked! :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!