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.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!