Remove duplicates from a row?
Is there a way to remove duplicate zip codes in a row of columns so only unique zip codes will be available when I concatenate them all into a combined zip code column?
Example: If I have 4 columns of zip codes and Col 1 and Col 4 are duplicates, I only want to show Col 1's Zip Code once when I combined all the columns into Col 5.
Where the result in Col 5 would be a concatenation of all zip codes on the same row with only one zip code instance of 95973 listed.
Best Answer
-
A JOIN(DISTINCT()) function should work for your needs.
=JOIN(DISTINCT([Col 1]@row:[Col 4]@row), ", ")
Cheers,
John
Answers
-
A JOIN(DISTINCT()) function should work for your needs.
=JOIN(DISTINCT([Col 1]@row:[Col 4]@row), ", ")
Cheers,
John
-
Well, that did it! Thank you!!!
-
You're welcome. Glad to be of assistance.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!