Can I divide a column at the first "space" occurance

J

jv

I have a Column that is currently set up as follows:

jones john & sharon

I want to divide the column and make two colums like:

Column one = Jones
Column Two= & Sharon
 
J

James

You can use Text to Columns to do this. Go to Data - Text to Columns and
follow the instructions

James
 
I

ilanr01

Assuming your text is in A1
In B1 enter =LEFT(A1,FIND("&",A1,1)-1) to get jones john
In C1 enter =MID(A1,FIND("&",A1,1),LEN(A1)-FIND("&",A1,1)+1) to get &
Sharon
Ilan
 
M

Myrna Larson

If you use Data/Text to Columns, with the delimiter as "&". That will give you

"Jones John " in column 1 and " Sharon" in column 2

But that leaves you leading and trailing spaces. If you first use Search and
Replace to replace " & " with "&", then Text to Columns, that will take care
of that issue


John would stay in the first column

Myrna Larson said:
And what has happened to "John"? Eliminated?

 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top