+ Reply to Thread
Results 1 to 3 of 3

extracting URLs from cells and copying to another

  1. #1
    Registered User
    Join Date
    09-29-2011
    Location
    San Francisco, CA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    3

    Talking extracting URLs from cells and copying to another

    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

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: extracting URLs from cells and copying to another

    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.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-29-2011
    Location
    San Francisco, CA
    MS-Off Ver
    Excel for Mac 2011
    Posts
    3

    Re: extracting URLs from cells and copying to another

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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