Fix Blank Cells in Excel MAP and LAMBDA Spilled Formulas
Question details
The user wants to compare values in a spilled range using a MAP and LAMBDA formula, but the formula outputs blank cells instead of the expected comparison results.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Comparing adjacent values in a dynamic array or spilled range using MAP and LAMBDA.
- Observed behavior
- The resulting spilled cells evaluate but remain completely blank.
Ensure your spreadsheet software is updated to a version that fully supports dynamic array functions, specifically MAP, LAMBDA, and DROP.
Use DROP to Pass Adjacent Arrays Directly
Avoid using volatile cell-reference functions like INDIRECT, ADDRESS, or OFFSET inside your LAMBDA. Pass shifted arrays directly using the DROP function instead.
When working with dynamic arrays, using functions that reconstruct cell references dynamically (like INDIRECT or OFFSET) inside a MAP/LAMBDA construct often fails, resulting in blank cells. By using DROP to shift the arrays before passing them to MAP, the LAMBDA function receives direct arrays and calculates reliably.
Determine the source spilled array you need to analyze, for example, your data might be spilling from cell A1 (referenced as A1#).
Use the DROP function to create the 'current' and 'adjacent' arrays. For example, to compare the current row with the next, you can use DROP(A1#, -1) to remove the last row, and DROP(A1#, 1) to remove the first row.
Supply both of these adjusted arrays into the MAP function directly. Your formula structure should start with: =MAP(DROP(A1#, -1), DROP(A1#, 1), ...
Complete the formula by defining the LAMBDA logic. For example: LAMBDA(curr, next, curr=next)). This accurately compares adjacent values across the spilled range without returning blanks.

Use WPS Spreadsheet for Seamless Dynamic Arrays
WPS Spreadsheet fully supports advanced dynamic array functions, including MAP, LAMBDA, and DROP, allowing you to build robust formulas without compatibility issues.
- 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your data.
- 2. Input the DROP function: Select the target cell and use the DROP function to offset your data ranges for comparison.
- 3. Write the MAP and LAMBDA formula: Wrap your adjusted ranges in the MAP function and define your comparison logic using LAMBDA.
- 4. Execute the formula: Press Enter to let the dynamic array calculate and spill perfectly without generating blank cells.

Frequently Asked Questions
Why does INDIRECT cause blank cells in a MAP function?
INDIRECT is a volatile function that struggles to evaluate dynamic arrays cell-by-cell inside a LAMBDA loop, often breaking the array evaluation process and resulting in reference errors or entirely blank arrays.
What is the DROP function used for in Excel arrays?
The DROP function removes a specified number of rows or columns from the start or end of an array. It is highly effective for creating offset ranges to compare adjacent values without relying on older volatile functions.
Can I use OFFSET instead of DROP to compare adjacent cells?
While OFFSET is traditionally used to refer to adjacent cells, it does not reliably process within MAP and LAMBDA functions for spilled arrays. Using DROP is the recommended, non-volatile alternative.




