I have a column of cells in a Google Spreadsheet with values such as:
A
-----
37683
36583
38637
32391
I'm generating hyperlinks in column B for each cell in column A:
http://example.com?id=xxxxx
Where xxxxx
are values of the cells in column A:
=HYPERLINK(CONCATENATE("http://example.com?id=",A1);"link text")
The problem is that the formula requires to be filled down the rest of the column by the user.
I'd like to be able to paste the formula in any random cell in column B so that it takes the "link text" (xxxxx values from column A) from a parallel row in column A.
Scenario 1
When the value in cell A455 is 37683 then pasting a formula into cell B455 will display 37683 as a link text and will take us to http://example.com?id=37683
Scenario 2
When the value in cell A27 is 39873 then pasting a formula into cell B27 will display 37683 as a link text and will take us to http://mywebsite.com?id=39873
The formula needs to be universal so that the result is the same regardless of where in column B it is pasted.
How can this be done? Any workarounds welcome.
A1
instead of "link text" then. If the issue is something else, please clarify.