COUNTIF where counting if cell contains "Super" but "Superstar"
I have a formula where I'm counting how many products are at a certain status and where they have a title of Super, Super & more or Super & Design (B&W) - but want to make it scalable. Is there a way to create a formula where I can tell it to count any cell where "Super" is the prefix? And secondarily, not count anything that says, "Superstar" as that is a separate category.
The below is working but isn't scalable and doesn't account for the "Not" Superstar.
=COUNTIFS({Status}, Product@row, {Title}, OR(@cell = "Super", @cell = "SUPER & more", @cell = "Super & Design (B&W)”))
Any thoughts? Essentially I'm hoping it is like a boolean search where i can say countif "Super!"
Best Answer
-
If I am understanding your request correctly, this should work:
=COUNTIFS({Status}, Product@row, {Title}, CONTAINS("Super", @cell), {Title}, NOT(CONTAINS("Superstar", @cell)))
Answers
-
If I am understanding your request correctly, this should work:
=COUNTIFS({Status}, Product@row, {Title}, CONTAINS("Super", @cell), {Title}, NOT(CONTAINS("Superstar", @cell)))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!