+ Reply to Thread
Results 1 to 4 of 4

Text formula for names in 2 column Last and First Name

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    57

    Text formula for names in 2 column Last and First Name

    Hello, I'm having problem with names in a column A for example

    I need to break up the name into last name - column A and first name in column B

    Smith John
    Jones Brown Randy

    I need the Name in 2 columns

    column A - Smith column B - John

    column A - Jones Brown column B - Randy

    So the logic is if 3 names strings in column A the first 2 strings = Last name and the last name string = first name
    if on 2 name strings in column A then only first and last name (this I can do) but it's the 3 name strings in 1 column that is the problem.



    Thanks for any suggestion or where to point me to an example

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Text formula for names in 2 column Last and First Name

    There are likely easier ways to do this, but what the heck...

    If your list of names is in column E (E1 and down), put the first formula in A1, and the second formula in B1, and fill both down:

    A1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    B1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    -Moo

  3. #3
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Text formula for names in 2 column Last and First Name

    This is technique I have seen before.

    To find the last name (let's say it is in C1):
    =TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),100))

    Then to find the first name(s) (in B1):
    =LEFT(A1,LEN(A1)-LEN(C1))
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  4. #4
    Registered User
    Join Date
    06-07-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    57

    Re: Text formula for names in 2 column Last and First Name

    Thanks it works

+ 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