Create user id fm LName, FName

S

sjs

I have a single column for people's full name (Last Name, First Name ex
Samson, Steve). I'd like to extract the person's first initial and last name
to create a user id (ssamson).

Any help for the function would be appreciated!

tks,
steve
 
R

Rick Rothstein \(MVP - VB\)

This will do what you asked...

=LOWER(LEFT(MID(A1,FIND(",",A1)+2,1)&A1,FIND(",",A1)))

But, I have a friend whose last name contains a space (Della Rossa)... if he
was in your list, I'm guessing you would not want the space to appear in
your user ID, so consider using this more universal modification to the
above formula...

=SUBSTITUTE(LOWER(LEFT(MID(A1,FIND(",",A1)+2,1)&
A1,FIND(",",A1)))," ","")

Rick
 
Top