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
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!