Formulas for a range of dates in relation to today.

I am trying to rollup data to summarize how many projects have a completion date in the next 30, 60, and 90 days.

Currently, I have them set up like this.

=COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <=TODAY(30))

=COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <TODAY(60))

=COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <TODAY(90))

The first formula is what I need.

For the 2nd formula, I want to calculate projects with a completion date 31-60 days from today.

For the 3rd formula, I want to calculate projects with a completion date of 61-90 days from today.

Thanks in advance for your help!

Tags:

Best Answer

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    Answer ✓

    Hi @SO-Sara Bourdeau

    Hope you are fine, you can do that in a simple way as follows:

    projects with a completion date of 61-90 days from today:

    =COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <TODAY(90)) - COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <TODAY(61))

    projects with a completion date 31-60 days from today.

    = COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <TODAY(60)) - COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <=TODAY(31))

    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

Answers

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    Answer ✓

    Hi @SO-Sara Bourdeau

    Hope you are fine, you can do that in a simple way as follows:

    projects with a completion date of 61-90 days from today:

    =COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <TODAY(90)) - COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <TODAY(61))

    projects with a completion date 31-60 days from today.

    = COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <TODAY(60)) - COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <=TODAY(31))

    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

  • Bassam - Thank you - this worked. Now, I would like to add an exclusion for dates within the range, where the status is marked complete.

    This is what I have for due in the next 30 days but not complete, but getting unparseable.

    =COUNTIFS({2021 Strategic Plan Initiatives Master Range 2}, <=TODAY(30), {2021 Strategic Plan Initiatives Master Range 1}, <>"Complete"))

    Any ideas?

  • Hi Bassam,

    I am attempting a similar search for "Unassigned" projects within 31-60 days. I attempted your formula but it appears to be counting any item within the "Completed" column, which is just the created date of the project. Thoughts?


    =COUNTIFS(Status:Status, "Unassigned", Completed:Completed, <=TODAY(60)) - COUNTIFS(Completed:Completed, >=TODAY(31))

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!