count if or count ifs formula
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")
Answers
-
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.
-
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
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!