advanced 5 min read

INDEX MATCH Return Multiple Results in Google Sheets

Use INDEX MATCH to return multiple matching results in Google Sheets. Array formulas and FILTER alternatives for returning all rows that match a condition.

SB

Sheets Bootcamp

March 5, 2026 Β· Updated November 5, 2026

Reviewed by Ryan

Quick Answer

INDEX MATCH returns only the first match, so use FILTER to return every match: =FILTER(B2:B9, C2:C9="Surveillance"). It lists every Surveillance product name and spills the results into the cells below, so keep that area empty. To get just the Nth match with INDEX, use =INDEX(B2:B9, SMALL(IF(C2:C9="Surveillance", ROW(C2:C9)-ROW(C2)+1), 2)), which returns the 2nd match.

Standard INDEX MATCH returns one value, the first row that matches your search key. When multiple rows match and you need all of them, you need a different approach. This guide covers the classic SMALL/IF array formula for returning the Nth match, then shows the modern FILTER function alternative that handles multiple results in a single formula.

In This Guide

Why INDEX MATCH Returns One Result

MATCH searches a range and returns the position of the first match it finds. If your data has multiple rows with the same value, MATCH stops at the first one.

Using the product inventory, three products are in the Surveillance category: Field Binoculars (row 5), Evidence Bag Kit (row 7), and Night-Vision Scope (row 8).

Formula
=INDEX(B2:B9, MATCH("Surveillance", C2:C9, 0))

This returns Field Binoculars because it appears first. Evidence Bag Kit and Night-Vision Scope are ignored.

Standard INDEX MATCH returning only Field Binoculars, the first Surveillance product

To get every result, you need a formula that finds the 1st match, the 2nd match, and so on.

The SMALL/IF Array Pattern

The classic approach uses SMALL and IF inside INDEX to return each match by position number.

Formula
=INDEX(return_range, SMALL(IF(criteria_range=criteria, ROW(criteria_range)-ROW(first_cell)+1), N))

Here is how the parts work:

  1. IF(criteria_range=criteria, …): creates an array of row positions where the condition is true, and FALSE everywhere else
  2. ROW(criteria_range)-ROW(first_cell)+1: converts sheet row numbers into relative positions within the range (1, 2, 3…)
  3. SMALL(…, N): returns the Nth smallest position number. N=1 gives the first match, N=2 gives the second
  4. INDEX(return_range, …): returns the value at that position

Note

This formula may need Ctrl+Shift+Enter in older versions of Google Sheets to enter as an array formula. Current versions handle it with a regular Enter press.

Try it yourself

Question 1 of 3

3 quick questions. No account needed.

In B12, return the Name of the 2nd volunteer on the team in B11. Use INDEX with SMALL and IF.

A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Name
Team
Day
Hours
Rafi
Pantry
Sat
4
Wren
Garden
Sun
3
Cruz
Pantry
Sun
5
Dina
Desk
Sat
2
Ozzie
Garden
Sat
6
Faye
Pantry
Sat
3
Lupe
Desk
Sun
4
Yara
Garden
Sun
2
Team
Pantry
Result
B12

Return Multiple Results: Step-by-Step

We’ll find all Surveillance products from the product inventory.

Sample Data

The inventory has 8 products. Three are in the Surveillance category: Field Binoculars (SKU-104, row 5), Evidence Bag Kit (SKU-106, row 7), and Night-Vision Scope (SKU-107, row 8).

Product inventory with Surveillance products highlighted

1

Set up your data

The product inventory runs from A1:F9. You want to return all Product Names (column B) where the Category (column C) is β€œSurveillance”.

2

Try standard INDEX MATCH

Formula
=INDEX(B2:B9, MATCH("Surveillance", C2:C9, 0))

This returns Field Binoculars only. MATCH found the first β€œSurveillance” at position 4 in C2:C9 and stopped.

3

Use the SMALL/IF array pattern

To get the first Surveillance product:

Formula
=INDEX(B2:B9, SMALL(IF(C2:C9="Surveillance", ROW(C2:C9)-ROW(C2)+1), 1))

This returns Field Binoculars (the 1st match).

To get the second Surveillance product, change the last number to 2:

Formula
=INDEX(B2:B9, SMALL(IF(C2:C9="Surveillance", ROW(C2:C9)-ROW(C2)+1), 2))

This returns Evidence Bag Kit (the 2nd match). Change it to 3 to get Night-Vision Scope (the 3rd match).

SMALL/IF array formula returning Surveillance products in separate cells

Each formula occupies one cell. To return all matches, you need a separate formula for each result row, incrementing the N value (1, 2, 3…).

Important

