I have a google spreadsheet, where I want to link each cell in a range to the google search page, where the search term is the text in this particular cell. So if I have a cell with content 'Bikes' I want to turn it to a link that will search for 'Bikes' in Google.
How do I achieve that short of manually going over each cell in the range and turning it into a link?
This is what I have:
Note that the list is much longer than a few cells.
This is where I want to arrive:
These will hyperlink to
- google.com/search?q=Alpha
- google.com/search?q=Beta
- google.com/search?q=Gamma
- google.com/search?q=Delta
- etc…
Since there are a hundred of cells I would like a more practical method than inserting a hyperlink manually for each cell.
Best Answer
You could use
INSERT > Link...
to add a link to the active cell but it will require you to write the URL.If you want that the URL be added automatically, you will need a Google Apps Script.
Instead, you could use a formula with the HYPERLINK function in a temporary column and use some built-in functions to do bulk operations.
I.E. if the search term is in A1 then use the following formula:
=hyperlink("www.google.com/search?q="&A1,A1)
Fill down as necessary.
Copy and paste as values over the column with the search terms.
Delete the temporary column.
Related keyboard shortcuts
Insert a link: CTRL+k
Copy: Ctrl+c
Paste as values: Ctrl+Shift+v
References