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
- Customer Resources
- 65.3K Get Help
- 446 Global Discussions
- 144 Industry Talk
- 478 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!