+ Reply to Thread
Results 1 to 4 of 4

Taking the first letter of the first name and last name ...

  1. #1
    Registered User
    Join Date
    11-02-2010
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2007
    Posts
    99

    Taking the first letter of the first name and last name ...

    I need a text formula that take the name in cell A2 (John Smith) and a number in cell B2 1234 and combine them in cell c2 JS1234

    Essentually taking the First letter of the first and last name and the number and combining them.

    Thanks

    JP
    Last edited by CharterJP; 12-08-2010 at 03:05 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Taking the first letter of the first name and last name ...

    Numerous possibilities (pending consistency of name convention of course)

    Based on the above:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581

    Re: Taking the first letter of the first name and last name ...

    Hi,

    Try the following:

    PHP Code: 
    =UPPER(LEFT(A2,1))&MID(A2,FIND("~",SUBSTITUTE(A2," ","~",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))+1,1)&B2 
    This will only fail if the person's name is a single name. It will work to take the last name, so if you have John Van Dermeer ... it would take JD.

    S
    ------------------------------------------------------------------------------------------
    If you need no more help on the current problem, please mark it as "Solved". It saves time
    as many of us will look at threads if they are not marked as "Solved".

    The instructions on how to do this are found in the Forum Rules thread that is at top of every forum.
    (Currently you'll have to look at point #9.)
    ------------------------------------------------------------------------------------------

  4. #4
    Registered User
    Join Date
    11-02-2010
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Taking the first letter of the first name and last name ...

    Thanks, Works great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1