+ Reply to Thread
Results 1 to 4 of 4

extract string after nth string (special character)

  1. #1
    Forum Contributor
    Join Date
    02-18-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    extract string after nth string (special character)

    Hi. Please help on extracting strings after the square character (alt+0141). On B1, I would like to put formula that will output the string after 2nd  character and between the next square character(alt + 0141) as shown below. B1 should have output : RES



    A1: CTPRSRES13.88



    Thank you

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: extract string after nth string (special character)

    One way:

    =TRIM(MID(SUBSTITUTE(SUBSTITUTE(A1,CHAR(141),
    REPT(" ",255),3),CHAR(141),REPT(" ",255),2),255,255))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    02-18-2013
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: extract string after nth string (special character)

    thank you very much. It worked perfectly

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: extract string after nth string (special character)

    You're welcome. Thanks for the feedback!

+ 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