Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Extract URL from Text String

Posted on 2012-09-13
2
Medium Priority
?
554 Views
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
0
Comment
Question by:ShadowIT
2 Comments
 
LVL 8

Accepted Solution

by:
Elton Pascua earned 2000 total points
ID: 38397337
Will a formula work for you?

=MID(A1,FIND("http://",A1,1),FIND(".pdf",A1,1)-FIND("http://",A1,1)+4)

Open in new window

0
 

Author Closing Comment

by:ShadowIT
ID: 38397384
Perfect!!! Thank you
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
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…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

572 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