+ Reply to Thread
Results 1 to 4 of 4

I have no idea how to do this one

  1. #1
    Registered User
    Join Date
    09-08-2006
    Posts
    6

    I have no idea how to do this one

    I have a worksheet and in one of the columns I have a list of names like this First Name the < sign and then the Last Name. Example ( JIMMY D<PRICE ).

    Is there a way to extract the last names from each cell in this column and place it in a new column so I will have a column with the first name and a column with the last name instead of one column with the whole name?

    Thanks
    Waynesworld

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You could try

    Data , Text to Columns , delimiter , other and insert the > symbol.This will leave first name and intital in Column and insert surname in next Colmn

    or use a helper column and enter


    Surname
    =RIGHT(A1,LEN(A1)-FIND("<",A1,1))

    First Name
    =LEFT(A1,LEN(A1)-FIND("<",A1,1))

    VBA Noob

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by Waynesworld
    I have a worksheet and in one of the columns I have a list of names like this First Name the < sign and then the Last Name. Example ( JIMMY D<PRICE ).

    Is there a way to extract the last names from each cell in this column and place it in a new column so I will have a column with the first name and a column with the last name instead of one column with the whole name?

    Thanks
    Waynesworld
    Hi Waynesworld,

    If data is in A1, then in B1

    =LEFT(A1,SEARCH("<",A1,1)-1)

    then in C1

    =MID(A1,SEARCH("<",A1,1)+1,10)

    oldchippy

  4. #4
    Registered User
    Join Date
    09-08-2006
    Posts
    6
    Thanks for the help. I really don't know how some of you know all of this. I am truly amazed.

    Thanks
    Waynesworld

+ 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