formula that checks if a project happened during the current month
I'm trying to create a formula that checks if a project happened during the current month.
Example:
Project Start: 09/09/19 | Project Finish: 12/13/19
Here is what I have that kind of works: =IF(AND(TODAY() >= Start@row, TODAY() <= Finish@row), 1, 0)
However, this formula does not work if the project happened during the current month, but the finish date is prior than the current day.
Example: Today's date is 11/19/19
Project Start: 11/01/19 | Project Finish: 11/12/19
This will not check the box.
So I need a formula that will check the box if at any point in the date range, it is the current month.
Any ideas?
Comments
-
What about testing to see if the month of the end date also matches the month of today? Does this work for you?
=IF(Month(Finish@row) = Month(Today()), 1, IF(AND(TODAY() >= Start@row, TODAY() <= Finish@row), 1, 0)
-
Edited it to Finish@row.
-
Mike,
Thank you for the response! It looks like this works! I'll test around with a couple random dates, but it appears to be working well
-
Yep, that first clause of checking between the dates would cover anything in the time span and if the current date was outside of that timespan but in the same month, it would fire too. I'm glad I could come up with a workable solution for you! Let me know if you run into any snaffoos.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!