+ Reply to Thread
Results 1 to 4 of 4

Function to return text from phrase X to phrase Y

  1. #1
    Registered User
    Join Date
    11-21-2008
    Location
    athens
    Posts
    14

    Function to return text from phrase X to phrase Y

    Hello, i got a question for ya.

    I have a HUUUGE file with page sources of various pages of a website.

    What i want to do is cut down this so i want a forum to return me what shows from one tag to the other, for example i want all the text from:

    <p align="center">............. up to .........</p>

    Is that possible with excel?

    Thanks in advance

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Function to return text from phrase X to phrase Y

    you could just use find<*> replace with nothing
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    11-21-2008
    Location
    athens
    Posts
    14

    Re: Function to return text from phrase X to phrase Y

    the problem is that apart from this text that i want there is in the same cell a bunch of other text/code that i do not want and differs from row to row so find won't work :S
    Last edited by razr; 05-06-2009 at 05:36 PM.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Function to return text from phrase X to phrase Y

    well there are ways but neeed to see some examples to do it with functions
    one of these 2 vba scripts might do it
    i tried the first one ok inserted in a new module
    selected range then tools macro macros then ran "striphtml"
    http://www.eggheadcafe.com/conversat...eadid=32447111

+ 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