How to Find Matching Values and Create Hyperlinks Between Excel Sheets
Question details
The user wants to match a specific ID from one worksheet to a text string in another worksheet, extract the related key, and convert the result into a clickable hyperlink linking directly to the matched cell.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Cross-sheet data matching and internal workbook navigation.
- Observed behavior
- The user needs a formula capable of executing wildcard matching across sheets and returning a functioning internal hyperlink to the matched data, instead of just displaying the matched value.
Ensure that both worksheets are located in the same workbook, as creating local hyperlink references to different workbooks requires different syntax and may break if the files are moved.
Use XMATCH and HYPERLINK to Match and Link Data
This method uses modern functions to perform a wildcard search, retrieve the matching key, and generate a dynamic, clickable internal link to the exact destination cell.
By combining XMATCH for wildcard searching, INDEX to retrieve the key, and ADDRESS to build the cell reference, you can create a highly dynamic HYPERLINK formula.
Note that local workbook hyperlinks constructed this way may have limited functionality when viewed in Excel for the web.
Click on the cell in your primary worksheet where you want the resulting clickable key to be displayed.
Begin by typing a formula utilizing the LET function to declare variables for easier reading. Input: =LET(id, A5, match, XMATCH("*"&id&"*", Sheet2!$B$2:$B$100, 2), IFERROR(HYPERLINK("#'Sheet2'!"&ADDRESS(match+1,1), INDEX(Sheet2!$A$2:$A$100, match)), "No Match"))
Replace 'A5' with the cell containing the JIRA ID you want to look up. Replace 'Sheet2!$B$2:$B$100' with the column range containing your descriptive text, and 'Sheet2!$A$2:$A$100' with the column range containing the keys you want to return.
Press Enter to execute the formula. Click the generated hyperlink text in the cell; it should immediately navigate to the corresponding row in Sheet2.

Basic IF and HYPERLINK Structure
Use a simpler IF condition wrapped inside a HYPERLINK function for exact matches or less complex lookup scenarios.
Use WPS Spreadsheet for Advanced Formula Handling
WPS Spreadsheet provides comprehensive support for advanced modern functions like XMATCH, LET, and HYPERLINK. You can easily replicate complex lookup algorithms to seamlessly match data and navigate across large datasets efficiently.
- 1. Open Your Workbook: Launch WPS Spreadsheet and open the file containing your cross-sheet data.
- 2. Input the Match Formula: Select the target cell and enter the combined HYPERLINK and XMATCH variable formula precisely as you would in Microsoft Excel.
- 3. Test Navigation: Hit Enter to calculate the key, then click on the newly created hyperlink to jump fluidly to the matched record.

Frequently Asked Questions
Why does my HYPERLINK formula return a 'Cannot open specified file' error?
This error typically occurs if the internal link syntax is formatted incorrectly. Ensure you use the '#' symbol immediately before the sheet name prefix (for instance, `HYPERLINK("#'Sheet2'!A1", "Link")`) to signal the formula to navigate within the same active workbook.
Will these dynamic hyperlink formulas work in Excel for the web?
Formulas that dynamically generate local workbook HYPERLINK paths have limited support in Excel for the web and might fail to redirect properly upon user click. It is highly recommended to use the desktop application to maintain full functional support for internal navigation links.
Can I use VLOOKUP instead of XMATCH for dynamic hyperlinks?
Yes, you can use VLOOKUP inside the HYPERLINK function's 'friendly_name' argument to display the matched value. However, VLOOKUP alone cannot provide the cell address needed for the 'link_location' argument; you still need functions like MATCH and ADDRESS to dynamically construct the destination cell reference.




