VLOOKUP cannot match two criteria on its own, so you combine them into a single key. The simplest working method is to add a helper column that joins the values (for example, =A2&"|"&B2) and then VLOOKUP against that column. If you cannot add a helper column, use an array formula with ARRAYFORMULA, IF, and VLOOKUP, or switch to INDEX/MATCH with a Boolean array. All three approaches are covered below.

What You'll Need

  • A Google Sheet with your data table and a separate area for the lookup values.
  • At least two columns that together identify a row (for example, First Name and Last Name, or Product and Region).
  • Edit access to the sheet so you can add a helper column or enter array formulas.
  • Basic familiarity with cell references and the VLOOKUP syntax VLOOKUP(search_key, range, index, [is_sorted]).

Step-by-Step

  1. Set up your data table. Make sure the columns you want to match on are to the left of the values you want to return. VLOOKUP only searches the first column of the range, so the combined key must be the leftmost column in the lookup range.
  2. Add a helper column to the left of your data. Insert a new column A (or use an empty column immediately left of your data). In the first data row, enter a formula that joins the two criteria with a separator that does not appear in your data, such as a pipe character: =B2&"|"&C2. Replace B2 and C2 with your actual criteria columns. Copy the formula down the entire table.
  3. Build the combined lookup key. In the cell where you want the result, or in a separate cell, create the same joined string from your search values. For example, if the search values are in F2 and G2, use =F2&"|"&G2.
  4. Write the VLOOKUP formula. Use the helper column as the first column of the range. For example: =VLOOKUP(F2&"|"&G2, A2:D100, 4, FALSE). Here A2:D100 is the range starting with the helper column, 4 is the column index of the value you want to return (counting from the helper column as 1), and FALSE forces an exact match.
  5. Press Enter and check the result. If you see #N/A, the combined key was not found. Verify that the separator is identical in both the helper column and the search key, and that there are no extra spaces.
  6. Copy the formula down if you have multiple lookups. Use absolute references for the table range (for example, $A$2:$D$100) so the range does not shift as you copy.
  7. Optional: avoid the helper column with an array formula. If you cannot add a column, use =ARRAYFORMULA(VLOOKUP(F2&"|"&G2, {B2:B100&"|"&C2:C100, D2:D100}, 2, FALSE)). This builds a virtual two-column array on the fly: the first column is the joined key, the second is the return column. Adjust the ranges and the column index as needed.
  8. Optional: use INDEX/MATCH for more flexibility. Enter =INDEX(D2:D100, MATCH(1, (B2:B100=F2)*(C2:C100=G2), 0)) and press Ctrl+Shift+Enter if you are not using ARRAYFORMULA. In current Google Sheets, wrap it in ARRAYFORMULA: =ARRAYFORMULA(INDEX(D2:D100, MATCH(1, (B2:B100=F2)*(C2:C100=G2), 0))). This method does not require the key to be in the first column.
  9. Test with a known row. Pick a row you can verify manually, enter its two criteria, and confirm the formula returns the expected value. Then test a row that should not exist to confirm you get #N/A rather than a wrong match.

Common Mistakes

  • Forgetting the separator or using different ones. If the helper column uses | but the search key uses a space, nothing matches. Use the same formula pattern in both places.
  • Leaving is_sorted as TRUE or omitted. VLOOKUP defaults to approximate match, which can return the wrong row. Always set the fourth argument to FALSE for exact matching.
  • Putting the helper column to the right of the return column. VLOOKUP cannot look left. The combined key must be the leftmost column in the range.
  • Mismatched data types. A number stored as text will not match a real number. Check with ISNUMBER or convert consistently.
  • Trailing spaces. Extra spaces in either criteria column break the join. Use TRIM in the helper formula: =TRIM(B2)&"|"&TRIM(C2).
  • Relative ranges when copying. Without dollar signs, the lookup range shifts and returns wrong values or #REF!.

Tips

  • Use a separator that cannot appear in your data, such as | or ~, to avoid false joins.
  • Name your ranges (Data > Named ranges) to make formulas easier to read and maintain.
  • If you need to return values from columns to the left, use INDEX/MATCH instead of VLOOKUP.
  • For large sheets, the helper column method is usually faster than array formulas because it avoids recalculating the join for every row.
  • Keep the helper column at the far left and hide it if you do not want it visible; hiding does not affect formulas.

Troubleshooting

If you get #N/A, first confirm the combined key exists by typing the exact joined string in a cell and using Ctrl+F to search for it. Check for leading or trailing spaces, different separators, and case differences (VLOOKUP is not case-sensitive, but the joined string must match exactly in content). If you get #REF!, the column index is larger than the number of columns in the range. If you get a wrong value, verify is_sorted is FALSE and that the range starts at the helper column. If the formula works for one row but not others, check that the helper column was copied down all rows and that absolute references are used. For array formulas, ensure the ranges are the same size; mismatched sizes produce #VALUE! or unexpected results. If you are on a mobile device, array formulas may behave differently; test on desktop first.

Frequently Asked Questions

Can VLOOKUP match more than one criterion without a helper column?

Yes, using an array formula with ARRAYFORMULA and a virtual array, or by switching to INDEX/MATCH with a Boolean array. Both avoid adding a physical column.

Why does my VLOOKUP return the first match only?

VLOOKUP always returns the first matching row. If you need all matches, use FILTER or QUERY instead.

Does the order of criteria matter?

Yes. The joined key must be built in the same order in both the helper column and the search key. If you join First Name then Last Name in one place, do the same in the other.

Can I use VLOOKUP with three or more criteria?

Yes. Join all criteria with the same separator in both the helper column and the search key, for example =A2&"|"&B2&"|"&C2.

What is the difference between VLOOKUP with multiple criteria and XLOOKUP?

Google Sheets does not have XLOOKUP. The equivalent is INDEX/MATCH or FILTER. VLOOKUP with a helper column is the most compatible approach.

Will the helper column break if I sort the data?

No, as long as the helper formula is in the same row as its source data. Sorting moves entire rows, so the joined key stays with its row.