Extract URLs or Link Text from a Google Sheets Cell

preview_player
Показать описание
Here’s an advanced trick for Google Sheets. If you have a hyperlink in a cell, there’s an easy way to extract the link text and the URL separately.

To read the full article, visit this link:
Рекомендации по теме
Комментарии
Автор

Apparently, this video is out of date. The script does not work.

craigecarrollocr
Автор

Doesn't work for me, it says there's a syntax error in line 22. I am not able to figure out though where the syntax is going wrong.

NitishKumar-tbdg
Автор

I got the following error : TypeError: Cannot read property "1" from null. (line 15, file "Code")

AnandanKonar
Автор

line 22 is missing the backslash. this is what it should read:
var url =

courtneyb
Автор

A much, much harder challenge is to extract the URL from a hyperlink displayed in a Google Sheet cell, but which was not created using the =HYPERLINK formula (i.e. it was imported or pasted from an HTML anchor, say, in a Web page). I'm wondering if you have any formula- or script-based solution to that!

VideoNOLA
Автор

This script is amazing and just saved me about 4 hours of manually opening cells and copy/pasting URLs to the next column :)

marianamccready
Автор

got an error :
TypeError: Cannot read property '1' of null (line 15, file "Code"

SirJorasminChannel
Автор

Thanks for the plain text converter..helped me finish my project

MrVijn
Автор

I get the TypeError: Cannot read property "1" from null. (line 15, file "Code"), i then dismiss it and when i run it it has an error when loading data

MrBoingts
Автор

No longer works, says there is syntax error on line 22

Kupsko
Автор

How do I get multliple links out of one cell?

ajt
Автор

Is there an updated version for Apps Script?
I get the error, "Syntax error: ParseError: Invalid regular expression line: 22 file: linkURL.gs."

granthathaway
Автор

Works like a charm, thanks a lot! The "TypeError: You can/should just ignore the "Cannot read property "1" from null." error (given when saving the script). Great script, great tutorial...

verkooppartner
Автор

Syntax error: ParseError: Invalid regular expression line: 22 file: Code.gs

jazzybeat
Автор

Error: "Syntax error: ParseError: Invalid regular expression line: 22 file: Code.gs"

Line 22: var url =

tarawiselove
Автор

Hi, thanks a lot for the share.
It did not work for me /

TypeError: Cannot read property "1" from null. (line 15, file "Code")


do you have an idea to resolve it?

glenngyn
Автор

ParseError: Invalid regular expression (line 22, file "Code.gs")

paulhitchman
Автор

link was used using the "hyperlink" function, naw no thanks I still with scrapy and xpath to extract urls. Yawn

ProgrammingNewbie
Автор

Gracias, me sirvió de mucha ayuda tu video, me puedes ayudar a insertar la url del archivo en una celda por app script,

soporteinformatica