Splitting a cell containing a name into two cells

fuzzyjon

New Member
Joined
May 12, 2006
Messages
21
Hello

I have a cell in my spreadsheet that contains a persons name.

I'd like to split the cell, or rather copy the firstname and surname, into two different cells. Obviously, the split point would be the space inbetween the two names but I can't work out how to do this!

I thought about using the e.g. =(LEFT A1,5) method, but the firstnames are all different lengths, so this would be no good.

Any help you could give me would be much appreciated!

Cheers,

Jon
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi, this seems to be most commonly posted solution to this kind of problem:

1) Select the names
2) On main menu choose Data>TextToColumns
2) Tick the box for delimited | Next | tick the box for Space | Next | Finish

That seems to do it.

EDIT: Be sure to have an empty column available to the right...or several in case there are some cells with more than one space. Check the results in case anything is split into more than two columns.
 
Upvote 0
Hi, Here's one way.
Code:
=+LEFT(A1,(FIND(" ",A1)))
=+RIGHT(A1,LEN(A1)-FIND(" ",A1))
Regards Mick
 
Upvote 0
Assuming that you just have Firstname Lastname

Here is a formula for the firstname:

=LEFT(A1,FIND(" ",A1)-1)

And the Lastname

=MID(A1,FIND(" ",A1)+1,255)
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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