How to insert a reference into a HYPERLINK function relative to current cell

Lukemars

New Member
Joined
Dec 13, 2016
Messages
1
I'm trying to automatically create a hyperlink to a specific cell using the Hyperlink function.


=HYPERLINK("#'AM 5819 0001'!D10",

IF(D13<>"",CONCATENATE($AA$2,D13),"")

)

The first line is the cell reference, the second is just specifying what to display based on whether theres a value in the cell D13.
This formula works, but the cell references the cell D10. I want it to instead link to the D13 cell used in the second part of the equation.

I can use the equation below to call the specific cell i need based on the current cell,
=CELL("address",INDIRECT(ADDRESS(ROW(),COLUMN()-25)))


Is it possible to combine these two? I have tried but it returns an error. Code as below.


=HYPERLINK("#'AM 5819 0001'!CELL("address", INDIRECT(ADDRESS(ROW(),COLUMN()-25)))",

IF(D13<>"",CONCATENATE($AA$2,D13),"")​

)​



Thank you in advance!
 

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.

Forum statistics

Threads
1,190,646
Messages
5,982,114
Members
439,756
Latest member
alice128

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
Top