TRaP
Moderator
Inregistrat: acum 7 ani
Postari: 811
|
|
Link to Another Excel File - with the file open
I adapted this formula: =HYPERLINK("#"&"'" & B5 & "'!" & C5,D5) into this formula: =HYPERLINK("#"&"'" & H3 & "'!" & I3;I3)
where: in H3 I have the file and the sheet, in this form: [FISE_APTITUDINE.xlsm]Sheet1 in I3 I have the cell reference: $G$578
However, if I obtained the cell address using this formula: =CELL("address";INDEX([FISE_APTITUDINE.xlsm]Sheet1!$G$4:$G$984;MATCH(A432;[FISE_APTITUDINE.xlsm]Sheet1!$G$4:$G$984;0);1))
The result would be [FISE_APTITUDINE.xlsm]Sheet1!$G$578
So I could simplify this formula: =HYPERLINK("#"&"'" & H3 & "'!" & I3;I3) into this formula: =HYPERLINK("#"&K3;I3)
in K3 I have the full name [FISE_APTITUDINE.xlsm]Sheet1!$G$578
Source:
2 more options from Source:
Link Within the Same File
You can use a HYPERLINK formula to create a link to goes to a cell or range somewhere within the current workbook. The trick is to add a pound sign (#) at the start of the address.
Here are three examples of HYPERLINK formulas within the same workbook:
Type the Address: Start with a #, then type the sheet name and cell reference. Optional - Type a friendly name, such as "Budget" to appear in the cell: =HYPERLINK("#Sheet2!B2","Budget")
Use Cell References: Use the & operator to create a link location. Here, the sheet name is in cell B5, the cell address is in C5, and the friendly name is in cell D5. =HYPERLINK("#"&"'" & B5 & "'!" & C5,D5)
Type a Range Name: For a link to a workbook-level named range in the same workbook, just use the range name as the link location. =HYPERLINK("#StartCell","StartCell")
Link to Another Excel File
To create a link to another Excel fiale, in the same folder, just use the file name as the link_location argument for the HYPERLINK function. =HYPERLINK("MyFileC.xlsx","FileC")
For files that are up a level or more in the hierarchy, use two periods and a backslash for each level.
In this example, the file is 1 level up. =HYPERLINK("..\MyFileB.xlsx","FileB")
In this example, the file is 2 levels up. =HYPERLINK("..\..\MyFileA.xlsx","FileA")
Modificat de TRaP (acum 6 ani)
|
|