Function Problems

Find the Second Partial Text Match in Excel 365

Phi Hung VoPhi Hung Vo Dec 2, 2026 868 views

Question details

Find the second worksheet record whose name contains the text in cell G407, and return NONE if a second match does not exist.

Find the Second Partial Text Match in Excel 365
Product
Microsoft Excel 365
Device & OS
not provided
Scenario
Search names in column C of an external workbook and return the second matching value or record.
Observed behavior
The desired formula should return the second matching row without returning a value from another column when only one row matches.
Before you start

Open Lafayette.xlsx and confirm that the Moraga worksheet contains the names to search in column C. Enter the search text in G407 and adjust the row limits in the formula to cover your data.

Solution 1Recommended

Use FILTER and INDEX to return the second matching value

Use this Excel 365 formula to return the name from the second matching row, or NONE when fewer than two rows match.

SEARCH finds partial text without regard to case. FILTER keeps the matching names, and INDEX selects the second result.

1
Enter the search text

On the worksheet where you want the result, enter the text to find in cell G407.

2
Enter the formula

Select the result cell and enter =IFERROR(INDEX(FILTER('[Lafayette.xlsx]Moraga'!$C$2:$C$10000,ISNUMBER(SEARCH(G407,'[Lafayette.xlsx]Moraga'!$C$2:$C$10000))),2),"NONE").

3
Adjust the return column

To return a value from another column in the same matching row, replace the first $C$2:$C$10000 range with that column's range, such as $P$2:$P$10000. Keep the SEARCH range in column C and use the same row limits.

Use FILTER and INDEX to return the second matching value
Keep the source workbook open: Dynamic-array formulas linked to another workbook can return errors when the source workbook is closed. IFERROR also displays NONE for other formula errors, so check the ranges and workbook link if the result is unexpected.
WPS Spreadsheet

Find the Second Partial Match in WPS Spreadsheet

Use an array formula in WPS Spreadsheet to find the second name containing your search text and return NONE if there is no second match.

  1. 1. Open the workbook: In WPS Spreadsheet, open your workbook and make sure the names to search are in column C of a worksheet named Moraga.
  2. 2. Enter the search text: On the worksheet where you want the result, enter the partial name in cell G407.
  3. 3. Enter the array formula: Select the result cell and enter =IFERROR(INDEX(Moraga!$C$2:$C$10000,SMALL(IF(ISNUMBER(SEARCH($G$407,Moraga!$C$2:$C$10000)),ROW(Moraga!$C$2:$C$10000)-ROW(Moraga!$C$2)+1),2)),"NONE"). Press Ctrl+Shift+Enter to confirm it as an array formula.
  4. 4. Adjust the returned value: To return another column from the matching row, replace the INDEX range with that column's range, such as Moraga!$P$2:$P$10000. Leave the SEARCH range in column C and confirm the edited formula with Ctrl+Shift+Enter.
Find the second partial match without returning a value from another columnOpen and edit Microsoft Excel XLSX workbooksUse familiar spreadsheet formulas and worksheet controls
microsoft office alternative - wps office

Frequently Asked Questions

What happens if only one name matches?

INDEX cannot find a second result, so IFERROR returns NONE instead of a value from another column.

Is the partial-text search case-sensitive?

No. SEARCH ignores case. Replace SEARCH with FIND in the formula if capitalization must match.

Why does the formula return NONE when I expect a match?

Check the text in G407, the search range, and the workbook and worksheet names. Open Lafayette.xlsx, because a closed source workbook can cause a dynamic-array link error that IFERROR displays as NONE.

What happens if G407 is blank?

SEARCH treats an empty string as a match, so the formula may return the second row in the search range. Enter search text in G407 before using the formula.