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
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!