Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Tying a Hyperlink to a Specific Cell.
by Allen Wyatt
(last updated May 16, 2015)
Manoj created a hyperlink between two worksheets by using copy and paste hyperlink command (the hyperlink targets a specific cell). Later he inserted some rows on the target worksheet that caused the target cell to move down a bit. Even though the target cell moves down, the hyperlink continues to reference the old cell location. Manoj is wondering if there is a way to make sure that the hyperlink always targets the cell he intended when creating the link.
In Excel, hyperlink addresses are essentially text that references a cell. Formulas in Excel link to cell references which adjust when changes in the worksheet structure are made (inserting and deleting rows and columns, etc.). Hyperlink addresses, being text instead of cell references, will not adjust with such changes.
The solution is to create a named range that refers to the target cell you want used in the hyperlink. (You do this by displaying the Formulas tab of the ribbon and then clicking on Define Name in the Defined Names group.) When you create your hyperlink, you can then reference this named range in the Insert Hyperlink dialog box. (See Figure 1.)
Figure 1. The Insert Hyperlink dialog box.
At the left of the dialog box, click Place In This Document. You'll then see a list of named ranges in your workbook and you can choose which one you want to be associated with this hyperlink. In this way, you allow Excel to take care of translating between the name and the address for that name, which means that the hyperlink will always point to the cell you want it to point to.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6195) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Tying a Hyperlink to a Specific Cell.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
Need to create links to many filenames on your system? Here are a couple of quick ways to get just the connection you need.Discover More
Excel allows you to define hyperlinks in your worksheets, and these can target specific cells on other worksheets. Here are ...Discover More
Excel will cheerfully keep track of all sorts of hyperlinks for you. If you want to change the hyperlink in some way, don't ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.