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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!