Relative Hyperlink

doug.washburn

New Member
Joined
May 18, 2004
Messages
49
Hello,

I want to create a hyperlink on a worksheet that takes you to another cell relative to the cell the user happens to be on.

For example, if you are on a cell in row 5, the hyperlink takes you to AA5. If you are on row 12, it takes you to AA12. Always the same column (AA) but relative to the row you are on.

Any suggestions?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,941
This is one way:

=HYPERLINK("["&SUBSTITUTE(LEFT(CELL("filename",A5),FIND("]",CELL("filename",A5))-1),"[","")&"]'"&MID(CELL("filename",A1),FIND("]",CELL("Filename"))+1,32)&"'!AA"&ROW(),"AA"&ROW())

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,190,624
Messages
5,981,998
Members
439,750
Latest member
creaseA

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