Create Dynamic Excel Hyperlinks That Follow Reordered Data
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.

- 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.
Ensure your workbook is saved locally, as dynamic formulas referencing the workbook name require a saved file to function correctly.
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.
Identify your target lookup value and the exact column it exists in on the destination worksheet.
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").
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").
Press Enter to apply the formula and click the resulting link to test the dynamic routing.

Link to Multiple Cells with Named Ranges
If you need to jump to a block of cells rather than a single row, use a Named Range.
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. Open File: Open your workbook in WPS Spreadsheet.
- 2. Start Formula: Select the cell for your hyperlink and type =HYPERLINK(.
- 3. Nest MATCH Function: Nest the MATCH function to find your target row, appending it to the sheet reference.
- 4. Complete Formula: Add your friendly link name in quotes, close the parentheses, and press Enter.

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.




