The goal is to remove the #N/A error that XLOOKUP returns when it can’t find a result.

XLOOKUP function

XLOOKUP is a modern replacement for the VLOOKUP function.

It is a flexible and versatile function that can be used in a wide variety of situations.

Excel formula: XLOOKUP basic exact match

However, the alternative value is not limited to text.

In this way, you might chain together multiple XLOOKUP formulas.

The formula above is not wrong, it is just more complex than necessary.

Excel formula: VLOOKUP without #N/A error

This is a different formula from the IFNA formula above, and different from providing a value for thenot_foundargument.

This formula will trapany errorreturned by XLOOKUP, including #REF!, #NAME, etc.

Unless you have a good reason to want this result, I would avoid XLOOKUP with IFERROR.

Excel formula: How to fix the #N/A error

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

IFERROR is an elegant way to trap and manage errors without using more complicated nested IF statements.

Excel XLOOKUP function

Excel IFERROR function

Excel IFNA function

Article image

Article image