How to Use XLOOKUP with Multiple Criteria in Excel

📅 Jul 28, 2026 📝 Sarah Miller

Finding exact matches in Excel when your criteria span multiple columns can feel incredibly tedious. While traditional approaches rely on complex INDEX/MATCH arrays or clunky helper columns, modern data analysis demands a cleaner approach.

Leveraging XLOOKUP with boolean logic unlocks a powerful, native way to isolate multi-layered data points instantly. Keep in mind, however, the stipulation that all criteria arrays must share identical dimensions to prevent errors. For instance, retrieving a specific budget using "Department" and "Region" requires exact row-range alignment.

Below, we will break down the exact formula syntax to master this multi-criteria technique.

How to Use XLOOKUP with Multiple Criteria in Excel

Excel's introduction of the XLOOKUP function revolutionized data retrieval, rendering older functions like VLOOKUP, HLOOKUP, and even the revered INDEX/MATCH combination largely obsolete. XLOOKUP is faster, more robust, defaults to exact matches, and can look up values to the left. However, a common challenge Excel users face is retrieving data based on multiple criteria.

By default, XLOOKUP is designed to search for a single lookup value in a single lookup array. But what if you need to find the sales figures for a specific Employee in a specific Region during a specific Month? Fortunately, XLOOKUP can easily handle multiple criteria. In this comprehensive guide, we will explore the two primary methods to accomplish this: the elegant Boolean Logic Method and the straightforward Concatenation Method.

The Sample Dataset

To understand these formulas in action, we will use the following sample sales dataset. Suppose this table occupies columns A through D in an Excel worksheet:

Row ID Employee (Col A) Region (Col B) Product (Col C) Sales (Col D)
2 Alice North Laptops $15,000
3 Bob South Phones $12,000
4 Alice East Tablets $8,000
5 Charlie West Laptops $20,000
6 Bob North Tablets $5,500
7 Alice North Phones $11,000

Our goal is to find the Sales value where the Employee is "Alice" and the Region is "North" and the Product is "Phones".


Method 1: The Boolean Logic Method (Recommended)

The Boolean logic approach is the most robust, flexible, and professional way to perform a multi-criteria lookup using XLOOKUP. It does not alter your underlying text data and handles numbers, dates, and text seamlessly.

The Formula Syntax

=XLOOKUP(1, (Criteria_Range1 = Criteria1) * (Criteria_Range2 = Criteria2) * (Criteria_Range3 = Criteria3), Return_Range)

How to Apply It to Our Example

Let's say our search criteria are stored in these helper cells:

  • F2: Alice (Employee)
  • G2: North (Region)
  • H2: Phones (Product)

The exact formula to find her sales figure is:

=XLOOKUP(1, (A2:A7=F2) * (B2:B7=G2) * (C2:C7=H2), D2:D7)

How It Works Under the Hood

This formula seems unusual because we are searching for the number 1. Here is the step-by-step logic of how Excel processes this calculation:

  1. Evaluate individual conditions: Excel checks each row in the specified ranges against our criteria, generating arrays of TRUE and FALSE values.
    • A2:A7=F2 (Is Employee "Alice"?) results in: {TRUE; FALSE; TRUE; FALSE; FALSE; TRUE}
    • B2:B7=G2 (Is Region "North"?) results in: {TRUE; FALSE; FALSE; FALSE; TRUE; TRUE}
    • C2:C7=H2 (Is Product "Phones"?) results in: {FALSE; TRUE; FALSE; FALSE; FALSE; TRUE}
  2. Multiply the arrays: In Excel, mathematical operations force Boolean values to convert to numbers where TRUE = 1 and FALSE = 0.
    • Row 2: TRUE * TRUE * FALSE1 * 1 * 0 = 0
    • Row 3: FALSE * FALSE * TRUE0 * 0 * 1 = 0
    • Row 4: TRUE * FALSE * FALSE1 * 0 * 0 = 0
    • Row 5: FALSE * FALSE * FALSE0 * 0 * 0 = 0
    • Row 6: FALSE * TRUE * FALSE0 * 1 * 0 = 0
    • Row 7: TRUE * TRUE * TRUE1 * 1 * 1 = 1
    The final lookup array becomes: {0; 0; 0; 0; 0; 1}.
  3. Perform the lookup: XLOOKUP searches for the lookup value 1 in the array {0; 0; 0; 0; 0; 1}. It finds a match at the 6th position (which corresponds to row 7 of our spreadsheet).
  4. Return the result: It returns the 6th item from the return range D2:D7 (Sales), which is $11,000.

