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
- Customer Resources
- 66.5K Get Help
- 434 Global Discussions
- 152 Industry Talk
- 494 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 506 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!