+ Reply to Thread
Results 1 to 5 of 5

Two name comma separated in single cell to "email address"

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Talking Two name comma separated in single cell to "email address"

    I have this in a single cell "lastname, firstname"

    Eg:

    "smith, john"

    *Note there is a a SPACE between the comma and second work in the cell "smith, john"


    I'm looking for these outputs:

    [email protected] or [email protected]

    first letter (of firstname)[email protected] or [email protected]

    Any help would be great.


    Thanks.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Two name comma separated in single cell to "email address"

    look at row 15 for the formulas
    Attached Files Attached Files

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Two name comma separated in single cell to "email address"

    Hi and welcome to the forum

    for the full name, try this...
    =MID(A1,SEARCH(",",A1,1)+2,99)&"."&LEFT(A1,SEARCH(",",A1,1)-1)&"@email.com"
    fir just the 1st initial, try this...
    =MID(A1,SEARCH(",",A1,1)+2,1)&LEFT(A1,SEARCH(",",A1,1)-1)&"@email.com"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-06-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Two name comma separated in single cell to "email address"

    There is an issue after A1. In A2 down it ends up as john [email protected] and j [email protected].

  5. #5
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: Two name comma separated in single cell to "email address"

    Try this :
    Please Login or Register  to view this content.
    Click (*) if you received helpful response.

    Regards,
    David

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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