Counting single values with multiple criteria
I need a little help with a formula in Smartsheet, I am trying to count the number of employees who are over utilised (> 105) but some employees have multiple entries (same utilisation, so only need 1 entry in the count). Answer below should be 3
Best Answer
-
Have you tried incorporating the formula function Distinct (https://help.smartsheet.com/function/distinct)?
It will only look for unique values.
I think in your case, you may want to opt for a Count/Distinct/Collect formula. This will count the unique values based on your parameters, in this case, the utilization being over 105.
Based on your screenshot try this: =COUNT(DISTINCT(COLLECT(Name:Name, Utilisation:Utilisation, >105)))
Name:Name would be the column housing the names and Utilisation:Utilisation would be the column housing the numbers.
I hope this helps?
Answers
-
Have you tried incorporating the formula function Distinct (https://help.smartsheet.com/function/distinct)?
It will only look for unique values.
I think in your case, you may want to opt for a Count/Distinct/Collect formula. This will count the unique values based on your parameters, in this case, the utilization being over 105.
Based on your screenshot try this: =COUNT(DISTINCT(COLLECT(Name:Name, Utilisation:Utilisation, >105)))
Name:Name would be the column housing the names and Utilisation:Utilisation would be the column housing the numbers.
I hope this helps?
-
Perfect, thanks Antonie, the DISTINCT function is new to me. The learning never stops. :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 214 Industry Talk
- 454 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 456 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!