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
- 67.5K Get Help
- 468 Global Discussions
- 156 Industry Talk
- 511 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 521 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!