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


i have copied website series of hyperlinks , pasted them in google sheet. values show linked text, not hyperlink formulas, , still linked correctly. each row, i'm trying extract url (not friendly text) , insert adjacent column. how accomplished using formula?

for example:

=somefunction(cellthatholdslink, returnedurlonly) 

this , similar scenarios not apply because pasted data not formulas. accept script (gas) solution, or solution matter, prefer if done using formula. have found dozens of hyperlink manipulation scripts, nothing on particular scenario, or how access property holding url. thanks.

you can use importxml pull in whole data table , it's contents this:

=importxml(a1,"//tr") 

next pulled in url strings in tags

=importxml(a1,"//tr/td[1]/a/@href") 

and concatenated strings original domain create hyperlinks

=arrayformula("http://www.bnilouisiana.com/"&indirect("a2:a"&counta(a2:a))) 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -