Count distinct with criterion
Hello,
I'm trying to count the number of projects we have that are in the Draft state. I can't seem to get the correct combination of COUNT, DISTINCT and IF together into a formula to yield the results that I want. Has anyone been able to achieve this? Here is a screenshot of the columns that I'm trying to reference:
Best Answer
-
You want to try a COUNT/DISTINT/COLLECT
=COUNT(DISTINCT(COLLECT([Project ID]:[Project ID], [Opportunity State Name]:[Opportunity State Name], @cell = "Draft")))
Answers
-
You want to try a COUNT/DISTINT/COLLECT
=COUNT(DISTINCT(COLLECT([Project ID]:[Project ID], [Opportunity State Name]:[Opportunity State Name], @cell = "Draft")))
-
@Paul Newcome the COLLECT function escaped my consciousness. Genius! Thank you.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!