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
- 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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!