Hyperlink Formula

Mplz

New Member
Joined
Jul 19, 2024
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Hello All,

I was sent a file that I am trying to analyze to be able to modify going forward. This was made at another site by an employee that no longer works there so I have no real reference on how it is supposed to work. The main issue is with the Hyperlink function and potentially using files outside of the workbook. This workbook is a time calculator of sorts, it has a main sheet with all of the employees at the site and hyperlinks to each employee. The hyperlink opens a sheet with that employee's information as well as their sick time etc.

The issue I'm running into is the reference inside of the hyperlink formula.

=HYPERLINK("#employee.1",+'Doe, John'!$L$4)

There is no sheet named "Employee 1", and all of the hyperlinks are formatted this way with the 'link_location' being #employee.1 and their 'friendly name' as their name with the cell reference.

I've poked around and tried to hyperlink a name with the excel feature instead of the formula and inside of the "Place in this Document" is a list of Defined Names being 'Lastname, Firstname'!employee.1 for every employee with their actual names in place of lastname/firstname. There is also defined names for all employees with the ending reference being "!enter_absent", "!enter_personal" etc. that I assume are being used somewhere in the workbook.

I think my main issue is I'm not familiar with defined names and how they work with referencing inside of the workbook. I am googling away but wanted to see if anyone had some suggestions on how I can start to comprehend the functionality and how the hyperlinks are opening up that employees sheet when the cell is clicked. There is VBA to print, close the employees tab to go back to the main dashboard, but each of the employees sheets have no code so this looks like it's all built in functionality. Any help is greatly appreciated!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
The issue I'm running into is the reference inside of the hyperlink formula.

=HYPERLINK("#employee.1",+'Doe, John'!$L$4)

There is no sheet named "Employee 1", and all of the hyperlinks are formatted this way with the 'link_location' being #employee.1 and their 'friendly name' as their name with the cell reference.
Hi Mplz,
According to Ablebits, that # sign is used to reference the active workbook.

So, it appears that hyperlink is supposed to refer to a Sheet called 'Doe, John' in that workbook. That employee.1 is supposed to be part of that Sheet name, but I can't say for sure. The L4 is the cell that would be selected when using the link. That + sign is a mystery. I'm not finding any usecases online.

Microsoft's article doesn't even mention that # sign...

You may need to rebuild the hyperlink - assuming you know where the destination is. That # sign makes me believe it's in that workbook.

I played with a few examples and these are what I cam up with:
Note: My Sheetname has a space, so I had to use single quotes for the name, and that is within the double quotes. Cell G4.

VBA Testing.xlsm
FG
1Doe, Jane
2FilepathD:\Employees\Doe, Jane.xlsx
3Filepath + Friendly NameDoe, Jane
4Sheet in This WorkbookDoe, Jane
5Build Filepath using "&"Doe, Jane
Hyperlinks
Cell Formulas
RangeFormula
G2G2=HYPERLINK("D:\Employees\Doe, Jane.xlsx")
G3G3=HYPERLINK("D:\Employees\Doe, Jane.xlsx","Doe, Jane")
G4G4=HYPERLINK("#'Doe, Jane'!A1","Doe, Jane")
G5G5=HYPERLINK("D:\Employees\" & $G$1 & ".xlsx","Doe, Jane")
 
Upvote 0
Hi Mplz,
According to Ablebits, that # sign is used to reference the active workbook.

So, it appears that hyperlink is supposed to refer to a Sheet called 'Doe, John' in that workbook. That employee.1 is supposed to be part of that Sheet name, but I can't say for sure. The L4 is the cell that would be selected when using the link. That + sign is a mystery. I'm not finding any usecases online.

Microsoft's article doesn't even mention that # sign...

You may need to rebuild the hyperlink - assuming you know where the destination is. That # sign makes me believe it's in that workbook.

I played with a few examples and these are what I cam up with:
Note: My Sheetname has a space, so I had to use single quotes for the name, and that is within the double quotes. Cell G4.

VBA Testing.xlsm
FG
1Doe, Jane
2FilepathD:\Employees\Doe, Jane.xlsx
3Filepath + Friendly NameDoe, Jane
4Sheet in This WorkbookDoe, Jane
5Build Filepath using "&"Doe, Jane
Hyperlinks
Cell Formulas
RangeFormula
G2G2=HYPERLINK("D:\Employees\Doe, Jane.xlsx")
G3G3=HYPERLINK("D:\Employees\Doe, Jane.xlsx","Doe, Jane")
G4G4=HYPERLINK("#'Doe, Jane'!A1","Doe, Jane")
G5G5=HYPERLINK("D:\Employees\" & $G$1 & ".xlsx","Doe, Jane")
Amazing thank you for the links they were definitely helpful. I've yet to fully figure it out, but the "Employee.1" is a defined name that is then referencing their individual sheets named after each employee. Seems like a weird way to reference but I didn't make it so I'll keep digging. Thanks again
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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