Pull out Last Name

N

Nikki

Hello:

I have a name "Jane Doe" that I would like to pull the last name into a
separate column. I have used the mid((e3,1,find(" ",e3,1)-1 formula but it
only gives me Jane. I would like to pull Doe instead. Any help you can offer
is greatly appreciated.

I would like to avoid "Text to Columns" if possible because I will need to
copy the column into a separate worksheet and was hoping a formula could do
the trick.

Thanks to you all.
 
B

Bernard Liengme

=RIGHT(A1,LEN(A1)-FIND(" ",A1))
But I hope you have no middle initials: Winston S Churchill
 
S

Sean Timmons

If you don't have to worry about middle names or a double space in the name..

=RIGHT(E3,len(E3)-find(" ",E3))
 
S

Sean Timmons

If either first last or first mid last, then

=IF(ISERROR(RIGHT(E3,len(E3)-find(" ",E3,find("
",E3)+1))),RIGHT(E3,len(E3)-find(" ",E3)),RIGHT(E3,len(E3)-find(" ",E3,find("
",E3)+1))))

would account for both.
 
R

Ron Rosenfeld

Hello:

I have a name "Jane Doe" that I would like to pull the last name into a
separate column. I have used the mid((e3,1,find(" ",e3,1)-1 formula but it
only gives me Jane. I would like to pull Doe instead. Any help you can offer
is greatly appreciated.

I would like to avoid "Text to Columns" if possible because I will need to
copy the column into a separate worksheet and was hoping a formula could do
the trick.

Thanks to you all.


And just another way of extracting the last word in a string:

=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))

--ron
 

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