At a glance, this seems like a difficult problem because XMATCH only has one value forlookup_valueandlookup_array.

How can we configure XMATCH to consider values frommultiplecolumns?

This approach is explained below.

XLOOKUP with multiple criteria - visualizing Boolean arrays

The XMATCH function

The XMATCH function is an upgraded replacement for the olderMATCH function.

This is the array used inside XMATCH as thelookup_array.

Because thelookup_arraycontains only 1s and 0s, we provide 1 as thelookup_value.

XLOOKUP with multiple criteria - visualizing Boolean arrays

The screen below shows how the arrays can be visualized with simple formulas in a worksheet.

It is a more robust and flexible successor to the MATCH function.

XMATCH supports approximate and exact matching, reverse search, and wildcards (* ?)

XLOOKUP with multiple criteria - visualizing Boolean arrays

XLOOKUP supports approximate and exact matching, wildcards (* ?)

you could use INDEX to retrieve individual values, or entire rows and columns.

MATCH supports approximate and exact matching, andwildcards(* ?)

XLOOKUP with multiple criteria - visualizing Boolean arrays

XLOOKUP with multiple criteria - visualizing Boolean arrays

Excel formula: XLOOKUP with logical criteria

Excel formula: XLOOKUP with multiple criteria

Excel formula: XLOOKUP with complex multiple criteria

Excel XMATCH function

Excel XLOOKUP function

Excel INDEX function

Excel MATCH function

Article image

Article image

Article image