30 Advanced Excel Tips for 2026

Excel Champs / Excel Formulas List / Dynamic Hyperlink
By Puneet Gogia (Microsoft MVP)

How to Create a Dynamic Hyperlink in Excel

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

The HYPERLINK function builds a link from a cell value rather than a fixed address, so the link changes when the cell does: =HYPERLINK(B1,"Open") creates a clickable link to whatever web address sits in B1, with “Open” as the display text. Pair B1 with a dropdown and one cell becomes a link switcher.

To jump somewhere inside the same workbook, prefix the reference with a hash: =HYPERLINK("#"&B1,"Go") where B1 holds something like Sheet2!A1. To link to a named range, the same syntax works: =HYPERLINK("#"&"MyRange","Go").

Three things worth knowing. If the display-text argument is left out, the cell shows the raw address instead.

The link is only a formula result, so it won’t appear in Excel’s Edit Links or hyperlink list, and Ctrl+K won’t show it. And if the address is invalid Excel gives no warning until someone clicks — wrap it in =IFERROR(HYPERLINK(B1,"Open"),"No link") if the source cell might be blank.

To create a dynamic hyperlink where you can change the link that you have specified, you need to use Excel’s HYPERLINK function. This function allows you to specify a link to a web address or cell in the workbook.

create-dynamic-hyperlink

In this tutorial, we will learn to write a formula for this.

You can use the below steps for this.

  1. First, enter the HYPERLINK function in a cell.
  2. After that, in the first argument, refer to the cell where you are going to update the hyperlink address. Let’s say cell B1.
  3. Next, in the second argument, enter a friendly name for the link to show in the cell.
  4. In the end, enter the closing parenthesis and hit Enter.
formula-to-create-dynamic-hyperlink
=HYPERLINK(B1,"Hello")

In cell B1, we have a drop-down list to change the web address. And the moment you change the link address in cell B1, it will also change the link in the formula.

drop-down-list-to-change-web-address

In the same way, you can create a dynamic hyperlink for a cell in the workbook.

dynamic-hyperlink-for-a-cell-address
=HYPERLINK("#"&B1,"Hello")

In the above formula, we have used the “#” in combination with the cell reference of cell B1. Now, as soon as you change the cell address in cell B1, it changes the link in the formula.

The # tells Excel that the link goes to a place in the same workbook, not to a web address. Without it, Excel treats the address as a file name and shows the “Cannot open the specified file” message.

To jump to another sheet, add the sheet name and an exclamation mark before the cell address. When the sheet name is in a cell (say B1), use the following formula. The single quotes around the sheet name make it work even when the name has spaces.

=HYPERLINK("#'"&B1&"'!A1",B1)

Now, when you change the sheet name in B1, the link takes you to cell A1 of that sheet, and the link shows the sheet name.

You can also make the link find its target. The following formula looks for the value from D1 in A2:A100 and links to that cell. CELL(“address”) returns the address of the cell that INDEX and MATCH find, like $A$3.

=HYPERLINK("#"&CELL("address",INDEX(A2:A100,MATCH(D1,A2:A100,0))),"Go to "&D1)

If the value isn’t in the list, MATCH returns #N/A and so does the link, so you can wrap the formula in IFERROR to show a message instead.

HYPERLINK also works with email addresses. Use “mailto:” before the address, and add a subject from another cell if you want. In the following formula, B1 has the email address and C1 has the subject:

=HYPERLINK("mailto:"&B1&"?subject="&C1,"Send Email")

Frequently Asked Questions

The sheet name or cell address in the link doesn’t exist, or a sheet name with spaces is missing its single quotes. Check the text the formula builds, like #’Sales Data’!A1, by entering the same formula without HYPERLINK in another cell.

Click the cell and hold the mouse button until the pointer changes to a cross, then let go. You can also select a cell next to it and use the arrow keys.

Yes. The HYPERLINK function works in Excel for Microsoft 365, Excel for the web and Excel for Mac. Links to web addresses and to places in the same workbook work the same way in all of them.

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel

Leave a Comment