Finding initials from a full name

H

HS

I have a cell that contains someone's full name
"John Doe" I need to know what function or formula I
could create to populate another cell with the person's
initials "JD".
 
B

Bob Phillips

This works in your example, but may not work in all circumstances.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
N

Norman Harker

Hi HS!

This covers from 1 name up to three names:

=IF(LEN(A14)-LEN(SUBSTITUTE(A14,"
",""))=0,LEFT(A14,1),IF(LEN(A14)-LEN(SUBSTITUTE(A14,"
",""))=1,LEFT(A14,1)&MID(A14,FIND("
",A14)+1,1),IF(LEN(A14)-LEN(SUBSTITUTE(A14,"
",""))=2,LEFT(A14,1)&MID(A14,FIND(" ",A14)+1,1)&MID(RIGHT(A14,FIND("
",A14)-1),FIND(" ",RIGHT(A14,FIND(" ",A14))),1))))

If you only ever have two names:

=LEFT(A14,1)&MID(A14,FIND(" ",A14)+1,1)


--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 

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