Extract URL from Text String

Posted on 2012-09-13
Last Modified: 2012-09-13
Hello Experts,

I have a SQL extract in .xlsx format that contains a text string; embedded within this text string is a url.  I attempted to use Excel's text-to-columns to extract this data but it's only successful ~30% of the time.

This is because the surrounding unneeded text string is in several different formats and therefore not consistent.  That being said, what is consistent is that all the urls I need to extract begin with "http://" (w/o quotes) and end with ".pdf" (w/o quotes).  I assume there's some vba wizard that could do this and I was wondering if they'd help me out?

Thank you
Question by:ShadowIT
    LVL 8

    Accepted Solution

    Will a formula work for you?


    Open in new window


    Author Closing Comment

    Perfect!!! Thank you

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Suggested Solutions

    INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
    This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
    Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
    Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now