If N exceeds the number of matches, the formula returns #NUM!. With 3 Surveillance products, N=4 causes an error. Wrap in IFERROR to handle this: =IFERROR(INDEX(..., SMALL(IF(...), 4)), "").

4

Use FILTER as the modern alternative

The FILTER function returns all matching rows at once:

Formula
=FILTER(B2:B9, C2:C9="Surveillance")

This returns Field Binoculars, Evidence Bag Kit, and Night-Vision Scope in a single formula. The results spill into adjacent cells below automatically.

FILTER function returning Surveillance products in a single spilling formula

No array entry needed. No incrementing N values. One formula handles everything.

For returning multiple matching rows, FILTER is the preferred approach in current Google Sheets.

Return multiple columns

FILTER can return entire rows, not just one column:

Formula
=FILTER(A2:F9, C2:C9="Surveillance")

This returns all three Surveillance rows with all 6 columns (Product ID, Name, Category, Price, Stock, Supplier).

Multiple conditions

Add conditions by including more criteria arrays:

Formula
=FILTER(B2:B9, C2:C9="Surveillance", E2:E9>50)

This returns only Surveillance products with stock above 50. The only match is Evidence Bag Kit (80 in stock). Field Binoculars (50 in stock) and Night-Vision Scope (25) are excluded.

Handle no results

When no rows match, FILTER returns #N/A. Use IFERROR to show a custom message:

Formula
=IFERROR(FILTER(B2:B9, C2:C9="Books", E2:E9>500), "No matches found")

When to Use Each Approach

ScenarioRecommended
Return all matching rowsFILTER
Return only the Nth match (e.g., 2nd result)INDEX + SMALL/IF
Return matches with complex array logicINDEX + SMALL/IF
Return multiple columns of matching dataFILTER
Pair with ARRAYFORMULA for row-by-row lookupsINDEX MATCH + ARRAYFORMULA

FILTER handles the majority of β€œreturn multiple results” scenarios. Use the SMALL/IF pattern when you need specific control over which match number to return.

Tip

If you find yourself writing multiple SMALL/IF formulas with incrementing N values (1, 2, 3…), switch to FILTER. One formula replaces all of them.

Tips

  1. FILTER is the first choice for multiple results. It is shorter, self-expanding, and does not need Ctrl+Shift+Enter. Use it unless you have a specific reason for the SMALL/IF pattern.

  2. Leave room for FILTER results to spill. FILTER outputs expand downward. If cells below the formula contain data, you get a #REF! error. Keep the area below the formula empty.

  3. Use IFERROR with both approaches. SMALL/IF returns #NUM! when N exceeds the match count. FILTER returns #N/A when no rows match. Wrap both in IFERROR for clean output.

  4. Combine FILTER with SORT for ordered results. =SORT(FILTER(B2:B9, C2:C9="Surveillance")) returns matching products in alphabetical order.

  5. For returning one value per row across a column, use ARRAYFORMULA with INDEX MATCH. See INDEX MATCH with ARRAYFORMULA for that pattern.

Frequently Asked Questions

Can INDEX MATCH return more than one result?
Standard INDEX MATCH returns one value, the first match. To return multiple results, use the SMALL/IF array pattern or the FILTER function, which is the modern and easier approach.
What is the difference between INDEX MATCH and FILTER for multiple results?
INDEX MATCH with SMALL/IF returns results one per row using an array formula. FILTER returns all matching rows at once in a single formula that spills into adjacent cells. FILTER is shorter and easier to maintain.
Why does my INDEX MATCH only return the first match?
MATCH always returns the position of the first match it finds. To return all matches, you need an array formula that generates a sequence of match positions (using SMALL and IF) or switch to the FILTER function.
Does FILTER replace INDEX MATCH for multiple results?
For most cases, yes. FILTER is the recommended approach for returning multiple matching rows. INDEX MATCH with SMALL/IF is still useful when you need only the Nth match or when combining with other array logic.
How do I return the 2nd or 3rd match with INDEX MATCH?
Use the SMALL/IF pattern: =INDEX(range, SMALL(IF(criteria, ROW(range)-ROW(first_cell)+1), N)) where N is the match number. N=1 returns the first match, N=2 returns the second, and so on.

You read about INDEX MATCH. Now type it.

Unit 1 of the course is free: 6 short lessons in a grid that checks every formula. They teach the Google Sheets skills you'll actually use.

Start the course free

First 6 lessons free. No card needed. See plans

Keep going

Continue learning

Unit 2 is next. Get full access

Practice this in the app

Practice INDEX MATCH

Spot an error on this page? Tell us.

First 6 lessons free. No credit card required.

Start the course free
Continue learning

Cookie policy Β· Privacy policy