What's wrong with my formula?
Something very obvious, I am sure:
=COUNTIF({COVID Sick Testing Range 4}, CONTAINS("Positive Rapid", {COVID Sick Testing Range 4}), OR(CONTAINS("Positive PCR", {COVID Sick Testing Range 4})))
Trying to count all Covid-1 positive tests, referencing another sheet.
Thanks!
Answers
-
Hey @Grace Tidwell
Try this. I used the COUNTIFS (plural) vs COUNTIF (singular) because the plural version of the function always works, regardless of how many criteria are used, and the singular version only works when a single criteria is used. I don't have to keep up with the number of criteria if using the plural version of the function.
=COUNTIFS({COVID Sick Testing Range 4}, OR(CONTAINS("Positive Rapid", @cell), CONTAINS("Positive PCR", @cell)))
Note: If these are the only two responses with the descriptor "Positive" in the name, you could look for just 'Positive' using a single Contains and eliminate the 'OR' condition.
=COUNTIFS({COVID Sick Testing Range 4}, CONTAINS("Positive", @cell))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 378 Global Discussions
- 208 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 289 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!