Reputation: 1958
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.
Upvotes: 5
Views: 63605
Reputation: 3197
=HYPERLINK("#" & ADDRESS(MATCH(A1, B1:B5, 0), 2), "Link")
=HYPERLINK("#'My Database'!" & ADDRESS(MATCH($A1, 'My Database'!$A:$A, 0), 1), "Link")
=HYPERLINK("#'" & A1 & "'!A1", "Link")
=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
Upvotes: 14