How to Fix Excel SUMIFS Errors with LAMBDA Arrays
Question details
The user needs to understand why the SUMIFS function fails when passing in-memory arrays generated by a LAMBDA function, and how to successfully calculate conditional sums with virtual arrays.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to calculate conditional sums using in-memory arrays returned by custom LAMBDA functions instead of standard worksheet ranges.
- Observed behavior
- Excel's SUMIFS function returns a #VALUE! error because it treats the in-memory LAMBDA arrays as inconsistent range arguments, whereas it normally accepts spilled worksheet ranges like A5#.
Verify whether your formula is outputting an in-memory virtual array or a physical worksheet range, as range-reliant functions like SUMIFS cannot process virtual arrays.
Alternative 1: Use SUM and FILTER Functions
Bypass the SUMIFS limitation by filtering the array in memory and summing the result.
The FILTER function is designed to handle in-memory and dynamic arrays seamlessly. By using FILTER to isolate the specific values that meet your criteria, you can wrap the entire expression in the SUM function to achieve the same result as SUMIFS without the strict range reference requirement.
Click on the cell containing your faulty SUMIFS formula.
Delete the SUMIFS portion and structure your formula using SUM and FILTER instead.
Format the formula to multiply your condition arrays. For example: =SUM(FILTER(AmountArray, (DateArray>=StartDate) * (DateArray<EndDate))).

Alternative 2: Use SUMPRODUCT with Boolean Tests
Use SUMPRODUCT to perform conditional arithmetic on in-memory arrays.
Alternative 3: Spill the Array to the Grid
Output the LAMBDA array to the physical worksheet and reference the spilled range.
Experience Seamless Spreadsheet Calculations with WPS Office
Struggling with strict Excel array limitations? WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office, equipped with powerful spreadsheet functions and an intuitive interface to handle your complex data needs seamlessly.
- 1. Download the Software: Visit the official WPS Office website and download the free installation package.
- 2. Install and Launch: Follow the simple installation prompts and open WPS Spreadsheets.
- 3. Open Your Excel File: Drag and drop your .xlsx workbook into the application to continue calculating without losing any data.

Frequently Asked Questions
Why does SUMIFS return a #VALUE! error with virtual arrays?
SUMIFS requires physical worksheet range references to operate. When you pass an in-memory or virtual array (like those generated by LAMBDA), SUMIFS cannot process it as a physical range and consequently returns a #VALUE! error.
Does wrapping the array in the INDEX function fix the SUMIFS error?
No. Using INDEX to return an array does not convert it into a physical worksheet reference. The argument remains an in-memory array, meaning SUMIFS will still reject it.
What are spilled ranges and why do they work with SUMIFS?
Spilled ranges are dynamic arrays that output their results across multiple cells on the physical worksheet grid (indicated by the # operator, such as A5#). Because they exist on the physical worksheet rather than strictly in the computer's memory, functions like SUMIFS can read them properly.




