通过文本自动创建超链接到另一个工作表 [英] Automatically creating hyperlink to another sheet by text
问题描述
我想知道如何通过脚本自动从一个excel表创建一个超级链接,基于相应表格中的单元格的相等文本值。
如果可以在没有脚本的情况下使用某种类型的公式(如VLOOKUP),这将是更可取的。
$ b $感谢你的时间。
- 超链接在同一张纸上使用A1中的值:
= HYPERLINK(#& ADDRESS(MATCH(A1,B1:B5,0)),2) ,链接)
- 使用A1中的值超链接到特定不同的工作表:
= HYPERLINK(#My Database'!& ADDRESS(MATCH($ A1,'My Database'!$ A:$ A, 0),1),链接)
- 超链接到单元格A1中列出的工作表
= HYPERLINK(#&A1,A1,Link)
- 超链接到列中列出的随机位置,必须在单元格C3中列出的随机表中找到,与A1中的值匹配,一个3D INDEX / MATCH /超链接:
= HYPERLINK(#& CELL(address,INDEX(INDIRECT(C3&A:A),MATCH(A1,INDIRECT(C3&A:A),0))),Link)
这里有一个示例表,您可以在其中看到这些应用:
3D超链接示例
I would like to know how to create a hyperlink from one excel sheet to another, automatically through a script, based on equal text values that both cells in their respective sheets have.
If this can be done without a script, using a formula of some kind (like VLOOKUP) this would be preferable.
thanks for your time.
- Hyperlink on same sheet using a value in A1:
=HYPERLINK("#" & ADDRESS(MATCH(A1, B1:B5, 0), 2), "Link")
- Hyperlink to a specific different sheet using a value in A1:
=HYPERLINK("#'My Database'!" & ADDRESS(MATCH($A1, 'My Database'!$A:$A, 0), 1), "Link")
- Hyperlink to a sheet listed in cell A1
=HYPERLINK("#'" & A1 & "'!A1", "Link")
- Hyperlink to a random position in a column that must be found on a random sheet listed in cell C3, matching the value in A1, a 3D INDEX/MATCH/Hyperlink:
=HYPERLINK("#" & CELL("address", INDEX(INDIRECT(C3 & "!A:A"), MATCH(A1, INDIRECT(C3 & "!A:A"), 0))), "Link")
There's a sample sheet found here where you can see these applied: 3D Hyperlink Examples
这篇关于通过文本自动创建超链接到另一个工作表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!