简体   繁体   English

在 Google 表格中获取指向此单元格的链接

[英]Get Link to this cell in Google sheets

How can I get a link to cell in sheets with a formula or appscript?如何使用公式或 appscript 获取工作表中单元格的链接? I have a column A with 200 rows and want to get the links of all cells populated in column B我有一列有 200 行的 A 列,并且想要获取 B 列中填充的所有单元格的链接

try:尝试:

=ARRAYFORMULA(IF(B:B="",,HYPERLINK("#gid=1734824104&range=B"&ROW(B:B), B:B)))

0

where gid number can be found here:可以在此处找到 gid 编号:

在此处输入图像描述

Right click on the first cell (A1) and copy the link to that cell.右键单击第一个单元格 (A1) 并将链接复制到该单元格。 Then use that link like the example below and drag this down.然后像下面的示例一样使用该链接并将其向下拖动。

=CONCATENATE(" https://docs.google.com/spreadsheets/d/a1a1a1a1a1a1/edit#gid=111111&range=A ",ROW())) =CONCATENATE(" https://docs.google.com/spreadsheets/d/a1a1a1a1a1a1/edit#gid=111111&range=A ",ROW()))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM