Separate names into columns

C

Carter

I have a column that has first and last name or it may have first, middle and
last name. I need to know how to pull the first name in a separate column
and also pull the last name into another column. I need to know how to
ignore the middle name, if applicable.
 
T

Teethless mama

Try this:

First name:
=LEFT(A1,FIND(" ",A1)-1)

Last name:
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))
 
J

Jacob Skaria

Bit lengthy to handle entries with first names alone...

First name ()
=LEFT(A12,FIND(" ",A12 & " ")-1)

Last name
=IF(ISERROR(FIND(" ",A12)),"",TRIM(RIGHT(SUBSTITUTE(A12," ",REPT("
",99)),99)))

If this post helps click Yes
 
C

Carter

This worked perfectly. Thanks! Shelia

Teethless mama said:
Try this:

First name:
=LEFT(A1,FIND(" ",A1)-1)

Last name:
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))
 

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