Find duplicate values and delete them in a single cell

Amirah

New Member
Joined
Aug 8, 2016
Messages
42
Hi guys

I'm trying to find duplicate values (precisely duplicate email) in a single cell. I've got numerous of data that need to be clean by removing duplicates in a single cell. Then, i want it to be deleted directly. Appreciate if there is a formula/steps that can be use to solve this problem. Macro is possible but I'm focusing on other approach right now.

Duplicate emails.PNG
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
What version of Excel are you using & on what platform?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
If the lower table solution works for you then Power Query can do this.

Book3
A
1Email
2ABC123@gmail.com; ABC123@gmail.com
3Qweer.098@yahoo.com; Poiu.123@gmail.com ;Poiu.123@gmail.com; Zxc.098 @gmail.com
4
5
6Email
7ABC123@gmail.com
8Qweer.098@yahoo.com
9Poiu.123@gmail.com
10Zxc.098 @gmail.com
Sheet2


the Mcode to make this happen follows. In PQ, you can split your data and have it go to rows instead of columns. Then you can delete the duplicates.

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(Source, {{"Email", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Email"),
    #"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Email", type text}}),
    #"Trimmed Text" = Table.TransformColumns(#"Changed Type",{{"Email", Text.Trim, type text}}),
    #"Removed Duplicates" = Table.Distinct(#"Trimmed Text")
in
    #"Removed Duplicates"
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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