+ Reply to Thread
Results 1 to 7 of 7

Seperate Cell Information (lastname, firstname)

  1. #1
    Registered User
    Join Date
    06-28-2005
    Posts
    6

    Seperate Cell Information (lastname, firstname)

    I have a spreadsheet with a column that contains names. They are all in this format:

    lastname, firstname
    example: WASHINGTON, GEORGE

    All the individuals have e-mail addresses based on their names. They are:

    firstname.lastname@email.com
    [email protected]

    It's not really "@email.com" but I don't want to mention the company name. How would I set this up in another column? Or, how would I break apart the names so the first names are in one column and the last name is in another? I would then be able to combine them with the @email.com after them. Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    06-30-2005
    Location
    Verwood, Dorset, England
    MS-Off Ver
    Excel 2000
    Posts
    479
    If the name Washington, George is in cell A1, to extract the surname into cell b1 enter the following formula

    =LEFT(A1,FIND("^^",SUBSTITUTE(A1," ","^^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-1)

    to extract the First name into cell c1 enter the following formula

    =RIGHT(A1,LEN(A1)-FIND("^^",SUBSTITUTE(A1," ","^^",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))

    Hope this helps

    To re join the names you can use the function concatenate

  3. #3
    Registered User
    Join Date
    06-28-2005
    Posts
    6
    Actually, shortly after posting this I checked the "Office on the Web" site. They suggested the "Text to Columns..." option under "Data". It worked for seperating them out. Then I just combined them using the &"."& function. Thanks anyways!

  4. #4
    Zack Barresse
    Guest

    Re: Seperate Cell Information (lastname, firstname)

    Hello,

    The answer to your quandry (assuming the name are in column A) ...

    First Name:
    =RIGHT(A1,LEN(A1)-FIND(" ",A1,1)+1)

    Last Name:
    =LEFT(A1,FIND(",",A1,1)-1)

    Although you could do this with one formula:

    =RIGHT(A1,LEN(A1)-FIND("
    ",A1,1)+1)&"."&LEFT(A1,FIND(",",A1,1)-1)&"@email.com"

    HTH

    --
    Regards,
    Zack Barresse, aka firefytr


    "JFALK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a spreadsheet with a column that contains names. They are all in
    > this format:
    >
    > -lastname-, -firstname-
    > example: WASHINGTON, GEORGE
    >
    > All the individuals have e-mail addresses based on their names. They
    > are:
    >
    > [email protected]
    > [email protected]
    >
    > It's not really "@email.com" but I don't want to mention the company
    > name. How would I set this up in another column? Or, how would I break
    > apart the names so the first names are in one column and the last name
    > is in another? I would then be able to combine them with the @email.com
    > after them. Thanks!
    >
    >
    > --
    > JFALK
    > ------------------------------------------------------------------------
    > JFALK's Profile:
    > http://www.excelforum.com/member.php...o&userid=24728
    > View this thread: http://www.excelforum.com/showthread...hreadid=393437
    >




  5. #5
    KL
    Guest

    Re: Seperate Cell Information (lastname, firstname)

    Hi JFALK,

    Try this formula:

    =TRIM(LEFT(A1,FIND(",",A1)-1))&"."&TRIM(MID(A1,FIND(",",A1)+1,LEN(A1)))&"@email.com"

    Regards,
    KL


    "JFALK" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a spreadsheet with a column that contains names. They are all in
    > this format:
    >
    > -lastname-, -firstname-
    > example: WASHINGTON, GEORGE
    >
    > All the individuals have e-mail addresses based on their names. They
    > are:
    >
    > [email protected]
    > [email protected]
    >
    > It's not really "@email.com" but I don't want to mention the company
    > name. How would I set this up in another column? Or, how would I break
    > apart the names so the first names are in one column and the last name
    > is in another? I would then be able to combine them with the @email.com
    > after them. Thanks!
    >
    >
    > --
    > JFALK
    > ------------------------------------------------------------------------
    > JFALK's Profile:
    > http://www.excelforum.com/member.php...o&userid=24728
    > View this thread: http://www.excelforum.com/showthread...hreadid=393437
    >




  6. #6
    drlogarithm
    Guest

    Re: Seperate Cell Information (lastname, firstname)

    Separate the names using Data/Text to Columns. Select Delimited. The
    delimiters are a space and a comma (unless there are no spaces between
    the the comma and the first name). Be sure to select your
    'Destination' or else the separated names will replace your highlighted
    names.


  7. #7
    KL
    Guest

    Re: Seperate Cell Information (lastname, firstname)

    sorry, meant

    =TRIM(MID(A1,FIND(",",A1)+1,LEN(A1)))&"."&TRIM(LEFT(A1,FIND(",",A1)-1))&"@email.com"

    KL


    "KL" <[email protected]> wrote in message
    news:[email protected]...
    > Hi JFALK,
    >
    > Try this formula:
    >
    > =TRIM(LEFT(A1,FIND(",",A1)-1))&"."&TRIM(MID(A1,FIND(",",A1)+1,LEN(A1)))&"@email.com"
    >
    > Regards,
    > KL
    >
    >
    > "JFALK" <[email protected]> wrote in
    > message news:[email protected]...
    >>
    >> I have a spreadsheet with a column that contains names. They are all in
    >> this format:
    >>
    >> -lastname-, -firstname-
    >> example: WASHINGTON, GEORGE
    >>
    >> All the individuals have e-mail addresses based on their names. They
    >> are:
    >>
    >> [email protected]
    >> [email protected]
    >>
    >> It's not really "@email.com" but I don't want to mention the company
    >> name. How would I set this up in another column? Or, how would I break
    >> apart the names so the first names are in one column and the last name
    >> is in another? I would then be able to combine them with the @email.com
    >> after them. Thanks!
    >>
    >>
    >> --
    >> JFALK
    >> ------------------------------------------------------------------------
    >> JFALK's Profile:
    >> http://www.excelforum.com/member.php...o&userid=24728
    >> View this thread:
    >> http://www.excelforum.com/showthread...hreadid=393437
    >>

    >
    >




+ 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