VLOOKUP with IFS: How to Use Multiple Conditions

Formulas & functions · Updated November 23, 2026

The direct answer: you cannot nest IFS inside VLOOKUP as a lookup value, but you can combine VLOOKUP with IF, IFS, or CHOOSE to handle multiple conditions. The most common approach is building a helper column that joins criteria with a delimiter, then using VLOOKUP with an approximate match (or XLOOKUP in newer Excel) to return a result based on those conditions.

Why VLOOKUP Alone Isn’t Enough

VLOOKUP searches for a single value in the first column of a table and returns a value from a column to the right. It has two major limitations that make it awkward for multiple conditions:

  • It can only match on one column (the leftmost column of the table array).
  • It cannot handle AND/OR logic directly—there’s no built-in way to say “find this product AND this region.”

So when you need to look up a value based on two or more criteria (e.g., “find the price for Product A in Region B”), a plain VLOOKUP will fail. You need to either restructure your data or combine VLOOKUP with other functions.

Method 1: Helper Column with Concatenation

The classic workaround is to create a helper column that combines your criteria into one unique key. For example, if you have product names in column A and regions in column B, and you want to find the price in column C:

  1. Insert a new column A (or use a far-right column). In cell A2, enter =B2&"|"&C2 (assuming product is in B, region in C).
  2. Copy down for all rows.
  3. Now use VLOOKUP with the combined criteria: =VLOOKUP("ProductA|RegionB", A:D, 4, FALSE).

Better yet, reference cells containing the criteria: with product in G1 and region in G2, use =VLOOKUP(G1&"|"&G2, A:D, 4, FALSE). The pipe delimiter avoids accidental matches like “AB” vs “A|B”.

Method 2: Using IFS Inside VLOOKUP for Conditional Lookups

Sometimes “VLOOKUP with IFS” means you want to choose which lookup table to use based on a condition. For instance, you have two price lists—one for wholesale, one for retail—and you want to pick the right one based on a customer type. You can nest IFS inside VLOOKUP’s table_array argument:

=VLOOKUP(A2, IFS(B2="Wholesale", $F$2:$G$10, B2="Retail", $H$2:$I$10), 2, FALSE)

This works because IFS returns a range (the table array) based on the condition. However, be careful: IFS evaluates conditions left to right and returns the first TRUE. If none match, it returns #N/A. Also, this only works if the lookup value is in the first column of each chosen range.

Method 3: Using IF for Two Conditions (No Helper Column)

If you only have two conditions and a small dataset, you can use an array formula with IF. With product in A2:A10, region in B2:B10, price in C2:C10, and your criteria in E1 (product) and F1 (region), enter:

=VLOOKUP(E1&F1, IF(A2:A10&B2:B10=E1&F1, C2:C10), 1, FALSE)

This is an array formula—in Excel 365 it works with Enter, but in older versions you must press Ctrl+Shift+Enter. The IF creates an array of prices where both conditions match, and VLOOKUP finds the first one. This is fragile and slow on large datasets, so it’s rarely recommended.

Better Alternative: XLOOKUP with Multiple Criteria

If you have Excel 2021 or Microsoft 365, XLOOKUP is far cleaner. It can handle multiple criteria by using concatenation inside the lookup array:

=XLOOKUP(E1&"|"&F1, A2:A10&"|"&B2:B10, C2:C10)

This returns the price where product and region both match. It requires no helper column, no array entry, and works with dynamic arrays. The only catch is that XLOOKUP is not available in Excel 2019 or earlier, so for legacy versions you’ll need the helper column method.

Common Errors and How to Fix Them

  • #N/A error: Usually means no exact match. Check that your helper column or concatenation exactly matches the lookup value (watch out for extra spaces, text vs. number formats, or different case—VLOOKUP is case-insensitive but spaces matter).
  • #VALUE! error: Often happens when you use an array formula incorrectly in older Excel. Make sure you press Ctrl+Shift+Enter if needed.
  • Wrong result with approximate match: If you use TRUE (or omit the fourth argument), VLOOKUP assumes your first column is sorted. Always use FALSE for exact matches unless you intentionally need the closest match.
  • Helper column not updating: If you add new rows, make sure the helper column formula is copied down. Use an Excel Table (Insert > Table) so formulas auto-fill.

When to Use IFS vs. IF vs. CHOOSE

IFS is best when you have many conditions and want a clean, readable formula. IF is fine for one or two conditions but gets messy with nesting. CHOOSE is useful when you have a numeric index (1,2,3…) to select a table or value. For example, to pick a table based on a number in cell D1:

=VLOOKUP(A2, CHOOSE(D1, $F$2:$G$10, $H$2:$I$10, $J$2:$K$10), 2, FALSE)

This is more efficient than IFS if you have many tables, because CHOOSE doesn’t evaluate all conditions—it just picks the one by index.

Frequently Asked Questions

Can I use VLOOKUP with two conditions without a helper column?

Yes, but only with array formulas (in older Excel) or by using XLOOKUP in Excel 365. The array formula =VLOOKUP(E1&F1, IF(A2:A10&B2:B10=E1&F1, C2:C10), 1, FALSE) works but is slow and requires Ctrl+Shift+Enter. XLOOKUP with concatenation is the modern, cleaner solution.

What’s the difference between IFS and IF in Excel?

IFS can test multiple conditions in one function without nesting, like =IFS(A1>10,"High",A1>5,"Medium",TRUE,"Low"). IF requires nesting for more than two outcomes: =IF(A1>10,"High",IF(A1>5,"Medium","Low")). IFS is easier to read, but it doesn’t have an else clause—you must include a final condition like TRUE to catch everything else.

Does VLOOKUP work with text and numbers mixed?

Yes, but be careful with number formatting. If your lookup value is a number stored as text, VLOOKUP may fail. Use the TEXT function to standardize, e.g., =VLOOKUP(TEXT(G1,"0")&"|"&G2, A:D, 4, FALSE).

Why does my VLOOKUP return the wrong value even though the criteria match?

Most likely because you used TRUE (approximate match) and your first column isn’t sorted. Always use FALSE for exact matches. Another cause is duplicate keys—VLOOKUP returns the first match, so if your helper column isn’t unique, you’ll get the wrong row. Add a unique ID or use XLOOKUP which can return all matches if needed.

Is there a way to use VLOOKUP with OR logic?

VLOOKUP itself cannot do OR logic. You can combine multiple VLOOKUPs with IFERROR: =IFERROR(VLOOKUP(A2,Table1,2,FALSE), VLOOKUP(A2,Table2,2,FALSE)). This tries the first table, and if it fails, tries the second. For more complex OR conditions, consider using FILTER or SUMIFS instead.

Final Thoughts on Combining VLOOKUP and IFS

While you can’t literally put IFS inside VLOOKUP’s lookup_value, you have several robust ways to achieve multi-condition lookups. Start with a helper column for compatibility with older Excel versions, or switch to XLOOKUP if you’re on Microsoft 365. Always test with sample data to ensure your delimiters and data types match. If you’re still stuck, consider using INDEX/MATCH, which handles multiple criteria more naturally with array formulas.

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.