Function Problems

How to Use XLOOKUP vs INDEX MATCH for Multiple-Criteria Lookups in Excel

Camila MilosovichCamila Milosovich Nov 11, 2026 869 views

Question details

The user wants to compare and utilize XLOOKUP and INDEX/MATCH functions to return a specific value based on two or more criteria.

How to Use XLOOKUP or INDEX MATCH for Multiple-Criteria Lookups
Product
Excel
Device & OS
not provided
Scenario
Searching for specific data in a large dataset that requires matching multiple conditions simultaneously.
Observed behavior
Retrieving a single matching result from a target column when two or more columns match the specified criteria.
Before you start

Before applying these formulas, ensure your dataset is organized in a tabular format without merged cells, and that the columns containing your criteria have matching data types and exactly equal lengths.

Solution 1Recommended

Use XLOOKUP with Concatenated Search Keys

The simplest method for multiple-criteria lookups is combining the lookup values and lookup arrays using an ampersand (&) and a delimiter.

This approach creates a single, unique lookup string by joining your criteria. It is highly efficient and easier to read than traditional array formulas.

1
Select the target cell

Click on the cell where you want the lookup result to appear.

2
Input the XLOOKUP formula structure

Type the formula combining your criteria: =XLOOKUP(Criteria1 & "|" & Criteria2, LookupRange1 & "|" & LookupRange2, ReturnRange, "").

3
Apply cell references

Replace the placeholder ranges with your actual cell references, for example: =XLOOKUP(D3&"|"&G3, Data!$D$2:$D$100&"|"&Data!$E$2:$E$100, Data!$H$2:$H$100, "").

4
Execute and copy down

Press Enter to apply the formula, then drag the fill handle down to apply it to other rows.

Use XLOOKUP with Concatenated Search Keys
Delimiter usage: Using a delimiter like '|' or '@' between concatenated arrays prevents false positives when two merged strings accidentally match a different combination.
Advanced Spreadsheet Capabilities

Perform Complex Lookups Seamlessly with WPS Spreadsheet

WPS Spreadsheet fully supports advanced functions like XLOOKUP, XMATCH, and INDEX, allowing you to handle multiple-criteria lookups with ease. It is a lightweight, fully compatible alternative for all your data analysis needs.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook in the Spreadsheet module.
  2. 2. Apply your formula: Select a cell and input your preferred multiple-criteria XLOOKUP or INDEX/MATCH formula.
  3. 3. Calculate and analyze: Press Enter to instantly retrieve your data and drag the fill handle to apply it across rows.
Full compatibility with Microsoft Excel formulas, including XLOOKUP and dynamic arrays.Lightweight application that processes large datasets quickly without lag.Free to use with a familiar, easy-to-navigate interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my XLOOKUP formula returning an error with multiple criteria?

Errors typically occur if the lookup arrays are not the exact same size, or if you forgot to include a delimiter (like '|') when concatenating criteria, causing mismatching text strings.

Which is faster for large datasets: XLOOKUP or INDEX/MATCH?

For extremely large datasets, INDEX/MATCH with Boolean arrays can sometimes be marginally faster or more memory-efficient than concatenating large text strings, though XLOOKUP is generally fast enough for most standard use cases.

Can I use these formulas in older versions of Excel?

XLOOKUP and XMATCH are only available in Microsoft 365, Excel 2021, and modern versions of WPS Office. For older versions, you must use standard INDEX and MATCH combined with array formulas (using Ctrl+Shift+Enter).