# Sum with CountIfs

Options
✭✭

I'm trying to sum if column 1 below = Yes and column 3 below = Yes.....I would like to return the value 2 since both say Yes. My formula isn't delivering this result.

=sum(countifs([Frame JC306395 Has Green QC Inspection Sticker]@row,"Yes",[2 Capacitor Racks Have Green QC Inspection Sticker]@row,"Yes))

• ✭✭✭✭✭✭
Options

You don't need a SUM, as SUM will add what is within a cell. Just combine 2 COUNTIF formulas and you are golden, UNLESS you are only counting them if both are YES...

=COUNTIF([Frame JC306395 Has Green QC Inspection Sticker]@row,"Yes")+COUNTIF([2 Capacitor Racks Have Green QC Inspection Sticker]@row,"Yes)

• ✭✭✭✭✭✭
Options

You don't need a SUM, as SUM will add what is within a cell. Just combine 2 COUNTIF formulas and you are golden, UNLESS you are only counting them if both are YES...

=COUNTIF([Frame JC306395 Has Green QC Inspection Sticker]@row,"Yes")+COUNTIF([2 Capacitor Racks Have Green QC Inspection Sticker]@row,"Yes)

• ✭✭✭✭
Options

=SUM(COUNTIF([Frame JC306395 Has Green QC Inspection Sticker]@row, "Yes"), COUNTIF([2 Capacitor Racks Have Green QC Inspection Sticker]@row, "Yes"))

• ✭✭
Options

Eric,

Excellent, thank you.

Jim

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!