I have a column of data that includes strings of text and URLs. There is no regularized format for how or where the URLs appear in the string of text.
Thus far I've been either manually selecting and copying each URL to a new column to isolate it or copying the whole list to a new column and deleting anything that doesn't begin with "http://..." I would like to find or automate a process for finding the URL in each cell and copying it to a cell in another column. I haven't found a function yet that seems like it would be good for this purpose.
Help?
- RA
Last edited by RichAutechre; 09-29-2011 at 02:27 PM. Reason: Solved
If the address is followed by a space or is at the end of the string, you can try something like:
=TRIM(LEFT(MID(A1,FIND("http://",A1),255),FIND(" ",MID(A1,FIND("http://",A1),255)&" ")))
where A1 contains the original string.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Awesome. Thanks for the useful tool. I've actually managed to edit and re-purpose that line for a few other functions as well.
Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks