Count unique words
I have a smartsheet with a list of countries that I would like to total up the number of unique countries in the list? Basically eliminating the dups in the count.
For example:
US
UK
IR
US
CA
CA
UK
AU
would equal 5 Total Countries
thanks!
Comments
-
Hi,
There is no Count Distinct function in Smartsheet. I found this, which maybe helpful - https://community.smartsheet.com/discussion/unique-numbers-column
Sean
-
Add a checkbox column and a row ID column, then put the following formula into the checkbox column:
=IF([Row ID]@row = MIN(COLLECT([Row ID]:[Row ID], Country:Country, Country@row)), 1)
This will check the box for each single entry along with only 1 entry for each duplicate. You can then use a COUNTIFS to count how many boxes are checked.
You case is very similar to another one we just worked on.
https://community.smartsheet.com/discussion/feedback-submitter-count
-
Paul, this works great. Thanks for posting!
-
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