CountIF for Overdue Tasks that are not Complete

I'm trying to count overdue tasks in Sheet Summary, but only for Tasks that are not marked as Complete. (Marked In Progress or Not Started).

=COUNTIF(Status:Status, OR(Status:Status = "In Progress", Status:Status = "Not Started"), [End Date]:[End Date], <TODAY())

It returns the #incorrect argument set error. Any thoughts on what's wrong?

Best Answer

Answers

  • Todd M Keller
    Todd M Keller ✭✭✭✭
    edited 03/07/23
  • Todd M Keller
    Todd M Keller ✭✭✭✭
    Answer ✓

    Give this a try instead......

    =COUNTIFS(Status:Status, <>"Complete", [End Date]:[End Date], <TODAY())

  • Adelina
    Adelina ✭✭

    Thanks! That works, I also missed an S in COUNTIFS!

  • Helena P.
    Helena P. ✭✭✭✭

    HI all, I am struggling to the the right number as some status cells are blank. How should I tell the formula to include as well cells which are blank? I tried with OR but got error Unpareasble.

    =COUNTIFS({Wave 2 WRICEFU Design & Build Tracker Range 2}, <>"12 Descoped", {Wave 2 WRICEFU Design & Build Tracker Range 4}, OR(@Cell ="", @cell <>"Approved"), {Wave 2 WRICEFU Design & Build Tracker Range 11}, <TODAY())

  • Hi @Helena P.

    The reason you're seeing unparseable is because the @cell function needs to be all lower case. In the OR function you have a capital C in the @Cell, which will mean it won't work.

    That said, excluding cells that say "Approved" will then include cells that are blank (since they do not say "Approved").

    Try it again:

    =COUNTIFS({Wave 2 WRICEFU Design & Build Tracker Range 2}, <>"12 Descoped", {Wave 2 WRICEFU Design & Build Tracker Range 4}, <>"Approved", {Wave 2 WRICEFU Design & Build Tracker Range 11}, <TODAY())

    Cheers,
    Genevieve

    Join us at Smartsheet ENGAGE 2024 🎉
    October 8 - 10, Seattle, WA | Register now

  • Helena P.
    Helena P. ✭✭✭✭

    HI @Genevieve P.

    thank you :)

    I tried but received an error, inv ref

    =COUNTIFS({Wave 2 WRICEFU Design & Build Tracker Range 2}, <>"12 Descoped", {Wave 2 WRICEFU Design & Build Tracker Range 4}, OR(@Cell ="", @cell <>"Approved"), {Wave 2 WRICEFU Design & Build Tracker Range 11}, <TODAY())

  • Hi @Helena P.

    That looks to be the same formula as before - have you removed out the @Cell and = "" reference?

    =COUNTIFS({Wave 2 WRICEFU Design & Build Tracker Range 2}, <> "12 Descoped", {Wave 2 WRICEFU Design & Build Tracker Range 4}, @cell <>"Approved", {Wave 2 WRICEFU Design & Build Tracker Range 11}, <TODAY())

    An Invalid Reference error means that one of the references is potentially set up incorrectly. Double check that each of these are pointing to the right column:

    {Wave 2 WRICEFU Design & Build Tracker Range 2}
    {Wave 2 WRICEFU Design & Build Tracker Range 4}
    {Wave 2 WRICEFU Design & Build Tracker Range 11}

    Join us at Smartsheet ENGAGE 2024 🎉
    October 8 - 10, Seattle, WA | Register now

  • Helena P.
    Helena P. ✭✭✭✭
    edited 05/17/24

    HI, so I did check it and still nothing. I slightly changed the formula to count items with any of those statuses:

    submitted

    needs re-work

    or blank

    and received an error unparseable

    =COUNTIFS([Overall WRICEFU Status]:[Overall WRICEFU Status], <>"12 Descoped", [Functional Approver(PDL) approval]:[Functional Approver(PDL) approval], OR(@cell = "Submitted", @cell = "Needs Re-Work", @cell = ""), [FS PDL + LPO + Int. Lead Approval Date]:[FS PDL + LPO + Int. Lead Approval Date], <TODAY()))

  • Hi @Helena P.

    In this instance, the OR statement is not being closed off OR( - - - )

    =COUNTIFS([Overall WRICEFU Status]:[Overall WRICEFU Status], <>"12 Descoped", [Functional Approver(PDL) approval]:[Functional Approver(PDL) approval], OR(@cell = "Submitted", @cell = "Needs Re-Work", @cell = ""), [FS PDL + LPO + Int. Lead Approval Date]:[FS PDL + LPO + Int. Lead Approval Date], <TODAY())


    Join us at Smartsheet ENGAGE 2024 🎉
    October 8 - 10, Seattle, WA | Register now

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!