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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,836
Office Version
  1. 2019
Platform
  1. Windows
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

MickG

MrExcel MVP
Joined
Jan 9, 2008
Messages
14,841
Hi, Here's one way.
Code:
=+LEFT(A1,(FIND(" ",A1)))
=+RIGHT(A1,LEN(A1)-FIND(" ",A1))
Regards Mick
 
Upvote 0

BAlGaInTl

Well-known Member
Joined
May 7, 2003
Messages
1,082
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,191,671
Messages
5,987,956
Members
440,121
Latest member
eravella

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
Top