Counting Number of Specific Selections in a Cell per Row. COUNTM or COUNTIF
(I created a mockup below and included the formula that errors as unparsable for me.)
-I would like the count that "Alpha" and/or "Beta" appears in the Failure Reason column for each row not a column total, excluding "Etc". We are only looking at certain failure reasons and excluding others from this total.
- EXAMPLE: 12345 contains "Alpha" and "Beta" so the total should be 2. Number 45678 has "Etc" so it should be 0 (as neither Alpha or Beta are present)
Currently my formulas are these below, all giving unparseable.
=COUNTIFS([Failure Reason]@row, OR(CONTAINS("Alpha", @Cell), CONTAINS( "Beta", @cell)))
=COUNTM(HAS([Failure Reason]@row, or(CONTAINS("Alpha", @Cell), CONTAINS( "Beta", @cell)))
Answers
-
I don't know if this is exactly what you're looking for, but this formula worked when I tested it out.
=COUNTIF([Failure Reason]@row, CONTAINS("Alpha", @cell)) + COUNTIF([Failure Reason]@row, CONTAINS("Beta", @cell))
Depending on how many failure reasons exist, that could get pretty long, but if it's only a few, I think it could work.
-
Hey @Shelby Wilder
In addition to the skillful approach of Chloe, your original formula should work. In the post above you have an @cell in your "Alpha" criteria that is capitalized. @cell and @row must be lower case.
=COUNTIFS([Failure Reason]@row, OR(CONTAINS("Alpha", @cell), CONTAINS( "Beta", @cell)))
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!