# Countifs Only Resulting in 0

Options

I'm creating a new summary sheet and counting cells that match certain words in a different macro sheet. In my summary, I have two columns:

1 - A total column (counting how many phase 1 or phase 2 items there are)

2 - A total complete column (counting how many items in "phase 1" are marked "complete")

I've double checked and tried a handful of different types of equations and always get 0 or error. There should be 1 total, which works correctly, but when I do "countifs" for the second column, it does not pull the 1 complete.

=COUNTIFS({Sanderson Macro Schedule (CN) Range 5}, {Sanderson Macro Schedule (CN) Range 6} = "Phase 1", {Sanderson Macro Schedule (CN) Range 5}, {Sanderson Macro Schedule (CN) Range 4} = "complete")

• ✭✭✭✭✭✭
Options

Maybe try this one.

=COUNTIFS({Sanderson Macro Schedule (CN) Range 6} = "Phase 1", {Sanderson Macro Schedule (CN) Range 4} = "Complete")

I think maybe you were using the COUNTIFS sort of like a SUMIFS but they're a little different.

I hope that helps.

Matt

Matt Johnson

Sevan Technology

Smartsheet Aligned Partner

• Options

This unfortunately gives me a "#invalid operation" result.

• ✭✭✭✭✭
edited 10/19/23
Options

See if this gives you what you are looking for.

=COUNTIFS({Sanderson Macro Schedule (CN) Range 6}, @cell = "Phase 1", {Sanderson Macro Schedule (CN) Range 4}, @cell = "complete")

Hope this helps,

Dave

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!