How to Find Text from a Reference List in WPS Office Excel Cells
Question details
The user needs a formula to search a longer text cell for any name or computer ID from a reference list and return the associated result for the first match.

- Product
- WPS Office Spreadsheet
- Device & OS
- not provided
- Scenario
- A cell contains a longer service-ticket summary and the user wants to check it against a separate reference list of names and computer IDs, then return the related value.
- Observed behavior
- The formula should return the first matching associated value and produce a blank cell when no match is found.
Prepare the worksheet so the text to search is in A2, names are in E3:E7, computer IDs are in F3:F7, and return values are in G3:G7. If your reference ranges differ, adjust the formula ranges before entering it.
Use SEARCH, ISNUMBER and INDEX/MATCH to Return the First Matching Reference
Use this solution when you need to search a longer text cell for any name or computer ID from a reference list and return the associated result.
This formula uses SEARCH to look for each reference list item inside cell A2. ISNUMBER converts found positions to TRUE/FALSE, and the two conditions are added so a match in either the name column or the computer ID column counts. INDEX/MATCH then returns the first row where a match is found, and IFERROR returns a blank when there is no match.
Click the cell where you want the returned value to appear, for example B2.
In the formula bar, enter =IFERROR(INDEX($G$3:$G$7,MATCH(1,ISNUMBER(SEARCH($E$3:$E$7,A2))+ISNUMBER(SEARCH($F$3:$F$7,A2)),0)),"").
Press Enter if your WPS Office version supports dynamic arrays; otherwise press Ctrl+Shift+Enter to confirm it as an array formula.
Replace E3:E7, F3:F7, and G3:G7 with the full ranges for your names, computer IDs, and return values, keeping the same column structure.
The formula returns the first matching result from column G, or an empty cell when no name or computer ID is found in A2.

Find Reference List Matches in WPS Office Excel
Use WPS Office Spreadsheet to search longer text cells against a name or computer ID reference list and return the first matching result with a SEARCH, ISNUMBER and INDEX/MATCH formula.
- 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open the Excel file that contains the service-ticket summary and reference list.
- 2. Enter the formula in the result cell: Click the cell where the result should appear, paste the formula, and adjust the ranges to match your name, computer ID, and return value columns.
- 3. Confirm the array formula: Press Enter in WPS versions with dynamic arrays, or press Ctrl+Shift+Enter in older versions.
- 4. Save the workbook: Save the file as .xlsx to keep it compatible with Microsoft Excel and WPS Office.

Frequently Asked Questions
Why does the formula need Ctrl+Shift+Enter in some Excel versions?
In older versions without dynamic arrays, SEARCH over a range returns an array result, so the formula must be confirmed with Ctrl+Shift+Enter. Microsoft 365 and newer WPS versions that support dynamic arrays can calculate it with Enter.
Can I increase the reference list range to include more names and IDs?
Yes. Replace $E$3:$E$7, $F$3:$F$7, and $G$3:$G$7 with your full range, making sure all three ranges contain the same number of rows.
What happens if none of the names or computer IDs appear in the text cell?
The IFERROR function returns an empty string, so the result cell appears blank instead of showing an #N/A error.
Does this work when the text in A2 contains extra words before or after the name or ID?
Yes. SEARCH looks for the list item anywhere inside cell A2, so it can match inside longer service-ticket summaries.
Can I return a value from a different column than G?
Yes. Change $G$3:$G$7 to whichever column contains the value you want returned, and keep the name and ID search ranges pointing to the correct columns.




