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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!