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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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