Seperating names into 2 columns

dak11

New Member
Joined
Oct 18, 2004
Messages
18
I have an excel sheet which has peoples names which I need to separate into 2 columns. With just 2 names is simple in that I can use the text to columns feature. The problem I'm having is some of the data is 2 people (husband and wife) where an & is used.

Example

John Doe
Jan Doe
John & Jane Doe
Bob Day
Bob & Sarah Day

Is there an easy way for me to put the last names (last word in each cell) into a column and the from part into a different one so that single people and partners are all listed in one column?
 

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.
Hi Dak11

First you can use

Text-to-column | Delimited | select Other and inside the box type & | Next | Finish

After this process you will have to repeat the process with space as delimiter..
 
Upvote 0
Thanks vds.

This doesn't seem to work like I need it to as it's separating all the names into their own columns.

Based on the above example.

I need the below in one column

John
Jan
John & Jane
Bob
Bob & Sarah

And the last names in another
 
Upvote 0
I have an excel sheet which has peoples names which I need to separate into 2 columns. With just 2 names is simple in that I can use the text to columns feature. The problem I'm having is some of the data is 2 people (husband and wife) where an & is used.

Example

John Doe
Jan Doe
John & Jane Doe
Bob Day
Bob & Sarah Day

Is there an easy way for me to put the last names (last word in each cell) into a column and the from part into a different one so that single people and partners are all listed in one column?
Select the column and then use Excel's Replace dialog box to replace space/ampersand/space with ampersand, then use Text To Columns to split the data using a space as the delimiter, then select the first names column and replace the ampersand with space/ampersand/space.
 
Upvote 0
In C1,

=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",255)),255))

In B1,

=TRIM(SUBSTITUTE(A1,C1,""))

Where A1 is your data,

Note that C1 is dependent on B1, so you should have column C drag down first and then column B
 
Upvote 0

Forum statistics

Threads
1,226,227
Messages
6,189,748
Members
453,567
Latest member
kentbarbie

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