How many ranges/criteria can I use in a COUNTIFS formula?
I need to look up multiple criteria under the same column with different spelling (like "In Process", INPROCESS, InProcess" and look up on the same sheet but different column a type (like store type).
The different Countifs I've tried either gives me a zero or unparseable, so I am stuck - Help!
Best Answer
-
Assuming your column with "In Process" is a column called "Status"...
The OR function tells COUNTIFS to count cells in the Status column with any of the included values. CONTAINS searches for a text string and is not case-sensitive, so whether your status is In Process, inprocess, in Process, In PROGRESS, etc., the below would find and count them. Close out the OR statement, add a comma, and indicate the next range to search and next criteria to find.
=COUNTIFS(Status:Status, OR(CONTAINS("process", @cell), CONTAINS("Progress", @cell)), StoreType:StoreType, "Clothing")
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Assuming your column with "In Process" is a column called "Status"...
The OR function tells COUNTIFS to count cells in the Status column with any of the included values. CONTAINS searches for a text string and is not case-sensitive, so whether your status is In Process, inprocess, in Process, In PROGRESS, etc., the below would find and count them. Close out the OR statement, add a comma, and indicate the next range to search and next criteria to find.
=COUNTIFS(Status:Status, OR(CONTAINS("process", @cell), CONTAINS("Progress", @cell)), StoreType:StoreType, "Clothing")
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thank you! I had tried that but it didn't work, so not sure what I did wrong but it is working now!
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!