Reputation: 10305
I am trying to add a hyperlink from one sheet to a named table on another sheet. I know that if I name the range then I can use the hyperlink, but ideally, I would like to keep it as just a table.
I have a table on SHEET 2
named MySpa
- I would like to have a link from SHEET 1
to that table.
I tried this - =HYPERLINK(MySpa, "Link to MySpa Table")
but when I click on the link in the cell it doesn't seem to do anything. How can I link from one sheet to a table on another sheet?
Upvotes: 1
Views: 9960
Reputation: 314
If the table is named and is in the same sheet, prepend a hash (#) and wrap in double quotes as shown below:
=HYPERLINK("#TableName", "Click to view")
If the table is in another sheet, prepend the sheet name as shown:
=HYPERLINK("#SheetName!TableName", "Click to view")
The trick is in wrapping the reference in double quotation marks and including the hash sign.
Upvotes: 4
Reputation: 1
Excel does not recognize a full table in hyperlink, howver there is a simple workaround provided you want to show a single cell from a table, you can use it's cell address to point as a hyperlink.
Suppose your table is named MyTable
=HYPERLINK(CELL("address",INDIRECT("MyTable"),"Click")
It will show the first row and column intersection in the table, and it will not be static if you cut paste the table to anywhere it will not get affected since it is based on table object name.
If you are having a call from a different table with same number or rows and want to call the corresponding cell of another table then just add [@ColumnName](the column name you have) inside INDIRECT() along with table name like
=HYPERLINK(CELL("address",INDIRECT("MyTable[@ColumnName]"),"Click")
Now it will reference to the same row number as is called from the requesting sheet.
Upvotes: 0
Reputation: 4755
(Tables don't show up (at least in Excel 2010), but it's still possible...)
LnkMyTab
and let it point to =MyTab
. Now LnkMyTab
should appear in the hyperlink dialog under Current Document and it will be automatically updated as the table may change :)Another kind of workaround (at least in Excel 2010) based on static nature of hyperlink formulas is this:
(glossary: T: my table, A: some (temporary) anchor, L: my hyperlink)
MyTab
to MyTab_
(T)MyTab
to some arbitrary range or cell, e.g. =B10
(A)MyTab
(L)MyTab
(A)
MyTab_
back to MyTab
(T)Upvotes: 0
Reputation: 1176
Right click on the cell you wish to have the link, hyperlink, place in this document. If you have named the table you should see it there. If not, make it a named range.
Upvotes: 0