Searching for a price or commission rate based on two separate columns usually breaks traditional spreadsheet lookups. When you try using VLOOKUP across both a representativeβs name and their territory, the formula throws an immediate #N/A error unless you alter the source table with an unmaintainable helper column concatenated with &.
Modern Microsoft Excel and Google Sheets solve this friction through boolean array evaluation inside XLOOKUP. By searching for the binary value 1 against multiplied logical conditions, you can match multiple criteria across rows and columns in memory without touching your dataset structure.
Sample Dataset for Multi-Criteria Lookups
The examples in this guide use the sales performance table below in range A2:E6. It tracks regional reps, product lines, contract tiers, units sold, and closed deal values:
| Row | Col A (Region) |
Col B (Product) |
Col C (Tier) |
Col D (Units) |
Col E (Deal Value) |
|---|---|---|---|---|---|
| 2 | North |
Espresso |
Enterprise |
140 |
$5,600 |
| 3 | South |
Espresso |
Standard |
85 |
$3,400 |
| 4 | North |
Cold Brew |
Enterprise |
210 |
$8,400 |
| 5 | West |
Matcha |
Standard |
95 |
$4,750 |
| 6 | North |
Espresso |
Standard |
60 |
$2,400 |
If you search for "Espresso" alone, row 2, row 3, and row 6 all qualify. To return the exact deal value for a North rep selling Espresso under an Enterprise contract, you need multi-condition targeting.
Visual Syntax Breakdown: How Multi-Criteria XLOOKUP Works
The standard syntax for multi-criteria lookups replaces the static lookup range with a boolean condition array:
=XLOOKUP(1, (criteria_range1=criteria1) * (criteria_range2=criteria2), return_range, [if_not_found], [match_mode], [search_mode])
1: The target lookup value representing booleanTRUE.(criteria_range1=criteria1): Evaluates every cell in range 1 against condition 1, yielding an array ofTRUEandFALSEvalues.*: The multiplication operator acts as an AND condition. In Excel math,TRUE * TRUEequals1, while any combination involvingFALSEequals0.return_range: The column containing the exact cell value you want to extract (E2:E6).[if_not_found]: Text or numeric fallback (such as"No record") preventing messy#N/Aerrors when no row satisfies all conditions.
5 Real-World Multi-Criteria XLOOKUP Examples
1. Two-Condition Exact Lookup (AND Logic)
Problem: Find the deal value in Col E where Region (Col A) is "North" and Product (Col B) is "Cold Brew".
=XLOOKUP(1, (A2:A6="North") * (B2:B6="Cold Brew"), E2:E6, "Not found")
How it works step-by-step:
(A2:A6="North")yields{TRUE; FALSE; TRUE; FALSE; TRUE}.(B2:B6="Cold Brew")yields{FALSE; FALSE; TRUE; FALSE; FALSE}.- Multiplying both arrays produces
{0; 0; 1; 0; 0}. XLOOKUPlocates1at row 4 and returns$8,400fromE4.
If your team previously relied on legacy formulas, review our breakdown of XLOOKUP vs VLOOKUP to see why dynamic ranges prevent broken indices.
2. Three-Condition Lookup with Cell References
Problem: In your dashboard summary tab, cell G2 contains "North", H2 contains "Espresso", and I2 contains "Enterprise". Look up the exact unit volume in Col D.
=XLOOKUP(1, (A2:A6=G2) * (B2:B6=H2) * (C2:C6=I2), D2:D6, "No match")
Notice row 2 and row 6 both share "North" and "Espresso". Adding the third condition (C2:C6=I2) isolates row 2 (Enterprise), safely returning 140 units instead of the standard tier value.
3. Disjunctive Criteria Lookup (OR Logic with +)
Problem: Look up the closed deal value for a transaction where the product is "Matcha" AND the territory is either "West" OR "South".
=XLOOKUP(1, (B2:B6="Matcha") * ((A2:A6="West") + (A2:A6="South")), E2:E6, "Not found")
In boolean spreadsheet logic, the plus sign (+) acts as OR. Adding (A2:A6="West") + (A2:A6="South") generates 1 for any row located in either region. Multiplying by (B2:B6="Matcha") ensures only Matcha orders from those territories qualify.
4. Numeric Threshold Condition (Lookups with >= or <)
Problem: Identify the product name (Col B) in the "North" region that closed at least 200 units (Col D >= 200).
=XLOOKUP(1, (A2:A6="North") * (D2:D6>=200), B2:B6, "Target not met")
This pattern matches "Cold Brew" from row 4 (210 units). Combining comparison operators (>, <, <=, <>) inside array parenthesis lets you perform targeted lookups without creating secondary aggregation tables. For multi-row summaries, compare this technique with our guide to SUMIFS with multiple criteria.
5. Defensive Lookup with Custom Fallbacks to Prevent #N/A
Problem: A financial audit flags external entries missing from internal databases, which otherwise cascades into #N/A across summary cards.
=XLOOKUP(1, (A2:A6="East") * (B2:B6="Matcha"), E2:E6, 0)
Because our dataset contains no East row with Matcha, the array evaluates entirely to zeros {0; 0; 0; 0; 0}. Instead of throwing an error that breaks downstream formulas, XLOOKUP returns numeric 0. For deeper troubleshooting on lookup error recovery, inspect our guide on how to fix the #N/A error in Excel.
Multi-Criteria Formula Comparison
When designing enterprise workbooks, choosing the right multi-criteria method impacts file speed and maintenance overhead:
| Formula Pattern | Helper Column Needed? | Handles Left Lookups? | Resilience to Column Inserts | Speed on 50k+ Rows |
|---|---|---|---|---|
XLOOKUP Boolean (C1)*(C2) |
No | Yes | High (Direct Range Links) | Fast (Vectorized Engine) |
| INDEX / MATCH Array | No | Yes | High | Moderate (Requires Ctrl+Shift+Enter in legacy Excel) |
VLOOKUP with Helper & |
Yes | No | Fragile (Breaks on column changes) | Slow (Double text evaluation) |
| FILTER Multi-Criteria | No | Yes | High | Returns all matching rows (Spill) |
If you need to return all matching rows rather than a single specific value, review our dedicated guide to the FILTER function with multiple criteria. To cross both rows and columns in a 2D matrix, read our guide on XLOOKUP two-way lookup. For older Excel 2016 workbooks lacking XLOOKUP, refer to our INDEX and MATCH tutorial.
Master Advanced Formulas with Interactive Practice
Reading formula syntax solves immediate dashboard roadblocks, but writing them under assessment conditions requires active recall. Missing one set of parentheses around boolean conditions triggers a frustrating #VALUE! error.
Inside the Gridverse mobile and web app, you assemble formulas with tactile LEGO-style syntax blocks. You practice multi-condition lookups, defeat spreadsheet Error Bosses, and get instant feedback from Celdi, your interactive spreadsheet co-pilot. Download Gridverse on iOS and Android to build unstoppable formula muscle memory in 5 minutes a day.
Frequently Asked Questions (FAQ)
Can XLOOKUP handle multiple criteria natively?
Yes. Although XLOOKUP has single arguments for lookup_value and lookup_array, passing 1 as the lookup value and multiplying condition expressions like (A2:A10="Value1") * (B2:B10="Value2") creates a virtual in-memory match vector without requiring helper columns.
Why do we use the number 1 as the lookup_value in multi-criteria XLOOKUP?
In spreadsheet calculation engines, boolean comparisons evaluate to TRUE (1) or FALSE (0). Multiplying conditions produces 1 only when every single condition evaluates to TRUE (1 * 1 = 1). Setting lookup_value to 1 instructs XLOOKUP to find the row where all criteria are satisfied.
What is the difference between * and + in multi-criteria lookups?
The asterisk * represents the logical AND operator (all grouped conditions must be true to result in 1). The plus sign + represents the logical OR operator (any condition being true results in a value greater than or equal to 1).
Does multi-criteria XLOOKUP work in Google Sheets?
Yes. Google Sheets natively supports the =XLOOKUP(1, (range1=crit1) * (range2=crit2), return_range) syntax without requiring an ARRAYFORMULA wrapper in modern spreadsheet versions.