+ Reply to Thread
Results 1 to 5 of 5

Extract string from a link

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    milano
    MS-Off Ver
    2010
    Posts
    30

    Extract string from a link

    Hi everyone,

    I have this information which is big load of code and i need to extract only the part in green which will always be anticipated by <p> and followed by </p>

    Anyway i can achieve this? see the attachments!

    thank you all!


    =MID(A9,SEARCH("<p>",A9)+3,SEARCH("</p>",A9)-SEARCH("<p>",A9)-3)

    I thought of using something like this but it does give me some blank space both at the beginning and at the end...
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by vanthetsar; 04-04-2016 at 10:25 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract string from a link

    Hi,

    One way

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-22-2015
    Location
    milano
    MS-Off Ver
    2010
    Posts
    30

    Re: Extract string from a link

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    One way

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks did these deleted the space!

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract string from a link

    There are still white space characters such as CHAR(160) left in Richard's formula and the lengths of the extracted string is 172 characters long. However, it should be 159.

    Try this formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    06-22-2015
    Location
    milano
    MS-Off Ver
    2010
    Posts
    30

    Re: Extract string from a link

    Quote Originally Posted by AlKey View Post
    There are still white space characters such as CHAR(160) left in Richard's formula and the lengths of the extracted string is 172 characters long. However, it should be 159.

    Try this formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This one works perfeclty fine, thanks!!

+ 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. [SOLVED] Extract all the words from a string for processing, while leaving string intact.
    By staggers47 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-10-2014, 02:02 PM
  2. [SOLVED] How to Extract A Number from String if Text within the String Equals XYZ
    By tyrsfury in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-15-2012, 03:30 PM
  3. [SOLVED] extract text string when you only know the last three letters of that string
    By alison0edwards in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2012, 01:20 PM
  4. [SOLVED] Extract a mainly numeric string (ISSN number) from an arbitrary string
    By Buzzed Aldrin in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-04-2012, 01:49 PM
  5. Replies: 16
    Last Post: 10-11-2011, 12:31 PM
  6. Extract small string of text from larger string
    By mark_jam3s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2010, 05:36 AM
  7. Replies: 1
    Last Post: 08-23-2007, 01:10 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