PC Review


Reply
Thread Tools Rate Thread

Create user id fm LName, FName

 
 
sjs
Guest
Posts: n/a
 
      1st Jul 2008
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
 
Reply With Quote
 
 
 
 
willwonka
Guest
Posts: n/a
 
      1st Jul 2008
=LOWER(MID(A1,FIND(",",A1,1)+2,1)&LEFT(A1,FIND(",",A1,1)-1))



On Jul 1, 1:34*pm, sjs <s...@discussions.microsoft.com> wrote:
> 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 lastname
> to create a user id (ssamson).
>
> Any help for the function would be appreciated!
>
> tks,
> steve


 
Reply With Quote
 
Teethless mama
Guest
Posts: n/a
 
      1st Jul 2008
=LOWER(MID(A1,FIND(" ",A1)+1,1)&LEFT(A1,FIND(",",A1)-1))


"sjs" wrote:

> 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

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      1st Jul 2008
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


"sjs" <(E-Mail Removed)> wrote in message
news60B901E-5C27-4934-9B22-(E-Mail Removed)...
>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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Repost-Please help-Search Lname and Fname MN Microsoft Access Form Coding 0 20th Nov 2008 04:30 PM
Re: split into lname,fname,mi fredg Microsoft Access Queries 2 13th Jan 2007 04:45 AM
Re: split into lname,fname,mi Douglas J. Steele Microsoft Access Queries 0 13th Jan 2007 12:54 AM
change lname, fname to fname last name =?Utf-8?B?QWwgV2lsbHM=?= Microsoft Excel Misc 4 6th Jun 2005 06:18 AM
Separating name field into FNAME, MI, LNAME =?Utf-8?B?amF5Y2VlamF5?= Microsoft Access Getting Started 2 7th Mar 2004 04:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:34 AM.