# COUNTIFS to count late tasks

Options
edited 11/09/23

I am working in the SUMMARY for my spreadsheet. I have Summary fields that:

• total count of records (141)
• total the count of records completed (42)
• Total the fields that have dues dates in the past (99)
• Total the fields that are in progress (13)

Given that 42+99+13 does NOT equal 141... something is not kosher. Thus I am working to count late tasks. That is I am attempting to count the field if:

• Due Date is in the past.... and
• Status does not contain"Completed"

=COUNTIFS(Heirarchy:Heirarchy, "2", [Due Date]:[Due Date], <TODAY(), Category:Category, "Compliance", Status:Status, NOT(CONTAINS("Completed",@cell)))

This returns a value, but it returns the same value when I do not include the Status parameters. (99)

I would be very appreciative of tany help.

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Can you share some screenshots of the sheet? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help.

I hope that helps!

Be safe, and have a fantastic week!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• ✭✭✭✭✭✭
Options

The formula looks OK to me. Could the logic be the problem?

• total count of records (141)
• total the count of records completed (42)
• Total the fields that have dues dates in the past (99)
• Total the fields that are in progress (13)

42+99+13 does NOT equal 141... but should it???

Without seeing the data it is hard to tell, but can't rows with due dates in the past also be "completed" or "in progress" and therefore some of the 99 could be included in the 42 and 13.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!