In Microsoft Excel, you can calculate a cumulative total in a column or row of cells by using a combination of absolute and relative references in a
SUM() formula.
For example, to keep a running total of cells A1 through A10 in column B
(for example, B1 contains the value from A1, B2 contains A1+A2, B3
contains A1+A2+A3, etc.), set up the worksheet as follows:
| 1. | Type the formula, =SUM($A$1:A1), in cell B1.
|
| 2. | Select cells B1 through B10.
|
| 3. | On the Edit menu, click Fill Down.
|
The $A$1 (absolute reference) is constant in each cell, but the A1
(relative reference) is updated in each successive cell to refer to
the adjacent cell in column A.
NOTE: This information also applies to the AVERAGE() formula.