COUNT, Contains, Distinct
I need a formula that will count the total locations in one column that are distinct. However, the column sometimes includes several locations, separated by a comma (the data pulls into this column with a join(collect). I'm guessing I need to use "contains" or "has" but I'm just not sure of the right syntax. Anyone have any brilliant ideas? Also, i only want to count distinct locations.
Best Answer
-
Here is my suggestion...
Insert a multi-select dropdown with this column formula in it...
=SUBSTITUTE(Locations@row, ", ", CHAR(10))
Then in another multi-select dropdown enter
=JOIN([Location helper]:[Location Helper], CHAR(10))
You should now have a list of unique locations (multi-select doesn't allow duplicate entries), and you can use a COUNTM on the cell.
Answers
-
Here is my suggestion...
Insert a multi-select dropdown with this column formula in it...
=SUBSTITUTE(Locations@row, ", ", CHAR(10))
Then in another multi-select dropdown enter
=JOIN([Location helper]:[Location Helper], CHAR(10))
You should now have a list of unique locations (multi-select doesn't allow duplicate entries), and you can use a COUNTM on the cell.
-
Thank you so much, this is perfect!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 410 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!