Duplicate data in single field with delimiter

jimbomcmucka

New Member
Joined
Oct 11, 2022
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hi, I am hoping you guys can help and save me a load of time manually fixing some data.

I have a data field where multiple entries are stored in one cell using | as a delimiter. Which I have managed to handle so far using various substitutes and textjoin/textsplit. The problem that I am facing is that I have noticed many cells contain the same data multiple times. For example Cell A1 contains "123456|123456|123456|654321". Is there a way that I can show only unique results for this data set? So for the example before, just return "123456|654321".

Unfortunately, the data contained is not always the same length and can have any number of codes in each cell.

Hopefully I have given you enough to go on for some guidance, let me know if any further details can help!

Thanks,
James
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
How about
Fluff.xlsm
AB
1
2123456|123456|123456|654321123456|654321
Lists
Cell Formulas
RangeFormula
B2B2=TEXTJOIN("|",,UNIQUE(TEXTSPLIT(A2,"|"),1))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,416
Messages
6,119,386
Members
448,891
Latest member
tpierce

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top