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.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!