Help with COUNT forumula for column with duplicate names.
Afternoon,
I am creating a reporting dashboard to report employee stats. Each of the metrics on my dashboard is fed from a dashboard calculation sheet. Each of the sections in my dashboard calculation sheet references another sheet based on different criteria. In each of these sheets, i have a column with employee names and a helper column to count and remove duplicates.
What formula should i use to count unique names and still include a single count for names with duplicates?
Here is the formula I currently have in the helper column:
=COUNTIF([Cash Drawer User Name]:[Cash Drawer User Name], [Cash Drawer User Name]@row)
Here is the formula I have on my dashboard calculation sheet with sheet references:
=COUNTIFS({Year Range}, "2024", {Month Range}, "Oct", {Cash Drawer Count No Duplicate Range}, 1)
Answers
-
Hi @mcaulism,
I think you may benefit from the DISTINCT() function, which needs to be used with other functions but finds the unique values in a range:
=COUNT(DISTINCT(COLLECT({Cash Drawer User Name}, {Year Range}, "2024", {Month Range}, "Oct")))
This will count the unique Cash Drawer User Names that were filtered by Year Range and Month Range within the collect function.
I hope this helps~
Renée Roberge
-
This worked great thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!