+ Reply to Thread
Results 1 to 4 of 4

Extract text between certain characters

  1. #1
    Registered User
    Join Date
    06-17-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    14

    Extract text between certain characters

    I have a spreadsheet containing a lot of text values (see attached). I'm trying to extract certain text from between a specific set of characters and copy the value to a unique cell (on a new sheet?). One issue is that I don't know how to extract between specific characters - some version of MID or TRIM? Another issue is that there are hundreds of these values I need contained in only 37 cells. I need each extracted to a unique cell.

    Eg. I want to extract "test123" from between <li data-value= >

    <li data-value="test123">


    let me know if you have any questions and thank you for any help!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    Re: Extract text between certain characters

    Don't understand fully.

    You said that you're trying to extract certain text...does that mean that you know that those text/string are?

    If you do, can't you use a MID and FIND function?

  3. #3
    Registered User
    Join Date
    06-17-2016
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    14

    Re: Extract text between certain characters

    Sorry let me clarify. I have hundreds of unique values that I'm trying to extract. All of these values are surrounded by the same characters that I don't want included. I'm trying to extract the unique values from inside these characters.

    Eg:
    <li data-value="Cox - The Bone Online" class="">
    <li data-value="Crash Media - Bike Sport News" class="">
    <li data-value="Deskfive - OdaTV" class="">

    In the examples above, I want to extract the red text and put them in unique cells. I know the <li data-value= and class=""> within the spreadsheet are constant and always present for the text I'm trying to extract. All 3 lines of text are contained within the same cell in excel.

    Thanks for taking a look

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,733

    Re: Extract text between certain characters

    All 3 lines of text are contained within the same cell in excel.
    No. They aren't.

    I didn't find any of those strings (<li data-value= and class="">) in the upload file, so I am unable to come up with clear and helpful suggestions or questions.

    We could use some examples (another upload) of desired output ... hand typed if necessary.
    Last edited by FlameRetired; 09-08-2016 at 05:21 PM.
    Dave

+ 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. VBA Code to Extract Text Between Delimiter/Characters
    By jadown in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2016, 12:27 PM
  2. [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
  3. 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
  4. Extract text from cells with mixed characters
    By sa02000 in forum Excel General
    Replies: 4
    Last Post: 07-15-2014, 02:57 PM
  5. [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
  6. Extract Text characters only from a cell
    By judasdac in forum Excel General
    Replies: 2
    Last Post: 05-06-2009, 12:22 PM
  7. extract text separated by characters
    By RANDYC1152 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-25-2009, 09:54 PM

Tags for this Thread

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