Dynamic excel hyperlink

Ebramluis

New Member
Joined
Jul 9, 2021
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
I have
Source.Xlsx
Contains employee details
Empcode empname empage

1001 mark 35
1002 Peter 40
1003 William 27

And for each employee I have a sheet named with empcode
1001.xlsx
1002.xlsx
1003.xlsx


I make a hyperlink of the Empcode at source. Xlsx
And I want to make the direction on it dynamic depends on the Empcode

If I press on 1002 at the source. Xlsx at the Empcode column the link go to 1002.xlsx etc

Thank you for advance
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi Ebramluis,

Depending how your directory is structured you may need to provide the explicit directory.

e.g. 1001.xlsx is in my current directory so works just by adding ".xlsx". 1002 is in a sub-directory so I need to add that.

Source.xlsx
ABCD
1EmpcodeNameAgeLink
21001mark351001
31002Peter401002
41003William271003
Sheet1
Cell Formulas
RangeFormula
D2,D4D2=HYPERLINK(A2&".xlsx",A2)
D3D3=HYPERLINK("C:\MrExcel\Ebramluis\"&A3&".xlsx",A3)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
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