Counting distinct values with two conditions
I am trying to count distinct items that fit two conditions, but I'm getting back an error.
Here is the formula I was trying:
=COUNT(DISTINCT(COLLECT({My Sheet Range 1}, {My Sheet Range 2}, CONTAINS("SEA", @cell), ({My Sheet Range 3}, CONTAINS("In Progress", @cell)))))
If I remove the second condition or use only the second condition it works, but I only want items that contain BOTH "SEA" and "In Progress".
Tags:
Best Answer
-
Remove the opening parenthesis from before range 3 and one of the closing parenthesis from the end.
Answers
-
Remove the opening parenthesis from before range 3 and one of the closing parenthesis from the end.
-
Thank you so much, it worked!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 141 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!