How to Create Dynamic Hyperlink in Excel (3 Quick Ways)

The image below is the dataset example.

Dynamic Hyperlink Excel

Note that this is a basic dataset to keep things simple. In a practical scenario, you may encounter a larger and more complex dataset.
To make the examples compatible with real-life cases, let’s split the two lists into two different sheets. The Actor name list is in the Dataset worksheet.

And the details in the Details worksheet.

Dynamic Hyperlink Excel

Read More: How to Create a Hyperlink in Excel


Method 1 – Use HYPERLINK Function to Create Dynamic Hyperlink

Steps:

  • Select a cell to create a dynamic hyperlink.
  • Add the following formula in the cell to create a dynamic hyperlink.
=HYPERLINK("#"&"Details!"&"B5","Click to See Details")

Use HYPERLINK Function to Create Dynamic Hyperlink

  • The sheet name is Details. We have written the name followed by a “!”. Excel differentiates the sheet name and cell reference through “!”. This will generate the dynamic hyperlink.

  • Click the link and it will take you to the destination cell.

Use HYPERLINK Function to Create Dynamic Hyperlink

  • Use the AutoFill feature and generate the hyperlink for the rest of the values. But, the cell references will not be updated automatically.

  • Change the cell references manually.

Use HYPERLINK Function to Create Dynamic Hyperlink

  • For Leonardo DiCaprio, we have modified the cell reference to C9. This will now be linked with the correct cell.


Method 2 – Apply MATCH Function to Create Dynamic Hyperlink

Steps:

  • Create a drop-down list for easing the selection of actors. For this, select a cell first to define the location of the drop-down list.
  • Go to the Data tab.
  • Pick Data Validation from the Data Tools tab.

Apply MATCH Function to Create Dynamic Hyperlink

  • Data Validation wizard will pop up. Go to the Setting
  • Select List in the Allow section and define the range in the Source 
  • Click on OK to finish the drop-down creation process.

  • The drop-down with the selected data can be seen.

Apply MATCH Function to Create Dynamic Hyperlink

  • Input the following formula to create a dynamic hyperlink.
=HYPERLINK("#"&"Details!B"&(MATCH(B5,Details!$B$5:$B$9,0)+4),"Click to See Details")

  • Press the ENTER button to have a dynamic hyperlink. Click on the hyperlink and it will take you to the correct destination.

Read More: How to Activate Multiple Hyperlinks in Excel


Method 3 – Combine INDEX and MATCH Functions to Create Dynamic Hyperlink

Steps:

  • Generate a drop-down list first.

Combine INDEX and MATCH Functions to Create Dynamic Hyperlink

  • Input the following formula in a cell where you want to generate a dynamic hyperlink.
[
=HYPERLINK("#"&CELL("address",INDEX(Details!B5:B9,MATCH(B5,Details!B5:B9,0))),"Click to See Details")

  • Press ENTER to have a dynamic hyperlink. Clicking on the hyperlink will take you to the defined destination.

Combine INDEX and MATCH Functions to Create Dynamic Hyperlink

Read More: How to Edit Hyperlink in Excel


Download Practice Workbook


Further Readings

<< Go Back To Hyperlink in Excel | Linking in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Shakil Ahmed
Shakil Ahmed

My name’s Shakil. My articles are targeted to support you in enriching knowledge regarding different features related to Microsoft Excel. I am fond of literature, hope some knowledge from them will help me providing you some engaging articles even though some weary technical terms.

4 Comments
  1. Dear Shakil Ahmed,

    nicely mentioned, can we automate the sheet name based on a cell value? what I mean to say that as you mentioned above the cell value linked to details sheet but what would be the way to link the individual sheets based on cell value?

    • Hi Samad, thank you for reaching out. Fortunately there is a way to automate sheet name based on a cell value. In the image, you can see that I have a cell value in A1. I also have values in A1 cell of the other sheets. I will change the name of the corresponding sheets based on the value in A1.

      Now, type the following code in a VBA module and run it.

      Sub ChangeSheetName()
      Dim mn_Worksheet As Worksheet
      For Each mn_Worksheet In Sheets
      mn_Worksheet.Name = mn_Worksheet.Range("A1")
      Next mn_Worksheet
      End Sub

      You can see that the name of the sheet changes according to the cell value of A1. If you store sheet names in another cell such as B5, you need put this cell reference instead of A1 in the VBA code. Otherwise you will encounter errors.

  2. So useful and clearly explained! Thanks!

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo