Creating a Dynamic Hyperlink in Excel & Use of Hyperlink Function (2024)

This article will show you the steps needed to ensure your reference cell/section does not stay static, and how to create dynamic hyperlinks in Excel.

This is the second part of our hyperlink resource on our website. You can refer back to the first part by clicking here. To summarize, we explained how you can access different worksheets or schedules within a worksheet by inserting a hyperlink. Specifically, we reviewed ways to i) insert a hyperlink; ii) make the link more user-friendly and informative; and iii) prepare a table of contents for navigation purposes.

This powerful technique has one potential shortfall: if you insert/delete columns or rows or move cells around in the spreadsheet (i.e. cut and paste), you need to ensure that your reference points are dynamic.

Placing a standard hyperlink is useful if your primary purpose is to navigate to other tabs or when your model is locked for adding/deleting rows and columns. Using the example below, we insert the hyperlink in cell A5 to refer to the Balance Sheet Check (cell A45).

However, with the addition of 2 rows to insert a link for the Income Statement in row A7, the hyperlink still points to cell A45 rather than the desired cell A47 as illustrated in the image below.

To solve this issue, we need to use a defined name. Defined names let you refer to a cell or to an array of cells by its name rather than specific column and row coordinates (e.g. A45).

To create a defined name, select a cell then click in the “Name Box”located in the top left corner above cell A1. You can assign any given name to the cell that does not already exist in the worksheet and press enter to name the cell. You can view all the defined names in the workbook by clicking on the dropdown menu next to theNameBox.

Creating a Dynamic Hyperlink in Excel & Use of Hyperlink Function (1)

Note that while names are not case sensitive, there are several restrictions in assigning names to cells including the following:

  • Names must begin with a letter, an underscore (_), or a backslash (\)
  • Names cannot contain spaces or most punctuation characters. However, you can join letters by using an underscore (_) or a period (.)
  • Names cannot conflict with cell references such as “AB1” or “W15”
  • You can use single letters as names. But you can’t use “r” and “c” as they reserved for Excel shortcuts

Once the defined name is created, you can use the Name Manager. You can edit the defined name as needed by going to the Formula bar tab and clicking on Name Manager. The shortcut to Name Manageris through CTRL + F3. F3 by itself launches the Paste Names menu and provides a list of all created names in the workbook. Note that the alternative method to add a New Name is by clicking “New…” box on top left when launching the Name Manager menu.

The image below shows the New Name menu and the creation of the name “BalanceSheet_CHECK” in cell A45:

  • From the cell that will have the hyperlink, in this case A5, use the keyboard shortcut to open the hyperlink menu (Ctrl + K) and the Edit Hyperlink menu will appear. You can also right click and select ”Edit Hyperlink”.
  • Click the “Place in This Document” on the Left. The defined name should now appear on the menu bar under “Defined Names”. Now, you can add any extra rows between the “Balance Sheet Check” link and the balance sheet segment. Just like we did earlier, the referred cell(s) for the hyperlink is unaffected.

Creating a Dynamic Hyperlink in Excel & Use of Hyperlink Function (2)

Hyperlinks that use a defined name also create the flexibility to copy/cut and paste the link to other worksheet(s) while keeping the reference cell(s) unchanged. This lets you copy a hyperlink into multiple locations in your model (such as a “Return to Main Menu” link).

The HYPERLINK Function Alternative:

You can also created Hyperlinks using the HYPERLINK function. This is particularly useful to link to a list of locations/need the hyperlink to refer to an Excel Table range.

To insert a HYPERLINK function, select the intended cell you’d like to contain the hyperlink and insert the following syntax:

=HYPERLINK(link_location,[friendly_name])

Creating a Dynamic Hyperlink in Excel & Use of Hyperlink Function (3)

