I made a simple sheet based database for chemicals using google sheets. The sheet looks like this: https://docs.google.com/spreadsheets/d/e/2PACX-1vR0-AMEKNM3ZbDq67OIKWnc7E3KP8kfOsnr0Bjg2OSjpevLLjniknGXfIiiyZvbwE9bz3EfbOpO46ef/pubhtml?gid=292509613&single=true
There are many rows and columns. A user can change a value of a cell using a url link something like this https://docs.google.com/spreadsheets/d/13sLioJr_T6lqQ7y_pStBR8CKxReYwLUn4hao/edit#gid=292509613&range=B2
the link is converted to a QR code, which is used by someone who need to remotely change the value of the cell from phone, without searching for a specific chemical manually
The problems start when someone introduces a new row, and then location of each cell is changed, now all the url (i.e printed QR codes) select wrong chemicals. Now all the urls are wrong, and I have to manually fix this and move the new row to the bottom of the table
Ideally I would want select a cell with a query based on the chemical's ID (in this case cp1000) something like (in pseudocode) docs.google.com/spreadsheets/d/13sLioJr..../edit#gid=292509613&range=(select cell B(row_number) where cell A contains(cp1000))
An example of sucessful outcome will be selection of cell in column B based on column A
in pseudocode:
cell = Cell()
id = query.exctract_id()
for n in range(1,max_row):
if cell(column_number = 'A', row_number = n).value == id:
select cell(column_number ='B', row_number = n)
break
is there anyway to write it in a URL? Big thanks in advance
docs.google.com/spreadsheets/d/e/###/pubhtml
,docs.google.com/spreadsheets/d/###/edit
anddocs.google.com/spreadsheets/d/###/editedit
. Can I ask you about them? – Tanaike