Excel hyperlink to a specific cell

后端 未结 3 951
长发绾君心
长发绾君心 2020-12-05 20:45

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

相关标签:
3条回答
  • 2020-12-05 21:03

    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")
    
    0 讨论(0)
  • 2020-12-05 21:10

    Three years late, I would go a bit further and use ADDRESS(row,column) to build the cell address, rather than use CELL() which is a volatile function. If you're building a large spreadsheet and using a volatile function more than just a handful of times, you're going to notice the performance hit.

    ADDRESS() is not volatile, so it doesn't trigger a recalculation all the time, and it's also more flexible to use.

    =HYPERLINK("#'Sheet2'!"&ADDRESS(ROW(),COLUMN()),"click")
    

    Replace ROW() and COLUMN() with whatever number you require.

    For example, for a specific cell in Sheet2 use

    =HYPERLINK("#'Sheet2'!"&ADDRESS(ROW(Sheet2!C7),COLUMN(Sheet2!C7)),"click")
    

    If you want Sheet2, third column, and 1 row below (relatively), use

    =HYPERLINK("#'Sheet2'!"&ADDRESS(ROW()+1,3),"click")
    
    0 讨论(0)
  • 2020-12-05 21:22

    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 workbook
    • Sheet2 must nbe name name of the sheet you are hyperlinking to

    Essentially 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") 
    
    0 讨论(0)
提交回复
热议问题