Split Contact Name

Mohanmoni

New Member
Joined
Mar 9, 2016
Messages
15
Hi,

I am looking for formula that can split contact name properly. I have 1,000+ Contact names like below..

Jennifer Monroe Monroe, Jennifer
Ali Talai Talai, Ali
Kim Millman Millman, Kim
Stephen E Wood Wood, Stephen E

In above example person name is repeated 2 times with ",". Now I want proper name by splitting this. Please suggest.

Thank You,
Mohan S
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

It might be a good idea to let us know exactly what you mean by proper name, is it Jennifer Monroe or Monroe, Jennifer that you want?
 
Upvote 0
To get First Name Last Name use this formula...

=TRIM(LEFT(A1,LEN(A1)/2))

To get Last Name, First Name use this formula...

=TRIM(RIGHT(A1,LEN(A1)/2))
 
Upvote 0
ARRAY formula in B1 then drag down.

Code:
=RIGHT($A1,LEN($A1)-LARGE(IF(MID($A1,ROW(INDIRECT("$1:$"&LEN(A1))),1)=" ",ROW(INDIRECT("$1:$"&LEN(A1))),""),1))&", "&LEFT($A1,LARGE(IF(MID($A1,ROW(INDIRECT("$1:$"&LEN(A1))),1)=" ",ROW(INDIRECT("$1:$"&LEN(A1))),""),1)-1)
ARRAY formula is used


To enter ARRAY formula
Paste the formula
Press F2
Press Ctrl+Shift+Enter keys together.
formula will be covered with{} brackets by excel.
 
Upvote 0
To get First Name Last Name use this formula...

=TRIM(LEFT(A1,LEN(A1)/2))

To get Last Name, First Name use this formula...

=TRIM(RIGHT(A1,LEN(A1)/2))
In thinking about it a little more, we can simplify these formulas slightly...

To get First Name Last Name use this formula...

=LEFT(A1,LEN(A1)/2-1)

To get Last Name, First Name use this formula...

=RIGHT(A1,LEN(A1)/2)
 
Upvote 0
A non ARRAY approach

=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",200)),200))&", "&TRIM(SUBSTITUTE(A1,TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",200)),200)),""))
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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