Splitting Cells

jo.stanley

Board Regular
Joined
Apr 13, 2004
Messages
177
Hi

Is there a way of splitting one cell and its contents into a number of cells.

For Example

A1 = Mr John Smith

split this to

A1 = Mr
A2 = John
A3 = Smith

Thanks
Jo
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Highlight the entire column A, click on Data menu, Text to columns, check Delimited, next, choose Space as delimiters, and Finish.
 
Upvote 0
Go to Data>TextToColumns and select "space" as the delimiter (make sure you have at least 2 blank columns to the right of your data)
 
Upvote 0
Or if you want to use formulas (this will only work if there's 3 words):

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

=MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1))

=RIGHT(A1,LEN(A1)-FIND(" ",A1,FIND(" ",A1)+1))
 
Upvote 0
I bumped into this one through search, what if there was 5 words, what would you use then?
 
Upvote 0
Ladbroke

Assuming you don't want to use TextToColumns (which would function perfectly fine) then a possible formula approach might be:

Code:
=TRIM(MID(SUBSTITUTE(" "&TRIM($A1)," ",REPT(" ",100)),COLUMNS($A:A)*100+(SUMPRODUCT(LEN($A1:A1))-LEN($A1)),100))

in B1 and copied across.
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,338
Members
449,155
Latest member
ravioli44

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