Coping part of a cell content into a seperate cell

C

Caz H

Hi
I have two cells, one containing first and middle name and another one with
surname. I want to combine the first name and surname into a separate cell,
can you advise how I can just copy the first name and miss out the middle
name please??

Thanks

Caz
 
E

Eduardo

Hi,
I assume that the midle name is separated by a space from the first name and
is in column A and the last name in column B

=TRIM(LEFT(A2,FIND(" ",a2)-1))&" "&B2
 
S

stumac

Hi Caz, I assume not everyone will have a middle name, try something like:

=IF(ISERROR(FIND(" ",A1)),A1,LEFT(A1,FIND(" ",A1)-1))&" "&B1

Where the forename is in cell A1 and the surname is in cell A2.

Hth

Stu
 

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