I need to hyperlink a cell in one spreadsheet to a corresponding cell in another spreadsheet. So for example, C7 in sheet1 has a hyperlink that will bring you to C7 in sheet 2. I need to do this for a fairly large spreadsheet and each hyperlink has to be different. Is there a way to do this on mass without having to go to each cell and set the hyperlink for each cell independently? (Using MS Office 2010)
Select a cell where you want to insert a hyperlink. Right-click on the cell and choose the Hyperlink option from the context menu. The Insert Hyperlink dialog window appears on the screen. Choose Place in This Document in the Link to section if your task is to link the cell to a specific location in the same workbook.
You can use the following excel formula: (paste into cell C7)
=HYPERLINK("[Book1.xlsx]Sheet2!"&CELL("address",C7),"click")
Notes:
[Book1.xlsx]
must be the name of the workbookSheet2
must nbe name name of the sheet you are hyperlinking toEssentially it uses the above two as a prefix to the link, and then the address of the current cell (c7 in the case of your example) to finish the link.
The above example once pasted into cell C7 can be dragged down to generate links based on the formula cell's address.
Update: (per chris)
=HYPERLINK("#'Sheet2'!"&CELL("address"),"click")
Sorry to nitpick, it also can look like this:
" - starting quote
# - local book (spreadsheet)
'Sheet2' - name of sheet you are going to (has to be in single quotes)
!C7 - cell in the other sheet you are trying to go to
"- ending quote
, - separating comma used in the hyperlink syntax
"click" - link text to appear in cell
Final function syntax:
=HYPERLINK("#'Sheet2'!C7","click")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With