EXCEL CONVERT LIST TO HYPERLINKS & KEEP HYPERLINK EVEN WITH NAME CHANGE

Chevon

New Member
Joined
Mar 25, 2019
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello. I am trying to make a template for my company, which has different departments, for budget tracking. I want to hyperlink the list of sheet names, but each department will name its sheets differently, so the hyperlink has to work when the tab name changes. I am not good with macros or coding, so is there an easy formula to use?
 

Attachments

  • BUDGET SHEET.png
    BUDGET SHEET.png
    82.6 KB · Views: 11

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hello,

You can use a mix of CELL and INDIRECT formulas like so:

Excel Formula:
=LET(celAdr,CELL("address",xyz!A1),
HYPERLINK(celAdr,RIGHT(celAdr,LEN(celAdr)-SEARCH("]",celAdr))))
EDIT: i noticed this is not valid with the names you gave to your sheets with #, it adds ['] which seems to mess up the hyperlinks.

Otherwise in VBA I see 2 possible solutions:
  • Or you make an event listener on the worksheet selection to check if it has been renamed. If so, you update the hyperlink subAddress.
  • Or you make the hyperlink actually run a macro, which will look for the sheet by number instead of name, and activate it. The idea is that you could add a column to your table to keep track of sheets number. An important thing however is that if your colleagues reorder the sheets, this gets messed up.
 
Last edited:
Upvote 0
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Hello. I am trying to make a template for my company, which has different departments, for budget tracking. I want to hyperlink the list of sheet names, but each department will name its sheets differently, so the hyperlink has to work when the tab name changes. I am not good with macros or coding, so is there an easy formula to use?
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thank you. I have updated my profile.
 
Upvote 0
Thanks for that. (y)
Do you actually have the # signs before the sheet names?
 
Upvote 0
Thanks for that. (y)
Do you actually have the # signs before the sheet names?
I do right now, but I can change that if it makes a formula easier. I was looking for something generic, as each department will rename the sheets later.
 
Upvote 0
Actually, no need to change them, you can use
Excel Formula:
=LET(a,CELL("address",'#### Search'!H4),HYPERLINK("#"&a,TEXTAFTER(a,"]")))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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