Count unique entries among two columns
I am looking for a way to create a report or a column on an existing smartsheet to count employees by unique supervisor name
Thanks for any ideas!
Becky
Best Answer
-
Thank you for the idea! We will certainly be experimenting
Answers
-
Hi @Rebecca Menning,
I took the data you've provided and was able to get something similar to the outcome of what you are looking for, on a sheet:
I am not sure if there is a way to list the [Unique Employees] as separate rows, though we can use the CHAR(10) combined with a JOIN() formula, followed with wrapping the values in that column, to get a similar layout. Here are the formulas I used for each column:
[Supervisor Helper] (Used to assist the DISTINCT() and CONTAINS() formulas)
=JOIN([Supervisor 1]@row:[Supervisor 2]@row, ",")
[Count of Unique Employees]
=COUNT(DISTINCT(COLLECT(Employee:Employee, [Supervisor Helper]:[Supervisor Helper], CONTAINS(Supervisors@row, @cell))))
[Unique Employees]
=JOIN(DISTINCT(COLLECT(Employee:Employee, [Supervisor Helper]:[Supervisor Helper], CONTAINS(Supervisors@row, @cell))), CHAR(10))
The [Supervisors] column is just manual name entry for any supervisors.
Hope this helps!
-
Thank you for the idea! We will certainly be experimenting
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.3K Get Help
- 462 Global Discussions
- 156 Industry Talk
- 508 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 517 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!