Templates, guides & honest tool reviews for small business

Sunday, November 29, 2026

VLOOKUP with Multiple Criteria in Google Sheets: 3 Working Methods

VLOOKUP with multiple criteria in Google Sheets
Illustration: VLOOKUP with multiple criteria in Google Sheets

To use VLOOKUP with multiple criteria in Google Sheets, you have to give the lookup something it can match on more than one column. VLOOKUP itself only searches the first column of its range for one value. The fix is to build a single key from the columns you need, with a helper column or with an array formula. This guide shows the helper column method, a method with no helper column, and the INDEX and MATCH alternative. All data is made up.

The problem

Say you have orders with Customer in column A, Product in column B and Price in column C. You want the price for "Ann" and "Desk". A normal VLOOKUP can look up "Ann" or "Desk", but not both at once. If Ann bought several products, it returns the first Ann row, which may be the wrong product.

Method 1: a helper column

Add a new first column that joins the two values. Insert a column before A so that the key is in column A. In A2 type:

=B2 & "|" & C2

Fill down. The pipe character keeps "AB" plus "C" different from "A" plus "BC". Now look up the joined text:

=VLOOKUP("Ann|Desk", A:D, 4, FALSE)

Use cells instead of fixed text: =VLOOKUP(G1 & "|" & H1, A:D, 4, FALSE). The 4 is the column number in the range that holds the price, and FALSE asks for an exact match. The basics of the function are in our VLOOKUP guide for Google Sheets.

VLOOKUP multiple criteria with a helper column in Google Sheets
Made-up orders (illustration).

Method 2: no helper column

You can build the key inside the formula with ARRAYFORMULA and CHOOSE:

=VLOOKUP(G1 & "|" & H1, ARRAYFORMULA(CHOOSE({1,2}, A2:A100 & "|" & B2:B100, C2:C100)), 2, FALSE)

CHOOSE with {1,2} makes a two column table in memory: the joined key and the price. VLOOKUP then searches the key column and returns the price. The sheet stays clean, but the formula is harder to read, so test it on a few rows first.

VLOOKUP with multiple criteria using ARRAYFORMULA and CHOOSE
CHOOSE builds a two column table (illustration).

Method 3: INDEX and MATCH

This is often the best option because the lookup column does not need to be first:

=INDEX(C2:C100, MATCH(1, ARRAYFORMULA((A2:A100=G1) * (B2:B100=H1)), 0))

The two comparisons give TRUE or FALSE, and multiplying them gives 1 only where both are true. MATCH finds the first 1. See our INDEX MATCH guide for the same idea in Excel. Newer versions of Google Sheets also have XLOOKUP, which can search a joined key too.

INDEX and MATCH with two conditions in Google Sheets
Two tests multiplied (illustration).

Return all matches, not only the first

If several rows match, use FILTER: =FILTER(C2:C100, A2:A100=G1, B2:B100=H1). It returns every price for that customer and product. Our FILTER examples explain the conditions.

Fix common errors

  • #N/A. No match. Check spaces and spelling. Use TRIM on both sides if the data is messy.
  • Wrong price. You used TRUE or left the last argument out, which asks for an approximate match. Use FALSE.
  • Key does not match. One side has a different separator or extra space.
  • Numbers as text. "100" and 100 are different. Make both sides the same type.
Fix #N/A when VLOOKUP with multiple criteria fails
Common causes (illustration).

Questions and answers

Can VLOOKUP use two conditions directly?

No. It needs a single key, which you build as shown above.

Which method is best?

The helper column is simplest to read and fast. INDEX and MATCH is flexible. FILTER is best when you need every match.

Does this work in Excel?

The helper column method works in Excel too. Excel 365 users can also use XLOOKUP with joined keys.

What about lookups across two files?

Bring the data in with IMPORTRANGE first, then run the same formulas on the imported range.

العربية