Create Column-Wise Running Totals from a Dynamic Array in Excel
Question details
Create a two-dimensional array of cumulative sums calculated independently down each source column.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user wants running totals that retain the dimensions of a dynamic source array.
- Observed behavior
- Each output cell should contain the sum of its source column from the first row through the corresponding row.
Check that your Excel version supports MAKEARRAY, LAMBDA, and dynamic arrays. Identify the source array and leave enough empty cells for the result to spill.
Calculate running totals with MAKEARRAY and LAMBDA
Use this formula to produce a running total for each column while preserving the source array's dimensions.
Go to Formulas > Name Manager > New and create the name TodayArray for your source array. For example, if it spills from A2 on Sheet1, use =Sheet1!$A$2# as the reference.
Select an empty cell outside the source array and enter =MAKEARRAY(ROWS(TodayArray),COLUMNS(TodayArray),LAMBDA(r,c,SUM(INDEX(TodayArray,SEQUENCE(r),c)))).
Press Enter and check that the result spills across the same number of rows and columns as TodayArray. Each cell sums its column from the first source row through its corresponding row.

Work with column running totals in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format compatibility for easy migration. For a manual running-total approach, enter =SUM(A$2:A2) in a separate output area and fill it down and across, adjusting the source reference as needed.

Frequently Asked Questions
What does TodayArray refer to in the formula?
It is a defined name for the source array. Create it under Formulas > Name Manager > New, or replace TodayArray in the formula with a suitable array reference such as A2#.
Why does the result show #SPILL!?
The output area may contain data or other obstructions. Clear the cells where the result needs to spill, then check the formula cell again.
Will the result resize when the source array changes?
Yes, if TodayArray refers to a dynamic spill, such as Sheet1!$A$2#, the formula recalculates using its current row and column counts. Keep the expanded output area clear.
What if Excel does not recognize MAKEARRAY or LAMBDA?
Your Excel version may not support these functions. Check for an Excel update or use a supported version; as an alternative, use a SUM formula such as =SUM(A$2:A2) and fill it down and across.




