Copying Dynamic Hyperlinks

Thomas Scott

New Member
Joined
Nov 7, 2021
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
I have searched the web and several Excel forums trying to find a solution (formula or macro) for easily copying a formula or running a macro that can use header row labels to point to the matching worksheet name with also a return to the starting point when done. All of this is done in one workbook. I did find a nice macro that creates all the worksheets from the Data sheet header row.

1. What is needed is a way to copy dynamic hyperlinks across an entire row in the Data sheet with each one pointing to A1 in the sheet matching the header row name. Most sheet names will have text, a space, and sometimes an underscore. A formula would be nice but a macro is probably inevitable (I am not a macro programmer).

2. The Data sheet (typically with hundreds of rows and columns) is where numeric information is entered while the hyperlink allows entry of comments and text that is not quantitatively analyzed and takes up too much space in the Data sheet.

3. There should also be a return hyperlink back to the Data sheet in A2 of all the the worksheets. Yes, F5 return gets you back but some students will want to click on a return (clickers vs keyboardists).

Any assistance would be appreciated.
 

Attachments

  • Book1.png
    Book1.png
    88 KB · Views: 18
  • Book2.png
    Book2.png
    45.1 KB · Views: 18

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
You could use =HYPERLINK("#"&B1&"!A1",B1) for your "Link to" formula and =HYPERLINK("#"&"Data!A1","Data") for the return.

Its also possible to lookup within the hyperlink so eg the link for Variable1 - Alpha sheet can you link you directly to that sheet & cell.
 
Upvote 0
Hi Thomas Scott,

Does this work for you?

Thomas Scott.xlsx
ABCDE
1AlphaBeta_ToadBig - Sheet
2DocumentsAlphaBeta_ToadBig - Sheet
3Variable1
4Variable2
5Variable3
6Variable4
7Variable5
Data
Cell Formulas
RangeFormula
B2:E2B2=IF(B$1="","",HYPERLINK("#'"&B$1&"'!$A$1",B$1))


Thomas Scott.xlsx
ABC
1Citations
2Return
3
Alpha
Cell Formulas
RangeFormula
A2A2=HYPERLINK("#Data!$A$1","Return")
 
Upvote 0
Solution
Hi Thomas Scott,

Does this work for you?

Thomas Scott.xlsx
ABCDE
1AlphaBeta_ToadBig - Sheet
2DocumentsAlphaBeta_ToadBig - Sheet
3Variable1
4Variable2
5Variable3
6Variable4
7Variable5
Data
Cell Formulas
RangeFormula
B2:E2B2=IF(B$1="","",HYPERLINK("#'"&B$1&"'!$A$1",B$1))


Thomas Scott.xlsx
ABC
1Citations
2Return
3
Alpha
Cell Formulas
RangeFormula
A2A2=HYPERLINK("#Data!$A$1","Return")
Brilliant! Works perfectly and more important I understand why. It was a simple IF statement that went either way depending!
 
Upvote 0

Forum statistics

Threads
1,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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