VLOOKUP with a Range: How to Use It Correctly

Formulas & functions · Updated November 23, 2026

The direct answer: In Excel, you cannot use a range as the lookup value in VLOOKUP. VLOOKUP expects a single value in its first argument. To look up multiple values or return results for a range, you need to use a helper column, an array formula, or a newer function like XLOOKUP. This article explains why VLOOKUP behaves this way, how to work around it, and when to switch to a better tool.

What VLOOKUP Actually Does

VLOOKUP searches for a value in the first column of a table and returns a value from a specified column in the same row. Its syntax is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). The lookup_value must be a single value—a number, text, or a cell reference. If you try to pass a range like A1:A10, Excel will return a #VALUE! error because it cannot compare a range against each row in the table.

For example, if you have a list of product IDs in A2:A10 and you want to find the price for the ID in D2, you write =VLOOKUP(D2, A2:B10, 2, FALSE). If D2 contains the text “P123”, it works. If D2 contains a range reference, it fails.

Why You Might Want a Range as Lookup Value

Common scenarios where users attempt this include:

  • Checking if any of several values exist in a lookup table (e.g., “is any of these order numbers present?”)
  • Returning a result when the lookup value falls within a numeric range (e.g., find the tax rate for an income between $40,000 and $50,000)
  • Looking up multiple criteria, such as matching both a product and a region

VLOOKUP was designed for exact or approximate single-value matches, not for these tasks. But each has a workaround.

Workaround 1: Helper Column for Multiple Lookup Values

If you want to check whether any value from a list appears in a table, you can create a helper column that combines the values or flags matches. Suppose your lookup values are in D2:D5 and your table is A2:B10. In a new column (say E), add a formula that concatenates all lookup values into one string, then use that in a MATCH or COUNTIF. But a simpler approach: use COUNTIF to test existence.

With lookup values in D2:D5 and table IDs in A2:A10, enter in E2: =IF(COUNTIF($A$2:$A$10, D2)>0, "Found", "Not Found") and drag down. This tells you if each individual value exists. To get a single yes/no for the whole range, use =IF(SUMPRODUCT(COUNTIF($A$2:$A$10, D2:D5))>0, "At least one found", "None found"). This works because COUNTIF accepts a range as the criteria argument.

Workaround 2: Approximate Match for Numeric Ranges

VLOOKUP’s approximate match (the 4th argument set to TRUE or omitted) is designed for ranges of numbers, like tax brackets or discount tiers. The key is that the first column of your table must be sorted ascending, and the lookup value will match the largest value that is less than or equal to the lookup value.

Example: Tax rates table in A1:B4 with thresholds 0, 10000, 50000, 100000 and rates 0%, 10%, 20%, 30%. To find the rate for an income in D2, use =VLOOKUP(D2, A1:B4, 2, TRUE). If D2 is 75000, it returns 20% because 50000 is the largest threshold ≤ 75000. This is a legitimate use of a “range” in the sense of numeric intervals, but it is not a range as a lookup value.

Workaround 3: Array Formulas for Multiple Criteria

If you need to match multiple criteria (e.g., product and region), VLOOKUP alone cannot do it. You can use an array formula with INDEX and MATCH. With product in A2:A10, region in B2:B10, and value in C2:C10, and criteria in E2 (product) and F2 (region), enter: =INDEX(C2:C10, MATCH(1, (A2:A10=E2)*(B2:B10=F2), 0)) and press Ctrl+Shift+Enter in older Excel. In Excel 365, it works as a dynamic array formula without the special key. This returns the value where both conditions are true.

When to Use XLOOKUP Instead

XLOOKUP, available in Excel 2021 and Microsoft 365, is a modern replacement that handles several of these problems natively. Its syntax is =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]). It can return an array of matches if you give it a range as the lookup_value, but only if you use it in a dynamic array context. For example, =XLOOKUP(D2:D5, A2:A10, B2:B10) returns the prices for all four IDs in D2:D5, spilling down automatically. This is the closest to “VLOOKUP with a range”—it accepts a range and returns multiple results.

For numeric ranges, XLOOKUP has a match_mode argument: set it to -1 for exact match or next smaller. For multiple criteria, you can use the ampersand operator: =XLOOKUP(E2&F2, A2:A10&B2:B10, C2:C10).

Common Errors and How to Fix Them

  • #N/A: The lookup value is not in the first column. Check for extra spaces or text vs. number formatting.
  • #VALUE!: You passed a range as the lookup value. Use a single cell or an array formula.
  • #REF!: The col_index_num is greater than the number of columns in the table array.
  • Approximate match returns wrong result: The first column is not sorted ascending. Sort it or use FALSE.

Frequently Asked Questions

Can VLOOKUP return multiple columns? Yes, but you need to copy the formula across and change the col_index_num, or use XLOOKUP with a range for the return_array. For example, =XLOOKUP(D2, A2:A10, B2:C10) returns two columns.

Does VLOOKUP work with wildcards? Yes, for text lookups with FALSE, you can use * and ? in the lookup_value. For example, =VLOOKUP("A*", A2:B10, 2, FALSE) finds the first value starting with A.

Why does VLOOKUP return the first match and not all matches? VLOOKUP is designed to return only the first match. To get all matches, use FILTER or an array formula with INDEX and SMALL.

Is VLOOKUP case-sensitive? No, VLOOKUP is not case-sensitive. If you need case-sensitive lookup, use XLOOKUP with match_mode 0 and a case-sensitive comparison, or use INDEX and MATCH with EXACT.

Can I use VLOOKUP to look up to the left? No, VLOOKUP only looks to the right. Use INDEX and MATCH or XLOOKUP to return values from columns to the left.

What is the difference between VLOOKUP and HLOOKUP? VLOOKUP searches vertically (down a column), while HLOOKUP searches horizontally (across a row). Use HLOOKUP when your data is organized in rows instead of columns.

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.