Count distinct with criterion
Options
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.
Help Article Resources
Categories
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!