Fix XLOOKUP Dynamic Array Fallback Issues in Excel
Question details
The user needs to resolve an issue where XLOOKUP handles dynamic array results differently when the if_not_found argument is a direct range instead of a value expression or transformed array.

- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- Performing bulk lookups with XLOOKUP that return a spilled dynamic array, and requiring a row-by-row fallback value from another column when no match is found.
- Observed behavior
- XLOOKUP behaves differently depending on whether the fallback argument is passed as a direct cell reference range, a transformed array, or a value expression, occasionally failing to evaluate row-by-row correctly.
Ensure your spreadsheet software is updated to a version that supports dynamic arrays and the XLOOKUP, MAP, and LAMBDA functions.
Use IFNA or IFERROR to Handle Array Fallbacks
This is the most straightforward method. By separating the error handling from XLOOKUP's built-in argument, you ensure the array is processed row-by-row correctly.
When using XLOOKUP with dynamic arrays, passing a range directly into the 'if_not_found' argument can sometimes cause evaluation issues. Wrapping the entire lookup in an IFNA function forces the array to evaluate first, then handles missing values individually.
Click on the first cell where you want your dynamic array results to spill.
Type the formula: =IFNA(XLOOKUP(E2:E5, A:A, B:B), E2:E5). Replace the ranges with your actual lookup values, lookup array, return array, and fallback range.
Press Enter. The formula will spill down the column, returning the matched data from column B, or defaulting to the original value in column E if no match is found.

Use MAP and LAMBDA for Individual Row Evaluation
Use this method if you have complex data structures and need to guarantee that each lookup value is evaluated completely independently.
Force Value-Array Evaluation with Data Transformations
A quick syntax trick to force XLOOKUP to interpret the fallback range as an array of values rather than a direct reference.
Master Dynamic Arrays with WPS Spreadsheet
WPS Spreadsheet fully supports advanced functions like XLOOKUP, MAP, and dynamic arrays. You can seamlessly perform complex lookups, error trapping, and array evaluations without worrying about compatibility issues.
- 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and launch WPS Spreadsheet.
- 2. Open Your Data File: Import your existing Excel workbook containing the lookup data.
- 3. Input the Dynamic Formula: Select the target cell and type your IFNA and XLOOKUP combination to safely handle array fallbacks.
- 4. Generate Spilled Results: Press Enter, and watch WPS Spreadsheet instantly calculate and spill the dynamic array across the rows.

Frequently Asked Questions
Why doesn't a standard range work in XLOOKUP's fallback argument?
When evaluating dynamic arrays, XLOOKUP expects the fallback argument ('if_not_found') to be a single value or an evaluated array. Providing a direct cell range reference can cause reference mapping issues, preventing it from applying the fallback row-by-row.
What is the difference between IFNA and IFERROR when using XLOOKUP?
IFNA specifically catches the #N/A error, which is the standard error returned when a lookup match isn't found. IFERROR catches #N/A as well as other calculation errors like #DIV/0! or #VALUE!. Using IFNA is generally safer for lookups so you don't accidentally mask unrelated formula errors.
Does WPS Spreadsheet support the MAP and LAMBDA functions?
Yes, modern versions of WPS Spreadsheet support advanced dynamic array formulas including MAP, LAMBDA, and XLOOKUP, making it fully compatible with complex Excel worksheets.
What does appending &"" to a cell range do?
Appending &"" to a range (e.g., E2:E5&"") forces the spreadsheet engine to evaluate the cell references and convert them into an array of text strings. This bypasses the reference limitation in XLOOKUP's fallback argument.




