+ Reply to Thread
Results 1 to 4 of 4

String manipulation xxx/xxxx/xxxx//

  1. #1
    Registered User
    Join Date
    04-13-2011
    Location
    canton, oh
    MS-Off Ver
    Excel 2003
    Posts
    1

    String manipulation xxx/xxxx/xxxx//

    I have a char string 18978/309/106// that I want to extract each set of numbers. They differ in length. To get the first one was easy (formula =LEFT(A1, FIND("/",A1)-1)

    I am having trouble getting the 2nd and third if anyone can help that would be great, thanks
    Last edited by mikedu; 04-13-2011 at 04:14 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,604

    Re: String manipulation xxx/xxxx/xxxx//

    Select column then Text to data -> Delimited and use / as delimiter

  3. #3
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: String manipulation xxx/xxxx/xxxx//

    zbor has it right......it will default to "," so uncheck that and check "other" then type a "/" in the box beside "other", that should give you nothing but numbers in seperate columns.
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: String manipulation xxx/xxxx/xxxx//

    If you still want formulae:

    =MID(A2,FIND("/",A2)+1,FIND("/",A2,FIND("/",A2)+1)-FIND("/",A2)-1)

    =MID(A2,FIND("/",A2,1+FIND("/",A2))+1,FIND("/",A2,1+FIND("/",A2,1+FIND("/",A2)+1))-FIND("/",A2,1+FIND("/",A2))-1)


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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