Trim cell contents

  • Thread starter Kim C via OfficeKB.com
  • Start date
K

Kim C via OfficeKB.com

I have a long list of names in Excel where the first and last name are in one
cell. I want to split the names with first name in one cell and last name in
another cell. I know how to use the "Left" and "right" functions but then I
have to use a different formula for each name since each name is a different
length. Is there an easier way to do this?
 
K

KL

Hi Kim,

Try this:

=LEFT(TRIM(A1),FIND(" ",TRIM(A1))-1)

and

=MID(TRIM(A1),FIND(" ",TRIM(A1))+1,LEN(TRIM(A1)))

Regards,
KL
 
K

Kim C via OfficeKB.com

Top