Mastering ExcelJET's XLOOKUP for Multiple Criteria: A Comprehensive Guide
In the ever-evolving world of Excel, the introduction of the XLOOKUP function by ExcelJET has revolutionized the way we perform lookups. While XLOOKUP is powerful on its own, its true potential unfolds when used for multiple criteria. Let's delve into the intricacies of using XLOOKUP for multiple criteria, enhancing your Excel skills and productivity.
Understanding XLOOKUP
Before we dive into multiple criteria, let's ensure we have a solid grasp of the XLOOKUP function. XLOOKUP is an improved version of the VLOOKUP, HLOOKUP, and INDEX MATCH functions. It's designed to find and retrieve data based on specified criteria, making it an essential tool for data manipulation and analysis.
Syntax of XLOOKUP
The basic syntax of XLOOKUP is:

XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
XLOOKUP for Multiple Criteria
Now, let's explore how to use XLOOKUP for multiple criteria. ExcelJET's XLOOKUP allows you to specify multiple criteria using the IFERROR function in combination with XLOOKUP. Here's a step-by-step guide:
Step 1: Set Up Your Data
Assume we have a table of sales data (Table1) with columns for 'Region', 'Category', and 'Sales'. We want to find the sales for a specific region and category.
| Region | Category | Sales |
|---|---|---|
| East | Electronics | 10000 |
| East | Clothing | 8000 |
| West | Electronics | 12000 |
| West | Clothing | 9000 |
Step 2: Use XLOOKUP with IFERROR
In cell B2, enter the following formula:

=IFERROR(XLOOKUP(B1,A1:A4,C1:C4), "No match found")
- B1: The region we're looking for (e.g., "East")
- A1:A4: The range of regions in our table
- C1:C4: The range of sales in our table
- IFERROR: Displays "No match found" if no match is found
Drag this formula down to copy it for other categories in column B.
Advanced Multiple Criteria with XLOOKUP
You can also use XLOOKUP with multiple criteria by combining it with other functions like AND, OR, and IF. For instance, you might want to find the sales for a specific region and category, but only if the sales are above a certain threshold.
Step 1: Set Up Your Data
Let's add a 'Profit' column to our table, calculated as 'Sales' minus 'Cost'. We want to find the sales for a specific region and category, but only if the profit is above $500.

| Region | Category | Sales | Cost | Profit |
|---|---|---|---|---|
| East | Electronics | 10000 | 6000 | 4000 |
| East | Clothing | 8000 | 5000 | 3000 |
| West | Electronics | 12000 | 7000 | 5000 |
| West | Clothing | 9000 | 6000 | 3000 |
Step 2: Use XLOOKUP with IF and AND
In cell B2, enter the following formula:
=IF(AND(XLOOKUP(B1,A1:A4,C1:C4)>500), XLOOKUP(B1,A1:A4,C1:C4), "No match found")
This formula uses the AND function to check if the sales for the specified region and category are above $500. If they are, it returns the sales. If not, it returns "No match found".
Mastering XLOOKUP for multiple criteria can significantly enhance your Excel skills and productivity. Whether you're performing complex data analysis or simple lookups, XLOOKUP is a versatile tool that can help you streamline your workflow. So, go ahead, give it a try, and watch your Excel skills soar!






















