Return Multiple Matching Results with an Excel INDEX Formula
Question details
List all records that match a criterion on another worksheet.

- 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.
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.
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.
On the output worksheet, enter the value to search for in cell B1.
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.
Press Enter in Microsoft 365 or Excel 2021. In older Excel versions, confirm the formula with Ctrl+Shift+Enter.
Drag the fill handle from A2 down enough rows to display all matches. Rows beyond the final match display a blank.

Use FILTER to spill all matching results
Use FILTER in Microsoft 365 or Excel 2021 to return matching values without copying a formula down.
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. Open the workbook: Open WPS Spreadsheet, select Open, and choose your Excel workbook.
- 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. 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. 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.

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.




