How to extract URL from Link in Google Sheets using a formula?

后端 未结 9 1900
面向向阳花
面向向阳花 2020-12-13 09:33

I have copied from a website a series of hyperlinks and pasted them in a google sheet. The values show up as linked text, not hyperlink formulas, and are still linked correc

相关标签:
9条回答
  • 2020-12-13 10:20

    Found an answer that works on Google Groups (by Troy):

    1. Publish your spreadsheet (copy the url)
    2. Create a new spreadsheet and use IMPORTXML function (replace the url with the url you get in step 1)
    3. You will get the data - you can then copy and paste the values where you need them
    4. Unpublish the spreadsheet (if you do not want it public)

    Could be done by Script, but I have no time now. :)

    0 讨论(0)
  • 2020-12-13 10:24

    I was able to solve this for Jotform in a very simple way.

    I was looking to include the Edit link in a query, but it would only give me the text "Edit Submission."

    However, I noticed that I had the form ID in Column R. I was then able copy the JotForm link and combine it with the cell reference "https://www.jotform.com/edit/"&R2

    0 讨论(0)
  • 2020-12-13 10:31

    You can use importxml to pull in the whole data table and it's contents with this:

    =IMPORTXML(A1,"//tr")
    

    next to it we pulled in the url strings in the tags

    =IMPORTXML(A1,"//tr/td[1]/a/@href")
    

    and finally concatenated the strings with the original domain to create your hyperlinks

    =ARRAYFORMULA("http://www.bnilouisiana.com/"&INDIRECT("A2:A"&COUNTA(A2:A)))
    
    0 讨论(0)
提交回复
热议问题