View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default Pull out Last Name

On Thu, 16 Oct 2008 12:06:41 -0700, Nikki
wrote:

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