Trim cell contents

  • Thread starter Thread starter Kim C via OfficeKB.com
  • Start date 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?
 
Hi Kim,

Try this:

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

and

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

Regards,
KL
 

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

Back
Top