I would like to add some code into my Google Sheet. When I enter a number a url should be created

46 Views Asked by At

It's simple but I am new to Google Sheets.

I enter a number in a field in a row. See img below.

When the number is entered I want it to turn into a hyperlink so it clickible.

Web Address example....http://idx.domain.com/details.asp?mls=77777777&aid=BB333833 Everything remains same. all thing that changes is the 77777777 (A2, A3, A4)

1

There are 1 best solutions below

0
On

You can use onEdit() trigger. Set up an if statement, so that if the first column is edited change it's value to

"=http://idx.domain.com/details.asp?mls=" + your cell value + "&aid=BB333833"

Here is a similar question with an onEdit() trigger

Here is another example which shows how to check for the correct column.

There are plenty of similar question on this topic in SO if you do some searching.