# count if or count ifs formula

Options

Good afternoon community; here is my formula question. I have a column using a dropdown menu (multiple selections) I want the column to count anything that says NEW and REMOVE. I cant seem to get the {}() "" , in the correct place

=CountIF([Device Status]11:[Device Status]311, "New" [Device Status]11:[Device Status]311, "Remove")

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Is everything on the same sheet?

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

Hello @Kimberly Poletes

Couple of options here that will deliver different outcomes based on this example:

This formula returns 2 as it counts cells where either NEW or REMOVE appear but not where they are both in a cell together.

=SUM(COUNTIF([Device status]:[Device status], @cell = "NEW"), COUNTIF([Device status]:[Device status], @cell = "Remove"))

This formula returns 3 as it counts cells where NEW or REMOVE appear whether individually or together

=COUNTIFS([Device status]:[Device status], OR(CONTAINS("NEW", @cell), CONTAINS("Remove", @cell)))

If you only want cells that contain both NEW and REMOVE then swap the OR for AND

=COUNTIFS([Device status]:[Device status], AND(CONTAINS("NEW", @cell), CONTAINS("Remove", @cell)))

Hope this helps

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!