formula that checks if a project happened during the current month

Options
edited 12/09/19

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?

Tags:

Comments

• ✭✭✭✭✭✭
edited 11/19/19
Options

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)

• ✭✭✭✭✭✭
Options

Edited it to Finish@row.

• edited 11/20/19
Options

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

• ✭✭✭✭✭✭
Options

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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!