splitting text to multiple columns

G

Guest

I have a list of people's names in a cell. Some examples are:
Mr. John Doe
Mrs. Jane S. Smith
Ms. Cynthia Jones

I need to split their titles, first name with Middle initial and Last name
into 3 seperate columns. Using a post on this site, I was able to extract
the title, but am unsure how to pull the other information.

Thanks for you help!
 
G

Guest

That would work except if the person has a middle initial listed, that needs
to stay with the first name, and not all people have a middle initial.

Thanks for the idea though.
 
D

David McRitchie

In addition you might take a look at SepTerm and SepLastTerm
in http://www.mvps.org/dmcritchie/excel/join.htm
it's a matter of what your data actually is and I think this would
fit your situation. You will have to join names like de Bruin
first though like de_Bruin and the remove the underscore later.

Insert two new columns to the right of the name
first use the SepTerm macro
then use the SepLastTerm macro on the 2nd column.
 
G

Guest

Thanks Dave. The macros worked perfectly!

David McRitchie said:
In addition you might take a look at SepTerm and SepLastTerm
in http://www.mvps.org/dmcritchie/excel/join.htm
it's a matter of what your data actually is and I think this would
fit your situation. You will have to join names like de Bruin
first though like de_Bruin and the remove the underscore later.

Insert two new columns to the right of the name
first use the SepTerm macro
then use the SepLastTerm macro on the 2nd column.
 

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