Function Problems

Use Excel MATCH with Multiple Conditions and Partial Text

Ayan MasoodAyan Masood Nov 27, 2026 868 views

Question details

Find a value using partial text and a matching amount as two conditions.

Use Excel MATCH with Multiple Conditions and Partial Text
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.
Before you start

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.

Solution 1Recommended

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.

1
Select a result cell

Click the cell where you want the value from column U to appear.

2
Enter the formula

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.

3
Check the result

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 the First Match with INDEX, MATCH, and SEARCH
How the match works: SEARCH is case-insensitive and looks for E5 inside each cell in column V. MATCH returns the first row satisfying both conditions; IFERROR displays a blank if the formula returns an error.
Work with formulas in WPS Spreadsheets

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. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 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. 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. 4. Review and save: Press Enter, check the returned value, and use File > Save to save your workbook.
Match partial text and an amount in the same formulaOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceWork with spreadsheets in a free Office suite
microsoft office alternative - wps office

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.