+ Reply to Thread
Results 1 to 5 of 5

Separating first and last names

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Separating first and last names

    Good morning,

    I am using the following to separate SMITH, JOHN (B2) into SMITH (C2) and JOHN (D2):

    =RIGHT(B2,LEN(B2)-FIND(", ",B2,1))

    The problem that I am encountering is that D2 contains the leading space (after the comma) from the original entry. I tried to include that space in the FIND(", ",B2,1)) part of te formula, but it is not working. Can anyone help? Thank you

  2. #2
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Separating first and last names

    Never mind....changed the comma to a space and that solved the problem.

  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
    53,048

    Re: Separating first and last names

    Try this...
    =mid(B2,FIND(",",B2,1)+1,99)
    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
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Separating first and last names

    Thank you sir

  5. #5
    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
    53,048

    Re: Separating first and last names

    Happy to help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Separating names
    By plato in forum Excel General
    Replies: 6
    Last Post: 01-15-2012, 06:13 AM
  2. separating names
    By plato in forum Excel General
    Replies: 2
    Last Post: 11-15-2011, 07:04 AM
  3. Need help separating names
    By Vizy in forum Excel General
    Replies: 5
    Last Post: 07-13-2011, 10:29 PM
  4. Separating first & last names using formulas
    By dkl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2008, 04:45 AM
  5. Separating Names in a Cell
    By Motaad in forum Excel General
    Replies: 3
    Last Post: 08-17-2006, 11:26 AM
  6. separating names
    By mikeyVo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2006, 11:50 AM
  7. Separating names from one cell
    By mlf in forum Excel General
    Replies: 3
    Last Post: 12-02-2005, 01:55 PM
  8. [SOLVED] Separating names
    By Danno in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-30-2005, 09:05 PM

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