How do I convert a column of text URLs into active hyperlinks in Excel?

后端 未结 22 2155
刺人心
刺人心 2020-12-07 07:42

I have a column in excel, wherein I have all the website url values. My question is I want to turn the url values to active links. There are about 200 entries in that column

相关标签:
22条回答
  • 2020-12-07 08:13

    Try this:

    =HYPERLINK("mailto:"&A1, A1)

    Replace A1 with your text of email address cell.

    0 讨论(0)
  • 2020-12-07 08:14

    You can insert the formula =HYPERLINK(<your_cell>,<your_cell>) to the adjacent cell and drag it along all the way to the bottom. This will give you a column with all the links. Now, you can select your original column by clicking on the header, right-click, and select Hide.

    0 讨论(0)
  • 2020-12-07 08:15

    The simplest way in Excel 2010: Select the column with the URL text, then select Hyperlink Style from the Home tab. All URLs in the column are now hyperlinks.

    Also double clicking each cell at the end of the URL text and adding a blank or just enter will also produce a hyperlink. Similar to the way you have to create URL links in MS Outlook emails.

    0 讨论(0)
  • 2020-12-07 08:16

    I shocked Excel didn't do this automatically so here is my solution I hope would be useful for others,

    1. Copy the whole column to clipboard
    2. Open this on your Chrome or Firefox

    data:text/html,<button onclick="document.write(document.body.querySelector('textarea').value.split('\n').map(x => '<a href=\'' + x + '\'>' + x + '</a>').join('<br>'))">Linkify</button><br><textarea></textarea>

    1. Paste the column on the page you just opened on the browser and press "Linkify"
    2. Copy the result from the tab to the the column on Excel

    Instead step two, you can use the below page, first, click on "Run code snippet" then paste the column on it

    <button onclick="document.write(document.body.querySelector('textarea').value.split('\n').map(x => '<a href=\'' + x + '\'>' + x + '</a>').join('<br>'))">Linkify</button><br><textarea></textarea>

    0 讨论(0)
  • 2020-12-07 08:17

    Create the macro as here:

    On the Tools menu in Microsoft Excel, point to Macro, and then click Visual Basic Editor. On the Insert menu, click Module. Copy and paste this code into the code window of the module. It will automatically name itself HyperAdd.

    Sub HyperAdd()
    
        'Converts each text hyperlink selected into a working hyperlink
    
        For Each xCell In Selection
            ActiveSheet.Hyperlinks.Add Anchor:=xCell, Address:=xCell.Formula
        Next xCell
    
    End Sub
    

    When you're finished pasting your macro, click Close and Return to Microsoft Excel on the File menu.

    Then select the required cells and click macro and click run.

    NOTE Do NOT select the whole column! Select ONLY the cells you wish to be changed to clickable links else you will end up in a neverending loop and have to restart Excel! Done!

    0 讨论(0)
  • 2020-12-07 08:17

    This method works for me using the hyperlink function:

    =HYPERLINK("http://"&B10,B10)
    

    Where B10 is the cell containing the text version of the URL (in this example).

    0 讨论(0)
提交回复
热议问题