VLOOKUP Multiple Values: How to Return All Matches

Formulas & functions · Updated November 23, 2026

To look up several values with VLOOKUP, you cannot use the standard function alone because it returns only the first match. Instead, combine VLOOKUP with helper columns, array formulas, or use the newer FILTER function (Excel 2021/Microsoft 365) to return all matching values.

Why VLOOKUP Only Returns One Value

VLOOKUP is designed to find the first occurrence of a lookup value in the leftmost column of a table and return a corresponding value from a column you specify. If your data contains duplicate lookup values, VLOOKUP stops at the first match and ignores the rest. This limitation is built into the function’s logic—it does not loop or continue searching. For example, if you have a list of orders with customer names in column A and you want all orders for “John Smith,” VLOOKUP will only give you the first order.

How to Return All Matches with Helper Columns

The classic approach uses a helper column that converts duplicate values into unique keys. Here’s a step-by-step method:

  1. Insert a new column to the left of your lookup column (e.g., column A).
  2. In the new column, enter a formula that combines the original lookup value with a count of how many times it has appeared so far. For data starting in row 2, with original values in column B, use: =B2&COUNTIF($B$2:B2,B2). This creates keys like “John Smith1”, “John Smith2”, etc.
  3. Copy the formula down for all rows.
  4. To retrieve the first match, use a lookup value like "John Smith"&1. For the second, use "John Smith"&2, and so on.
  5. Use VLOOKUP with these keys: =VLOOKUP("John Smith"&1, A:D, 4, FALSE) (assuming column D holds the value you want).

This works in all Excel versions, but it requires manual setup and you need to know how many matches exist.

Using Array Formulas to Return All Matches

In older Excel versions (without dynamic arrays), you can use an array formula to extract multiple matches. For example, to list all values from column B that match a criteria in column A, use:

=IFERROR(INDEX($B$2:$B$100, SMALL(IF($A$2:$A$100="John Smith", ROW($B$2:$B$100)-ROW($B$2)+1), ROW(1:1))), "")

Enter this formula in a cell, then press Ctrl+Shift+Enter (on Mac: Command+Shift+Enter) to make it an array formula. Drag the formula down to display additional matches. This formula checks each row, collects the row numbers where the criteria is met, and returns the corresponding value from column B. The IFERROR handles cases where no more matches exist.

The Modern Solution: FILTER Function

If you have Excel 2021 or Microsoft 365, the FILTER function is the simplest way to return all matching values. For example, with data in A2:B100, to get all values from column B where column A equals “John Smith”:

=FILTER(B2:B100, A2:A100="John Smith", "No matches")

This spills the results automatically into multiple cells. If you want to return multiple columns, use something like =FILTER(A2:C100, A2:A100="John Smith"). FILTER is dynamic: if the source data changes, the results update instantly. It requires no helper columns and is far easier to maintain.

How to Choose the Right Method

  • FILTER – Use if you have Excel 2021 or Microsoft 365. It is the cleanest and most flexible.
  • Array formula with INDEX/SMALL/IF – Use if you have an older Excel version and need to return a list of matches.
  • Helper column with COUNTIF – Use when you need to retrieve matches one at a time (e.g., in a form) and you know the match numbers.
  • PivotTable – If you just need a summary or a list of unique items, a PivotTable can quickly show all matching rows without formulas.

Common Problems and Solutions

When working with multiple matches, you may encounter these issues:

  • #N/A errors – This happens when VLOOKUP cannot find the lookup value. Ensure the lookup column is the first column in the table array, and use FALSE for exact match.
  • Array formula not working – Forgetting to press Ctrl+Shift+Enter will break the formula in older Excel. In Excel 365, you don’t need to press it because dynamic arrays are native.
  • Duplicate values after helper column – If your original data already has duplicates, the COUNTIF formula must be copied down correctly; otherwise, keys may repeat.
  • FILTER returns #CALC! – This occurs when no matches are found and you didn’t supply a third argument. Always add a fallback like “” or “No matches”.

VLOOKUP vs. XLOOKUP for Multiple Matches

XLOOKUP, available in Excel 2021 and Microsoft 365, also returns only the first match by default. However, it has a match_mode argument that can be set to 2 (wildcard) or 0 (exact), but it still does not return multiple matches. To get multiple matches with XLOOKUP, you still need to use FILTER or an array formula. XLOOKUP is an improvement over VLOOKUP because it defaults to exact match, works with columns to the left, and doesn’t require a table array. But for multiple results, FILTER is the dedicated tool.

Frequently Asked Questions

Can VLOOKUP return multiple columns? Yes, VLOOKUP can return values from multiple columns if you use a helper column or if you copy the formula across columns. For example, =VLOOKUP(A1, A:D, 2, FALSE) returns the second column, =VLOOKUP(A1, A:D, 3, FALSE) returns the third, and so on. But it still returns only the first matching row.

How do I return all matches in Google Sheets? Google Sheets has a similar FILTER function: =FILTER(B2:B100, A2:A100="John Smith"). It works the same way as Excel’s FILTER. For older methods, you can use the same array formula with INDEX and SMALL, but you don’t need Ctrl+Shift+Enter in Google Sheets—just press Enter.

What is the fastest way to extract unique matches? Use the UNIQUE function combined with FILTER. For example, =UNIQUE(FILTER(B2:B100, A2:A100="John Smith")) returns only the unique values from the matching rows. This is useful when duplicates exist in the result column.

Why does my VLOOKUP return the wrong value when there are duplicates? VLOOKUP returns the first match it finds, which may not be the one you expect. To get the last match, you can use LOOKUP with a condition, but it’s better to sort your data or use FILTER to see all matches.

Can I use VLOOKUP to return all matches without a helper column? Not directly. The standard VLOOKUP cannot return multiple matches. You must either use an array formula (which requires Ctrl+Shift+Enter in older Excel) or use the FILTER function. In Excel 365, FILTER is the recommended way.

In summary, VLOOKUP is not built for multiple matches. For a robust solution, upgrade to Excel 2021 or Microsoft 365 and use FILTER. If you must stick with VLOOKUP, a helper column with COUNTIF is the most reliable workaround.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.