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
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!