+ Reply to Thread
Results 1 to 3 of 3

Parsing Text ( Last Name, First Name )

  1. #1
    Forum Contributor
    Join Date
    03-30-2008
    Posts
    121

    Parsing Text ( Last Name, First Name )

    I have a list of names and titles as follows:

    Gray Raymond E

    I would like to parse the information with last name
    ( Gray ) in one field and the remaining name ( Raymond E )
    in a separate field.

    Last name and First name are varied in length throughout the list.

    Is it possible to parse everything to the left or right of
    the space?

    I use the following formulas to parse street name and number,
    however, it doesn't seem to work with text.

    B1: =--(0&LEFT(A1&" ",SEARCH(" ",A1&"0 ")-1))

    C1: =TRIM(SUBSTITUTE(A1,B1,""))


    Thanks

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    All sort of useful formulas here, including first/last names:

    http://www.cpearson.com/excel/excelF.htm
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-30-2008
    Location
    Vermont, USA
    MS-Off Ver
    Excel 2003
    Posts
    64
    this for the last name:

    =LEFT(A2,FIND(" ",A2,1)-1)

    this for the rest:

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

    should be fine as long as there are no spaces within the last name (hyphens are OK)

+ 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