The first argument should include the targeted reference cell or external link (Email address / URL, document file path). The second argument is the name that is the displayed name given to the hyperlink. The latter is optional and if not inserted, the cell will display the link location as the name of the hyperlink.The format for the link location is, however, slightly different if you would like to refer to a defined name that you have assigned to a cell or a table, for instance. You need to add a hashtag (#) in front of the defined name, as illustrated in the syntax below. This can be followed by the assigned name, with each input embedded in double quotation marks (“ ”). Be sure to add the defined name as the friendly_name argument so that the # won’t appear in front of the name of the hyperlink.

=HYPERLINK(“#Defined Name”,[friendly_name])

In the example below, we have inserted the assigned defined name for Balance Sheet Check in cell C51. We’ve used it as our link location in the first part of the HYPERLINK function. This is the equivalent of using the defined name directly in the function in the following format:

=HYPERLINK(“#”&”BalanceSheet_Check”,”Cell Link”)

Creating a Dynamic Hyperlink in Excel & Use of Hyperlink Function (4)

Excel will also provide a list of existing defined names that match what you start to type if you start typing the name of the cell after entering “#”& without the double quotation marks. Once your desired name is selected, add the double quotations around it. This ensures that the function works properly.

Creating a Dynamic Hyperlink in Excel & Use of Hyperlink Function (5)

Hyperlinks are extremely valuable tools to create an easy navigation system for model users. With the techniques noted above you can avoid common problems. Make sure that your models remain organized and easy to use.

If you enjoyed reading this and want to improve your skills further, then try our Excel Best Practices Self-Study Course. You can also browse our other range ofSelf-Study Courses here.

Training The Street also offers a more advanced In-Person/Virtual Public Course called,Applied Excel. Where you can gain the skills needed for parsing, analyzing, and presenting information from large data sets.

Browse our other Resources:

Creating a Dynamic Hyperlink in Excel & Use of Hyperlink Function (2024)
Top Articles
The 15 Most Consistent Stocks of the Last 50 Years - WealthFit
Sample Letter Disputing Errors on Credit Reports to the Business that Supplied the Information
Katie Nickolaou Leaving
neither of the twins was arrested,传说中的800句记7000词
Boomerang Media Group: Quality Media Solutions
oklahoma city for sale "new tulsa" - craigslist
Craigslist Furniture Bedroom Set
The Pope's Exorcist Showtimes Near Cinemark Hollywood Movies 20
Poplar | Genus, Description, Major Species, & Facts
Craigslist Phoenix Cars By Owner Only
PGA of America leaving Palm Beach Gardens for Frisco, Texas
Shooting Games Multiplayer Unblocked
Troy Athens Cheer Weebly
6001 Canadian Ct Orlando Fl
Apus.edu Login
Nashville Predators Wiki
Icivics The Electoral Process Answer Key
Morristown Daily Record Obituary
Best Transmission Service Margate
Conscious Cloud Dispensary Photos
THE FINALS Best Settings and Options Guide
Teekay Vop
Raw Manga 1000
Sound Of Freedom Showtimes Near Movie Tavern Brookfield Square
Impact-Messung für bessere Ergebnisse « impact investing magazin
4 Methods to Fix “Vortex Mods Cannot Be Deployed” Issue - MiniTool Partition Wizard
Valley Craigslist
Alternatieven - Acteamo - WebCatalog
Shoe Station Store Locator
031515 828
Tripcheck Oregon Map
10 Best Quotes From Venom (2018)
Die wichtigsten E-Nummern
Desales Field Hockey Schedule
Bi State Schedule
Redding Activity Partners
Dentist That Accept Horizon Nj Health
Southern Democrat vs. MAGA Republican: Why NC governor race is a defining contest for 2024
oklahoma city community "puppies" - craigslist
Gold Nugget at the Golden Nugget
Albertville Memorial Funeral Home Obituaries
O'reilly's Palmyra Missouri
Lyndie Irons And Pat Tenore
Levi Ackerman Tattoo Ideas
National Weather Service Richmond Va
Garland County Mugshots Today
Collision Masters Fairbanks
22 Golden Rules for Fitness Beginners – Barnes Corner Fitness
St Vrain Schoology
Makes A Successful Catch Maybe Crossword Clue
Iupui Course Search
Lightfoot 247
Latest Posts
Article information

Author: Kelle Weber

Last Updated:

Views: 5665

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Kelle Weber

Birthday: 2000-08-05

Address: 6796 Juan Square, Markfort, MN 58988

Phone: +8215934114615

Job: Hospitality Director

Hobby: tabletop games, Foreign language learning, Leather crafting, Horseback riding, Swimming, Knapping, Handball

Introduction: My name is Kelle Weber, I am a magnificent, enchanting, fair, joyous, light, determined, joyous person who loves writing and wants to share my knowledge and understanding with you.