+ Reply to Thread
Results 1 to 7 of 7

Extract text after some common specific string

  1. #1
    Registered User
    Join Date
    07-31-2019
    Location
    HONG KONG
    MS-Off Ver
    EXCEL 2016
    Posts
    48

    Extract text after some common specific string

    HI
    i want a formula. see attached
    i want to extract text after some common specific string.

    i want to return the quantites and the text after some common specific string. thanks a lot.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,451

    Re: Extract text after some common specific string

    Clear as mud. Please complete your example. Where is your source data?

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,238

    Re: Extract text after some common specific string

    I don't disagree that this is unclear, but I believe the source data is the data in A1 and the result data is the list below it. Dreadful data gathering scheme!!!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    07-31-2019
    Location
    HONG KONG
    MS-Off Ver
    EXCEL 2016
    Posts
    48

    Re: Extract text after some common specific string

    Hi Pepe and Ali,
    The data source is a long text in cell A1. And want to extract the text which shows in the desired results.
    I did one formula by myself but it is not working. And it is difficult to extract the text as desired results.
    Thanks a lot.
    Last edited by wongsiuon; 10-24-2019 at 07:06 AM.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Extract text after some common specific string

    I don't see any logical pattern here. So I can't see how to get to your desired result.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Extract text after some common specific string

    Formula solution for Excel 2013 or above for the using of FILTERXML function

    1] In order to avoid a long repeated split data formula, try to create a define name.

    Select D4 >> Define Name >>

    >> Name : SplitSpecData

    >> Refers to : =FILTERXML("<a><b>"&SUBSTITUTE(SUBSTITUTE(A$1,$E4,"<r/>")," ","</b><b>")&"</b></a>","//b[r]")

    >> OK

    Then,

    2] In D4, formula copied down :

    =IFERROR(IF(1-ISERR(FIND(")",SplitSpecData)),MID(SplitSpecData,FIND(")",SplitSpecData)+1,99),SplitSpecData),E4)

    3] In C4, formula copied down :

    =IF(D4="","",LEFT(A$1,FIND(" ",A$1)-1))

    Regards
    Bosco
    Attached Files Attached Files
    Last edited by Bosco; 10-24-2019 at 08:17 AM.

  7. #7
    Registered User
    Join Date
    07-31-2019
    Location
    HONG KONG
    MS-Off Ver
    EXCEL 2016
    Posts
    48

    Re: Extract text after some common specific string

    WOW, Bosco, you are genius.. it works...thanks a lot.
    Last edited by wongsiuon; 10-25-2019 at 02:31 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Extract numbers after a specific text from a text string
    By robertovm28 in forum Excel General
    Replies: 7
    Last Post: 04-23-2019, 09:53 PM
  2. Extract Specific Text From String
    By dawsexcel in forum Excel General
    Replies: 3
    Last Post: 07-13-2016, 01:44 PM
  3. Extract specific numbers from a string of text
    By Galwaygirl13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-19-2012, 03:22 PM
  4. Extract specific word from a text string
    By krjoshi in forum Excel General
    Replies: 10
    Last Post: 01-19-2012, 02:00 PM
  5. Replies: 11
    Last Post: 09-29-2011, 04:42 AM
  6. Replies: 5
    Last Post: 05-03-2011, 09:35 AM
  7. [SOLVED] Extract specific value from a long text string
    By Dinesh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2006, 11:30 PM

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