Sample Data
Monthly sales data for the first five months of the year.
| Cell | Value |
|---|---|
| A1 | Month |
| B1 | Sales |
| A2 | Jan |
| B2 | 1000 |
| A3 | Feb |
| B3 | 1500 |
| A4 | Mar |
| B4 | 1300 |
| A5 | Apr |
| B5 | 1700 |
| A6 | May |
| B6 | 1600 |
Monthly sales data for the first five months of the year.
| Cell | Value |
|---|---|
| A1 | Month |
| B1 | Sales |
| A2 | Jan |
| B2 | 1000 |
| A3 | Feb |
| B3 | 1500 |
| A4 | Mar |
| B4 | 1300 |
| A5 | Apr |
| B5 | 1700 |
| A6 | May |
| B6 | 1600 |
SUM([Sales]) OVER (ORDER BY [Month] ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)A B 1 | Month | Sales | 2 | Jan | 1000 | 3 | Feb | 1500 | 4 | Mar | 1300 | 5 | Apr | 1700 | 6 | May | 1600 | Arrows: Sales values in column B feed into the cumulative sum calculation ordered by Month in column A.
A B C 1 | Month | Sales | Cumulative Sales | 2 | Jan | 1000 | 1000 | 3 | Feb | 1500 | 2500 | 4 | Mar | 1300 | 3800 | 5 | Apr | 1700 | 5500 | 6 | May | 1600 | 7100 |