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