logo
search
Function Problems

Create Dynamic Excel Hyperlinks That Follow Reordered Data

Steve KSteve K Sep 27, 2026 869 views

Question details

The user needs to create a hyperlink that dynamically links to the correct row on another worksheet even after the target data has been reordered or sorted.

Create Dynamic Excel Hyperlinks That Follow Reordered Data
Product
Excel 2021
Device & OS
not provided
Scenario
Linking to data on another worksheet that frequently changes its row position due to sorting or reordering.
Observed behavior
Standard static hyperlinks point to a fixed cell reference, which points to the wrong data once the target worksheet is sorted or moved.
Before you start

Ensure your workbook is saved locally, as dynamic formulas referencing the workbook name require a saved file to function correctly.

Solution 1Recommended

Use the HYPERLINK and MATCH Functions

Combine the HYPERLINK and MATCH functions to look up the new row position dynamically based on a unique value.

By using the MATCH function inside the HYPERLINK formula, Excel calculates the target row position dynamically based on a unique lookup value. This ensures the link remains accurate even if the target worksheet is sorted.

1
Identify Lookup Value

Identify your target lookup value and the exact column it exists in on the destination worksheet.

2
Enter Formula Template

In the cell where you want the link, enter the formula template: =HYPERLINK("[WorkbookName.xlsx]'TargetSheet'!ColumnLetter" & MATCH(LookupValue, TargetSheet!LookupColumn:LookupColumn, 0), "Link Text").

3
Customize Formula

Replace WorkbookName.xlsx with your saved file name, and update the sheet names and references. For example: =HYPERLINK("[ExcelSheet.xlsx]'Club ID'!B"&MATCH(A3,who!A:A,0),"Go to Value").

4
Apply Formula

Press Enter to apply the formula and click the resulting link to test the dynamic routing.

Use the HYPERLINK and MATCH Functions
Workbook Reference: If you receive a 'File Not Found' error, double-check that your workbook name is spelled perfectly inside the brackets and the file is saved.
Advanced Spreadsheet Features

Create Dynamic Hyperlinks Easily in WPS Spreadsheet

WPS Spreadsheet offers full compatibility with advanced Excel functions, including MATCH and HYPERLINK, allowing you to manage dynamic data seamlessly without complex setups.

  1. 1. Open File: Open your workbook in WPS Spreadsheet.
  2. 2. Start Formula: Select the cell for your hyperlink and type =HYPERLINK(.
  3. 3. Nest MATCH Function: Nest the MATCH function to find your target row, appending it to the sheet reference.
  4. 4. Complete Formula: Add your friendly link name in quotes, close the parentheses, and press Enter.
Fully compatible with Microsoft Excel formulas and .xlsx file formatsBuilt-in support for advanced lookup and dynamic referencing functionsLightweight and fast even with large datasets containing complex formulas
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get a 'File Not Found' error when clicking my dynamic hyperlink?

This usually happens if the workbook name inside the formula is misspelled or if the workbook hasn't been saved yet. Ensure your file is saved to your local drive and the filename in the brackets perfectly matches the saved file name.

Can I use the CELL function to automatically detect the workbook name?

Yes, you can combine CELL("filename"), FIND, and MID functions to extract the workbook name dynamically. However, the file must be saved first for CELL("filename") to return a value successfully.

Are spilled ranges (#) supported for this dynamic link method in Excel 2021?

The # symbol used for spilled ranges behaves differently in Excel 2021 compared to Microsoft 365 and is generally not supported for dynamic hyperlink construction in the same way. It is recommended to use the MATCH function for exact row lookups instead.