+ Reply to Thread
Results 1 to 9 of 9

Multiple URL's from one Cell into one URL per Cell

  1. #1
    Forum Contributor
    Join Date
    06-20-2011
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2013
    Posts
    165

    Multiple URL's from one Cell into one URL per Cell

    Hi Guys,

    I have multiple Web Links and some other contents in one cell, I need that to be put into one link in one cell at a time. I am fine if we get rid of other contents other than links. Please suggest me with some code. I am attaching the excel file. Please find the attachment.

    Thanks in Advance.

    Cheers
    VJ
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Multiple URL's from one Cell into one URL per Cell

    A proper sample workbook would have BEFORE/AFTER examples, and in this case, I'd think several of them would be in order as I'm sure your "cells" would be in varying configurations. Show us all those variations and what specifically would be kept/discarded in each example.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    06-20-2011
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2013
    Posts
    165

    Re: Multiple URL's from one Cell into one URL per Cell

    Hi JBeaucaire thanks for your kind reply....I used the below code to extract the URL's from a web link..here is the code->

    Please Login or Register  to view this content.
    And the output that I get when the above code is executed is given in the above uploaded excel file.

    I just want to extract "http://msbi.ipb-halle.de/MetFusion/icefaces/resource/ODY3MzQyNTcy/MetFusion_Results_04-08-2012_13-43-40.xls" from the url's that I have given in the above uploaded excel file.
    I don't want to do anything else. And the "04-08-2012_13-43-40" from the above link will be dynamic at all times.

    thanks in advance.

    Cheers
    plasma33

  4. #4
    Forum Contributor
    Join Date
    06-20-2011
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2013
    Posts
    165

    Re: Multiple URL's from one Cell into one URL per Cell

    Thanks in Advance....

    Cheers
    plasma33

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Multiple URL's from one Cell into one URL per Cell

    This formula seems to pull out that string for you:

    =MID(A2,FIND("http:",A2),FIND("javascript",A2,FIND("http",A2))-FIND("http",A2))

  6. #6
    Forum Contributor
    Join Date
    06-20-2011
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2013
    Posts
    165

    Re: Multiple URL's from one Cell into one URL per Cell

    Thanks for the code mate...can we do that in macro????

    Cheers
    plasma33

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Multiple URL's from one Cell into one URL per Cell

    Yes, you can record formula that into a macro in about 10 seconds, right? Turn on the recorder, enter the formula into cell A1, then do a copy/pastespecial>values on A1, stop the recorder.

    Report your successful creation of the macro back here.

  8. #8
    Forum Contributor
    Join Date
    06-20-2011
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2013
    Posts
    165

    Re: Multiple URL's from one Cell into one URL per Cell

    Thanks for the tip mate..Here is my code...but when I get my output I get it with the quotes...do you know how to get rid of the quotes???

    Please Login or Register  to view this content.
    Cheers
    plasma33

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Multiple URL's from one Cell into one URL per Cell

    I ran your macro on the sample sheet above, no quotes. So no way to see what you mean.

    You can try this to get just the values, removing the formula:
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    06-20-2011
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2013
    Posts
    165

    Re: Multiple URL's from one Cell into one URL per Cell

    thanks for the code....worked perfectly....

    Cheers
    plasma33

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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