dirtyw0lf
dirtyw0lf

Reputation: 1958

Automatically creating hyperlink to another sheet by text

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

Answers (1)

Jerry Beaucaire
Jerry Beaucaire

Reputation: 3197

  • 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

Upvotes: 14

Related Questions