All data is in an Excel Table nameddatain the range B5:E14.

This means the formulas below usestructured references.

As a result, the formulas will automatically include new data added to the table.

Excel formula: XLOOKUP with multiple criteria

Because we want OR logic, we use addition in this case.

Notice Excel is not case-sensitive, so we don’t need to capitalize the colors.

In the second array, TRUE values correspond to “pink”.

Excel formula: XLOOKUP with logical criteria

This means the values are mutually exclusive both tests can’t return TRUE at the same time.

This creates a new array containing only TRUE and FALSE values.

Video:Boolean algebra in Excel.

Excel formula: VLOOKUP with multiple criteria

Thecolumn_numargument is hardcoded as 0 to tell theINDEX functionto return theentire row.

Because this formula returns 4 values in one row, it must be entered as amulti-cell array formulainLegacy Excel.

InExcel 365and Excel 2022, the formula “just works” and all four valuesspillinto multiple cells.

Excel formula: Lookup first negative value

For more on this behavior, see:Dynamic Array Formulas in Excel.

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

it’s possible for you to use INDEX to retrieve individual values, or entire rows and columns.

Excel formula: INDEX and MATCH with multiple criteria

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

Often, MATCH is combined with the…

Boolean algebra in Excel

Excel XLOOKUP function

Excel INDEX function

Excel MATCH function

Article image