Count of request Status for each System using COUNTIFS statement with OR criteria
Hi,
I have a sheet with a list of requests for various Systems and am trying to create metrics for how many "Active" requests exist for each System. I'm able to get these to work:
Count of rows by "Active" Statuses: =COUNTIF({Sheet Range 2}, OR(@cell = "0 - Submitted", @cell = "2 - Approved"))
Count of rows by System: =COUNTIF({Sheet Range 6}, CONTAINS("SYSTEM A", @cell))
I tried using this to combine the two but get a #UNPARSEABLE error: =COUNTIFS({Sheet Range 2}, OR(@cell = "0 - Submitted", @cell = "2 - Approved"), ({Sheet Range 6}, @cell = "SYSTEM A"))
Best Answer
-
Thanks, David, good catch! It's the simple things, right? Here's what seems to have worked:
=COUNTIFS({Sheet Range 6}, @cell = "SYSTEM A", {Sheet Range 2}, OR(@cell = "0 - Submitted", @cell = "2 - Approved"))
Answers
-
I think you have an extra ( before your Sheet Range that is causing issues. Try:
=COUNTIFS({Sheet Range 2}, OR(@cell = "0 - Submitted", @cell = "2 - Approved"), {Sheet Range 6}, @cell = "SYSTEM A")
-
Thanks, David, good catch! It's the simple things, right? Here's what seems to have worked:
=COUNTIFS({Sheet Range 6}, @cell = "SYSTEM A", {Sheet Range 2}, OR(@cell = "0 - Submitted", @cell = "2 - Approved"))
-
Glad to see it's working.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!