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
Topic: Property and casualty insurance in Canada
7 Ways You Shouldn't Spend Your Tax Refund
Nullreferenceexception 7 Days To Die
Wannaseemypixels
Recent Obituaries Patriot Ledger
Top Financial Advisors in the U.S.
Green Bay Press Gazette Obituary
Apply A Mudpack Crossword
Hallowed Sepulchre Instances & More
CSC error CS0006: Metadata file 'SonarAnalyzer.dll' could not be found
Waive Upgrade Fee
2021 Tesla Model 3 Standard Range Pl electric for sale - Portland, OR - craigslist
Simple Steamed Purple Sweet Potatoes
Culos Grandes Ricos
zopiclon | Apotheek.nl
Evangeline Downs Racetrack Entries
Regal Stone Pokemon Gaia
Guidewheel lands $9M Series A-1 for SaaS that boosts manufacturing and trims carbon emissions | TechCrunch
Connect U Of M Dearborn
Espn Horse Racing Results
Q Management Inc
Union Ironworkers Job Hotline
Orange Pill 44 291
Dr Ayad Alsaadi
Anotherdeadfairy
Accuweather Minneapolis Radar
Klsports Complex Belmont Photos
Watson 853 White Oval
manhattan cars & trucks - by owner - craigslist
Riverstock Apartments Photos
Stephanie Bowe Downey Ca
Haunted Mansion Showtimes Near Cinemark Tinseltown Usa And Imax
Aladtec Login Denver Health
Myhrconnect Kp
#scandalous stars | astrognossienne
Tamilyogi Ponniyin Selvan
Kornerstone Funeral Tulia
Reese Witherspoon Wiki
Lima Crime Stoppers
Live Delta Flight Status - FlightAware
Craigs List Hartford
Cl Bellingham
Pain Out Maxx Kratom
Candise Yang Acupuncture
Human Resources / Payroll Information
Canvas Elms Umd
Craigslist Pet Phoenix
Morbid Ash And Annie Drew
Bluebird Valuation Appraiser Login
Coors Field Seats In The Shade
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.