超链接到 Excel 中另一个工作表上的单元格 [英] Hyperlink to a cell on another sheet in Excel
问题描述
我正在处理 Excel 报告,我需要在其中传递一个链接,该链接可以将我带到所引用的单元格.
I am working on Excel report in which I need to pass a link which can take me to a cell referenced.
在下面的示例中,我在同一个工作簿上有两张工作表.现在,如果我单击 Sheet:1 上的单元格A1",那么它应该带我到 Sheet:2 上的单元格E1".
In below example, I have two sheets on same workbook. Now if I click on cell "A1" on Sheet:1, then it should take me to cell "E1" on Sheet:2.
我知道通过特殊粘贴我可以传递超链接,但棘手的部分是 Sheet:2 上的数据是动态的,所以我不能走那条路.
在谷歌上查看后,我发现了很多东西,所以我把它们放在一起,但它抛出错误参考无效".
I know by paste special I can pass hyperlink, but tricky part is data on Sheet:2 is dynamic so I can't go that route.
After looking on Google, I have found out multiple things, so I clubbed them together but it is throwing error "Reference is not valid".
这是我在 Sheet:1 上的单元格A1"上使用的公式:
Here is the formula that I've used on cell "A1" on Sheet:1:
=HYPERLINK("[Sample.xlsx]Sheet:2!(ADDRESS(MATCH(""ABC"",BEFORE,0),MATCH(""ABC"",BEFORE,0),1))","ABC")
这里的BEFORE是一个涵盖A1到E1的名称范围.
Here BEFORE is a name range that covers A1 to E1.
a b c d e
1. abc
工作表:2
a b c d e
1. x x x x abc
感谢您的投入.
推荐答案
=HYPERLINK("[Sample.xlsx]'Sheet2'!" & ADDRESS(1,MATCH("abc",BEFORE,0)),"ABC")
如果您的工作表名称可能有空格,请确保在名称周围添加单引号.
If your sheet name might have spaces then make sure to add the single quotes around the name.
这篇关于超链接到 Excel 中另一个工作表上的单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!