how to split words and find duplicate?

ajishkumar

New Member
Joined
Dec 8, 2009
Messages
15
I have a database of 300k and is organized in:

Alex
Alexander robert
robert - karen,

Need to separate it in firstname and second name

After doing this, I need to remove the duplicate email IDs from the excel sheet.

Is there any formula to find and remove duplicates. I am using excel 2007

Thanks for your help.

Ajish
<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
it is quite clear from the instruction. I have put three sample names.
<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 
Upvote 0
Hi Ajish,

To separate names, try

In B1:

=LEFT(A1,FIND(" ",TRIM(SUBSTITUTE(A1,"-"," "))&" ")-1)

In C1:

=MID(TRIM(SUBSTITUTE(A1,"-"," ")),FIND(" ",TRIM(SUBSTITUTE(A1,"-"," "))&" ")+1,255)

To findout the duplicates, try COUNTIF

=COUNTIF(eMailRange,eMailID)

HTH
 
Upvote 0
thanks kris. let me test it.

<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 
Upvote 0
the excel did not extract the data. The formulas did not work for me.

if anyone has any email Id, i will send the excel file.

Thanks,
Ajish
<input id="gwProxy" type="hidden"><!--Session data--><input *******="jsCall();" id="jsProxy" type="hidden">
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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