HYPERLINK to Named Range stored in cell

JanosX

New Member
Joined
Jan 31, 2013
Messages
3
I have a recipe book spreadsheet with a navigation bar to different categories (ex. PREP or HOT etc.). When Selecting PREP, a second list appears with all HYPERLINKS to all of the prep items. The user clicks on the PREP item and the recipe appears. I CAN MAKE ALL OF THIS WORK, but it's a little clunky as I'm using hidden cells to ensure the right category list is showing. It's not the end of the world, but I would prefer to have one list update based on the category. I planned on doing this by referencing a table of named ranges based on the category, the link and the friendly name would update to reflect the proper items.

This seemed simple enough, I can type each link individually and it navigates as expected, but I can't seem to reference a cell to get the Named Range.

EXAMPLE:

=HYPERLINK("#PREP_1",E2)

This works perfect.

But when I have "#PREP_1" stored in A1

=HYPERLINK(INDIRECT(A1),E2)

This does not work. I have tried many iterations but can't seem to find a work around.

Am I just being dumb? ....probably shouldn't ask that in the internet!

Thanks!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
GOT IT!

A1 = named range (PREP_1)

Code:
=HYPERLINK("#"&A1,E2)

Now it takes me to the named range specified!
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top