Splitting Cells

G

Guest

Guest
Can anyone tell me how I can split items in a cell which are seperated by a space? i.e John Smith. I want John in one cell Smith in the other. at the moment they are in one cell.

Thanks
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
thats pretty simple.. All you have to do is nothing but select the cell and go to Data menu. Here, click on the option "Text to Column". Proceed with the wizard by selecting Delimeters. And, specify empty space as the delimeter in the wizard. This will let you split the cell as you require.

Have a nice day! :)

Krish.
 
Upvote 0
On 2002-03-15 02:44, Anonymous wrote:
Can anyone tell me how I can split items in a cell which are seperated by a space? i.e John Smith. I want John in one cell Smith in the other. at the moment they are in one cell.

Thanks

Assuming name in A1 then in B1 formula =
=RIGHT(A1,LEN(A1)-SEARCH("@",SUBSTITUTE(A1," ","@",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))

Gets the Last Name

In C1 for 1st Name =
=LEFT(A1,LEN(A1)-LEN(B1)-1)

Ivan
 
Upvote 0
On 2002-03-15 02:44, Anonymous wrote:
Can anyone tell me how I can split items in a cell which are seperated by a space? i.e John Smith. I want John in one cell Smith in the other. at the moment they are in one cell.

Thanks

In B2 enter:

=SUBSTITUTE(A2,C2,"")

In C2 enter:

=RIGHT(A2,LEN(A2)-SEARCH("@",SUBSTITUTE(A2," ","@",LEN(A2)-LEN(SUBSTITUTE(A2," ","")))))

where A2 houses a target name.

Or use Data|Text to Columns
This message was edited by Aladin Akyurek on 2002-03-15 03:06
 
Upvote 0
To get even shorter you can use:

=REPLACE(A1,FIND(" ",A1),LEN(A1),"") In cell B1

=TRIM(SUBSTITUTE(A1,B1,"")) In cell C1

This assumes the name is in cell A1
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

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