Dynamic Hyperlinking to freshly copied sheets e.g. "Sheet1 (2)"

mcook36155

New Member
Joined
Oct 4, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello

I have tried using the hyperlink formula to dynamically link to newly created test sheets from a template sheet. Its a basic workbook at this point with the template having name "sheet1", and the subsequent test sheets having names "sheet1 (2)" and so on.

I have used the formula =HYPERLINK(CONCAT("#",B10,"!A1"),D10) where cell B10 contains the sheet name "sheet1 (2)", and cell D10 just contains the test number "1". when I try to use the link it gives an error box saying "Reference isn't valid."

But when I do the exact same referencing cell B9 containing the sheet name "sheet1" it works

is there a way to make it work for these copied sheets?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Because the sheet name "Sheet1 (2)" has a space in it. Try this:

=HYPERLINK(CONCAT("#'",B10,"'!A1"),D10)

Added single quotes to surround the sheet name.
 
Upvote 0
Solution
Thankyou, this has solved it!!

Not that i understand why it is required... if the spaces are part of the reference cells contents B10 surely it should read that there are spaces, why do we need to tell it it has spaces?

Clearly it is needed tho
 
Upvote 0
I could pretend to know the answer why it works the way it does, but alas, I do not. Anyway, you're welcome, and happy to help.
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,569
Members
453,053
Latest member
Kiranm13

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