+ Reply to Thread
Results 1 to 5 of 5

extract text between 2 different characters

  1. #1
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    extract text between 2 different characters

    Hi I cant seem to get this formula right, being trying hard enough....

    in column A starting A2 i have a lot of rows of data such as this in the attachment

    I wish to extract 4 columns data starting in B2 which I have solvedthe first column in B2
    But I am stuck with rest of extraction which involves the Mid function
    as I said I got B2 solved

    I managed to extract the first extraction which has column header Horse
    But I cant solve the rest of the formulas for racno, Track and tabno
    Any help will be greatly welcome
    Graham
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: extract text between 2 different characters

    Please try at
    C2
    =TRIM(MID(A2,FIND("""",A2)+1,3))

    D2
    =PROPER(TRIM(LEFT(SUBSTITUTE(MID(A2,FIND("-",A2)+2,50),"""",REPT(" ",50)),50)))

    E2
    =-LOOKUP(0,-MID(A2,SEARCH(D2,A2)+3+LEN(D2),{1,2,3}))

    or the same formula from B:E

    =TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($A2,"""",),"-",","),",",REPT(" ",99)),COLUMNS($B2:B2)*99-98,99))
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,519

    Re: extract text between 2 different characters

    Try
    Please Login or Register  to view this content.

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: extract text between 2 different characters

    Another one :
    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  5. #5
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: extract text between 2 different characters

    Jindon code stops on line 6, however it has been solved abd I always appreciate your help
    Regards
    Graham

+ 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 a text between 2 characters
    By ionelz in forum Excel General
    Replies: 5
    Last Post: 01-20-2020, 07:35 AM
  2. [SOLVED] Extract text between two characters
    By bhenlee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2018, 10:22 AM
  3. Extract text between certain characters
    By spiphix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2016, 05:19 PM
  4. [SOLVED] Extract certain text dependant on number of characters in text
    By bjoanmark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2014, 02:57 AM
  5. Extract text between two characters in a string - varing text length
    By luv2birdie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2014, 06:10 PM
  6. [SOLVED] Extract 50 characters text to a new worksheet
    By skyflare in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2013, 01:44 AM
  7. extract text separated by characters
    By RANDYC1152 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-25-2009, 09:54 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