Method 2: The Concatenation Method

The concatenation method is an older technique popularized during the days of INDEX and MATCH, but it still works perfectly with XLOOKUP. It involves joining (concatenating) the lookup criteria and lookup ranges together using the ampersand (&) operator.

The Formula Syntax

=XLOOKUP(Criteria1 & Criteria2 & Criteria3, Criteria_Range1 & Criteria_Range2 & Criteria_Range3, Return_Range)

How to Apply It to Our Example

Using the same criteria cells (F2, G2, and H2), the formula is:

=XLOOKUP(F2 & G2 & H2, A2:A7 & B2:B7 & C2:C7, D2:D7)

How It Works Under the Hood

Instead of dealing with array multiplication and Boolean math, Excel treats this as a standard text string search:

  • Lookup Value: Excel joins the criteria in F2, G2, and H2 to create a single lookup value: "AliceNorthPhones".
  • Lookup Array: Excel temporarily joins the values of columns A, B, and C for each row to build a single column of joined text strings:
    • Row 2: "AliceNorthLaptops"
    • Row 3: "BobSouthPhones"
    • Row 4: "AliceEastTablets"
    • Row 5: "CharlieWestLaptops"
    • Row 6: "BobNorthTablets"
    • Row 7: "AliceNorthPhones"
  • The Match: XLOOKUP searches for "AliceNorthPhones" in that temporary array, matches it at index position 6, and returns the corresponding sales value of $11,000.

A Warning About Concatenation

While easier to visualize, concatenation has a rare but notable weakness: "false matches" due to data overlap. For example, if you are looking up values in Column A ("North" and "East") and Column B ("Over" and "Lake"), lookups for "North" & "East" and "NorthEast" & "" would both yield "NorthEast". To prevent this, you can insert a delimiter like a hyphen: F2 & "-" & G2 and A2:A7 & "-" & B2:B7.


Handling Missing Values and Errors

One of the best design choices of XLOOKUP is the built-in if_not_found argument (the 4th argument). Instead of wrapping your lookup formulas in an external IFERROR function, you can write the handling message directly inside your multiple-criteria formula.

For example, if we search for a combination that does not exist in our dataset (such as Alice in the West region selling Phones), we can return a custom "No Match Found" message like this:

=XLOOKUP(1, (A2:A7=F2) * (B2:B7=G2) * (C2:C7=H2), D2:D7, "No Match Found")

If Excel fails to find a row where all three criteria evaluate to TRUE, it will gracefully display No Match Found rather than the ugly #N/A error code.


Comparing Both Methods

Feature Boolean Logic Method Concatenation Method
Performance Highly optimized for large datasets. Slower on large datasets due to heavy text manipulation.
Risk of False Matches Zero. Evaluates exact individual comparisons. Low, but possible without delimiters.
Readability Requires understanding of Boolean algebra. Easier for beginners to read and construct.
Flexibility Easily allows logical operators like greater than (>) or less than (<). Limited strictly to exact matches ("equals to").

Pro Tip: Logical Comparisons (Greater Than, Less Than)

The Boolean Logic method allows you to do things the concatenation method simply cannot do, such as evaluating numeric boundaries. Suppose you want to find the first transaction for Alice where the sales figure was greater than $10,000.

You can construct your criteria array using comparison operators:

=XLOOKUP(1, (A2:A7="Alice") * (D2:D7 > 10000), D2:D7)

In this scenario, Excel evaluates whether the Sales column is greater than 10,000 alongside the name check, making the Boolean array method incredibly versatile for complex data analysis workflows.

Conclusion

Mastering multiple criteria in XLOOKUP elevates your Excel capabilities. While the concatenation method is straightforward for simple tasks, the Boolean logic method is the superior option for scalability, efficiency, and complex logic operations. By incorporating these formulas into your spreadsheet designs, you can construct highly dynamic dashboards and robust models with ease.

Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.