how to separate text with commas in it

compman

New Member
Joined
Aug 26, 2002
Messages
9
How do I spearate first and last names spearted by a comma? I have 21,000+ names in our database with last name,first name. I need to break out the names into 2 separate columns. Can anyone help me.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Use Data>Text to Column. Select the delimitor option and check the comma box. Just follow the wizard.
This message was edited by lenze on 2002-10-02 13:25
 
Upvote 0
TO:lenze
MrExcel MVP

Thank you very much. What part of Montana are you from? I used to live in Ennis as a kid.
 
Upvote 0
Hi.

I used the Data, Text to Columns, with a space, but often get asked what to do when the name is complex, such as Last Name = Da Silva or Van De Kamp (not simple like Smith). What do you do then. I have seen a formula for this before. Thank you.
 
Upvote 0
Formula for splitting firstname and lastname
=LEFT(B5,(FIND(" ",B5)))
=RIGHT(B6,(LEN(B6)-(FIND(" ",B6))))
 
Upvote 0

Forum statistics

Threads
1,218,539
Messages
6,143,080
Members
450,461
Latest member
Bosavon

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