# COUNTIFS on 2 check box columns, 1 checked, 1 unchecked

Options
✭✭✭
edited 12/09/19

I am trying to write a formula for a sheet summary where an "Over Due" check box is checked (driven by a due date column), and a "Done" check box is not checked...

=COUNTIFS([Over Due]:[Over Due], 1, Done:Done, 0)

#Invalid Operation...

I originally tried to run a countifs based on Done = 0, and Due Date < TODAY, but learned you can't run a countifs using a date field, apparently.

what am I doing wrong?

Tags:

• ✭✭✭✭✭✭
Options

Hi Jon,

You can run COUNTIFS with dates. Your other formula looks correct. Make sure the column types are correct.

Try something like this.

=COUNTIFS(Done:Done; 0; [Due Date]:[Due Date]; @cell < TODAY())

The same version but with the below changes for your and others convenience.

=COUNTIFS(Done:Done, 0, [Due Date]:[Due Date], @cell < TODAY())

Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

Did it work?

I hope that helps!

Have a fantastic day!

Best,

Andrée Starå

Workflow Consultant / CEO @ WORK BOLD

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

I agree with Andree on both counts. Your posted formula looks right, and you can use dates in a COUNTIFS (his example would have been my example).

If you still are not able to get it to work, feel free to post some screenshots of the formulas themselves actually being used in the sheet. Sensitive/confidential data can be hidden, removed, or replaced with "dummy data".

• ✭✭✭
Options

Thank you both!  You're right, the first formula you provided worked.

Many thanks for the prompt solution!

• ✭✭✭✭✭✭
Options

Happy to help!

Looks like you are in a region that requires semi-colons as a separator instead of commas between sections. That is definitely something to keep in mind for future formulas.

• ✭✭✭✭✭✭
Options

Excellent!

Happy to help!

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.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!