Use Excel MATCH with Multiple Conditions and Partial Text
Question details
Find a value using partial text and a matching amount as two conditions.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The text in E5 must be found within text in column V, while the amount in G5 must match the amount on the same row in column W. The corresponding result is in column U.
- Observed behavior
- A direct wildcard comparison can return #N/A when the lookup text is only part of the text in the other column.
Check that E5 contains the text to find and G5 contains the amount to match. Confirm that columns U, V, and W contain the return values, searchable text, and amounts on corresponding rows, and adjust the example ranges to fit your data.
Return the First Match with INDEX, MATCH, and SEARCH
Use this formula when you need the first row that contains the text and has the matching amount.
Click the cell where you want the value from column U to appear.
Type =IFERROR(INDEX($U$2:$U$1000,MATCH(1,INDEX((ISNUMBER(SEARCH(E5,$V$2:$V$1000)))*(G5=$W$2:$W$1000),0),0)),"") and press Enter.
Compare the returned value with its row in columns V and W. If the result is blank, check that E5 appears within the column V text and that G5 matches the amount in column W.

Return All Matching Values with FILTER
Use FILTER in a supported version of Excel when more than one row may meet both conditions.
Match Partial Text and Amounts in WPS Spreadsheets
Use INDEX, MATCH, and SEARCH in WPS Spreadsheets to return the first value that meets both conditions.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Check the lookup cells: Enter or verify the partial text in E5 and the amount in G5, then check that columns U, V, and W contain the corresponding data.
- 3. Enter the formula: Click an empty result cell and enter =IFERROR(INDEX($U$2:$U$1000,MATCH(1,INDEX((ISNUMBER(SEARCH(E5,$V$2:$V$1000)))*(G5=$W$2:$W$1000),0),0)),"").
- 4. Review and save: Press Enter, check the returned value, and use File > Save to save your workbook.

Frequently Asked Questions
Why does the formula return a blank?
IFERROR hides errors by returning an empty string. Check that E5 is contained in a column V cell, that G5 matches the corresponding column W amount, and that all ranges cover the relevant rows.
Does SEARCH distinguish between uppercase and lowercase text?
No. SEARCH is case-insensitive. Replace SEARCH with FIND in the formula if capitalization must match.
What happens if several rows meet both conditions?
The INDEX and MATCH formula returns the first matching row. In a supported Excel version, use the FILTER formula to return all matching values.
What if E5 is empty?
SEARCH can treat an empty lookup string as found in every text cell, so the formula may return a row based only on the amount. Enter a nonempty search term in E5 before using the formula.
Why might matching amounts not be recognized?
A number stored as text may not equal a numeric value. Check the formats and values in G5 and column W, and convert text-formatted numbers to numbers if needed.




