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
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!