Extract URLs from Google Sheets

Extract URLs from Google Sheets

Better Sheets

2 года назад

25,325 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@hollow_grimm
@hollow_grimm - 28.11.2023 12:04

Do you have to run the code first? Cause i am getting an “Error Exception: Argument cannot be null: a1Notation” when I run the code. The formula also is not working

Ответить
@gowrishankarmokara2728
@gowrishankarmokara2728 - 18.11.2023 08:50

Tqs a lot bro. It's Working

Ответить
@rocioocana8663
@rocioocana8663 - 01.10.2023 19:23

Thank you so much! This is a lifesaver! I would just suggest you add the formulas so they're ready to copy and paste.

Ответить
@SaurabhShelar-cm5xi
@SaurabhShelar-cm5xi - 29.09.2023 11:38

I got range not found error.

Ответить
@user-wg8pv8ww5j
@user-wg8pv8ww5j - 24.09.2023 18:12

Thank you for sharing the video! I had heard of this script a while ago but was never able to get it working because I don't know how to use scripts. Your video showed me clearly what to do and it's working!

Ответить
@Finnious
@Finnious - 21.09.2023 20:20

If you want to call the function without double quotes, try this GETLINK(A2)


function GETLINK() {
var sheet = SpreadsheetApp.getActiveSheet();
var formula = SpreadsheetApp.getActiveRange().getFormula();
var cellAddress = formula.match(/\((.*?)\)/)[1]; // Extracts the cell address from the formula
var range = sheet.getRange(cellAddress);
var richTextValue = range.getRichTextValue();
var url = richTextValue.getLinkUrl();
return url;
}

Ответить
@philippsmirnoff
@philippsmirnoff - 08.09.2023 16:30

The website unfortunately did not work for me. So if you for some reason absolutely can't type the code from screen, here it is:

function GETLINK(input){
var sheet = SpreadsheetApp.getActiveSheet();
var range = sheet.getRange(input);
var value = range.getRichTextValue();
var url = value.getLinkUrl();
return url;
}

And then to actually use it in the sheet:
=GETLINK(cell("Address",A63))

just replace the "A63" in my case with your relevant cell reference

Ответить
@ricardolozanocolin7380
@ricardolozanocolin7380 - 06.09.2023 07:52

Thanks, Brillant the example!

Ответить
@tomasjarvis8976
@tomasjarvis8976 - 22.08.2023 23:04

just save my evening with this!!, thank you and thank you for sharering Tyler Robertson's work

Ответить
@YunusEmre-zz9gx
@YunusEmre-zz9gx - 17.08.2023 22:02

Script function not found: GETLINK

Ответить
@samuelhatton6335
@samuelhatton6335 - 09.08.2023 22:57

Awww yeah! Thanks!

Ответить
@Alex_Short
@Alex_Short - 04.08.2023 18:25

Not working. Error. Syntax error. Done every step 100%

Ответить
@user-pb7vs3qv2v
@user-pb7vs3qv2v - 22.07.2023 02:29

Amazing. THank yoU!

Ответить
@quynhanhkhong8251
@quynhanhkhong8251 - 20.07.2023 18:19

Thanks but I cant RUN the code in Apps script. Notice null line 3. Pls help

Ответить
@ada59182
@ada59182 - 19.07.2023 16:10

Thanks super helpful 👍

Ответить
@Jesse6283
@Jesse6283 - 08.07.2023 19:31

Your tutorial SUCKS, thanks for telling us how to set up this script

Ответить
@umeruddin5332
@umeruddin5332 - 06.07.2023 08:54

tysm

Ответить
@garrettgrohman
@garrettgrohman - 06.06.2023 18:32

Wondering if this still works. I'm having issues where the cell that should be returning the url is blank

Ответить
@shontrashi
@shontrashi - 25.05.2023 12:17

thank you . even chatGPT couldn't give me this code. u saved me so much time.

Ответить
@hankssc11
@hankssc11 - 02.05.2023 20:21

Amazing.

Ответить
@martvainu4802
@martvainu4802 - 23.04.2023 07:15

You rock! Straight to the point and great presentation.

Ответить
@alanfilipiak5001
@alanfilipiak5001 - 13.04.2023 16:28

Hi! I need to create a formula or script. Which will return me a url to a cell in a given sheet. for example: =GET.URL(a1)
result: url

Ответить
@companybee
@companybee - 03.04.2023 21:36

Perfect, thanks for the tip!

Ответить
@user-mo4rj3cn9g
@user-mo4rj3cn9g - 03.04.2023 19:39

This is great! Thank you both for sharing!

Ответить
@manoharah1060
@manoharah1060 - 02.04.2023 09:22

Don't make any sheet. Make better sheet. Clever

Ответить
@vicenteguedes6072
@vicenteguedes6072 - 30.03.2023 20:33

man I spent the whole day trying to find this solution via chatGPT, only to have it repeatedly apologizing and giving me an even more wrong result. YOU ARE A LIFE SAVER!!

Ответить
@user-lo5ib6bk8i
@user-lo5ib6bk8i - 23.03.2023 03:38

thanks for sharing, but this doesn't work when the URL doesn't contain "www"

Ответить
@ketchup3367
@ketchup3367 - 13.03.2023 21:17

Thank you so much! This is exactly what I was looking for.

Ответить
@DevanshVora
@DevanshVora - 07.03.2023 08:57

It's not working

Ответить
@legoinsan
@legoinsan - 04.03.2023 15:25

Awesome saved me lot of time

Ответить
@alisazphotovideo
@alisazphotovideo - 01.03.2023 22:09

I spent the whole day trying to batch extract individual image links from Dropbox files for over 1000 images by using all these fancy automation tools, looked through dozens of videos and YOU are the only one who brought me straight to the solution! THANK YOU! <3

Ответить
@JhonSanchez-oi8dd
@JhonSanchez-oi8dd - 09.02.2023 18:37

I save a lot of time with this. Thanks!

Ответить
@vineetjamwal9745
@vineetjamwal9745 - 07.02.2023 13:02

Thank you for sharing this...much help!!

Ответить
@jeffbetancourt1033
@jeffbetancourt1033 - 01.02.2023 18:37

This is awesome!! I just tried it out and it worked. Thanks

Ответить
@DiegoKersjes-xm3ln
@DiegoKersjes-xm3ln - 30.01.2023 16:41

I always get TypeError: Cannot read properties of null (reading 'getLinkUrl') (line 5). Why is that?

Am using the formula =GETLINK(CELL("Address";R2))

Ответить
@Jeff-fc7nf
@Jeff-fc7nf - 16.01.2023 14:43

Brilliant sir, thank you so much.

Ответить
@CaioEduardoCabralCidrini
@CaioEduardoCabralCidrini - 16.12.2022 18:26

Is possible create a GETDATE from a url? Which variables can I use?

Ответить
@chrystopheralves2970
@chrystopheralves2970 - 10.11.2022 16:19

Thank you very much!!

Ответить
@loucharmainetanamor1103
@loucharmainetanamor1103 - 31.10.2022 18:55

Thank you!! Saved me lots of time.

Ответить
@patrickcastellano8789
@patrickcastellano8789 - 06.10.2022 02:09

thanks

Ответить
@pickleballist
@pickleballist - 04.10.2022 01:55

BRILLIANT!! Thanks for taking the time to share this!

Ответить
@diduschannel
@diduschannel - 15.09.2022 17:08

thank you so much for such a quick and effective solution!

Ответить
@jurischmidt940
@jurischmidt940 - 22.08.2022 23:00

Thank you so much! ❤

Ответить