Function Problems

Return Multiple Matching Results with an Excel INDEX Formula

Khadija KhanKhadija Khan Dec 2, 2026 868 views

Question details

List all records that match a criterion on another worksheet.

Return Multiple Matching Results with an Excel INDEX Formula
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user wants to retrieve a continuing list of matching values rather than copy a VLOOKUP formula that returns the same match.
Observed behavior
Copying VLOOKUP does not produce a series of all matching results.
Before you start

Identify the worksheet containing the source data, the matching column, the result column, and the cell containing your criterion. In the examples below, the source sheet is named Data, the matching values are in F2:F27, the results are in G2:G27, and the criterion is in B1 on the output sheet.

Solution 1Recommended

Use INDEX and SMALL to return matches one row at a time

Use this formula when you want to copy results down a column, including in older Excel versions.

1
Enter the criterion

On the output worksheet, enter the value to search for in cell B1.

2
Enter the formula

Select the first output cell, such as A2, and enter =IFERROR(INDEX(Data!$G$2:$G$27,SMALL(IF(Data!$F$2:$F$27=$B$1,ROW(Data!$F$2:$F$27)-ROW(Data!$F$2)+1),ROWS($A$1:A1))),""). Replace Data and the ranges with your source sheet and columns as needed.

3
Confirm the formula

Press Enter in Microsoft 365 or Excel 2021. In older Excel versions, confirm the formula with Ctrl+Shift+Enter.

4
Copy the results down

Drag the fill handle from A2 down enough rows to display all matches. Rows beyond the final match display a blank.

Use INDEX and SMALL to return matches one row at a time
Keep source ranges aligned: The matching and result ranges must cover the same rows. If your sheet name contains spaces, enclose it in single quotes, such as 'Sales Data'!$F$2:$F$27.
WPS Spreadsheet

List multiple matches in WPS Spreadsheet

Use an INDEX and SMALL array formula in WPS Spreadsheet to retrieve matching values from another worksheet and copy them down.

  1. 1. Open the workbook: Open WPS Spreadsheet, select Open, and choose your Excel workbook.
  2. 2. Enter the criterion: On the output sheet, type the search value in B1. Check that the source sheet and ranges match your data.
  3. 3. Enter the matching formula: In A2, enter =IFERROR(INDEX(Data!$G$2:$G$27,SMALL(IF(Data!$F$2:$F$27=$B$1,ROW(Data!$F$2:$F$27)-ROW(Data!$F$2)+1),ROWS($A$1:A1))),""). Adjust the sheet name and ranges if needed.
  4. 4. Confirm and fill down: Press Enter, or Ctrl+Shift+Enter if your WPS Spreadsheet version requires array-formula entry. Drag the fill handle down to list the matches.
Return matching records one row at a timeOpen and edit Microsoft Excel XLSX and XLS filesWork with a familiar spreadsheet interfaceUse WPS Office for free
microsoft office alternative - wps office

Frequently Asked Questions

Why does copying VLOOKUP return the same result?

VLOOKUP normally returns the first match for a lookup value. Use the INDEX and SMALL formula in the first output cell and copy it down to return successive matches.

How do I reference a source sheet whose name contains spaces?

Enclose the sheet name in single quotes in each reference, such as 'Sales Data'!$F$2:$F$27 and 'Sales Data'!$G$2:$G$27.

Why does the INDEX formula show blanks after the last match?

SMALL has no further matching row to return, and IFERROR replaces that error with an empty string. Check the criterion and source ranges if all output cells are blank.

Why does my FILTER formula show a spill error?

Clear the cells below the FILTER formula that are blocking its output range, then let Excel spill the results. FILTER requires a supported version such as Microsoft 365 or Excel 2021.