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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,223,713
Messages
6,174,041
Members
452,542
Latest member
Bricklin

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