Continuous Total That Changes With Each Entry
-
Set up a worksheet like the following example.
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
-
Create a blank workbook or worksheet.
-
Select the example in the Help topic.
Note:Do not select the row or column headers.
-
Press CTRL+C.
-
In the worksheet, select cell A1, and press CTRL+V.
-
To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
A
B
C
D
E
1
Date
Product
Quantity
Formula
Running Total
2
2-Jan
Beach toys
5
=SUM($C$2:$C2)
5
3
2-Jan
Sunglasses
3
=SUM($C$2:$C3)
8
4
3-Jan
Beach toys
9
=SUM($C$2:$C4)
17
5
3-Jan
Sunglasses
8
=SUM($C$2:$C5)
25
6
3-Jan
Swing set
1
=SUM($C$2:$C6)
26
7
4-Jan
Beach toys
6
=SUM($C$2:$C7)
32
8
4-Jan
Sunglasses
4
=SUM($C$2:$C8)
36
9
5-Jan
Beach toys
11
=SUM($C$2:$C9)
47
10
5-Jan
Sandbox
1
=SUM($C$2:$C10)
48
11
5-Jan
Sunglasses
5
=SUM($C$2:$C11)
53
12
5-Jan
Swing set
2
=SUM($C$2:$C12)
55
If you look closely at the formulas in column D, you will see that the first part of the range is an absolute reference (both the column and row are preceded by the $ symbol), and that the second part of the range is a mixed reference (only the column is preceded by the $ symbol). Entering the formula in this way enables it to work as a running total when you copy it to adjacent rows.
-
-
To maintain the running total, add a row for each new entry and copy the formula from column D to that row.
You do not need to manually enter or copy the formula in each row. For example, you can enter the formula in just cell D2. Then simply copy the formula to other rows that contain data by dragging the fill handle to cell D13.
Note:A running total differs from a running balance, in which you watch the sum of values grow or shrink (for example, a checkbook register) as new entries are added.
-
Set up a worksheet like the following example.
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
-
Create a blank workbook or worksheet.
-
Select the example in the Help topic.
Note:Do not select the row or column headers.
-
Press + C .
-
In the worksheet, select cell A1, and then press + V .
-
To switch between viewing the results and viewing the formulas that return the results, press CONTROL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
A
B
C
D
E
1
Date
Product
Quantity
Formula
Running Total
2
2-Jan
Beach toys
5
=SUM($C$2:$C2)
5
3
2-Jan
Sunglasses
3
=SUM($C$2:$C3)
8
4
3-Jan
Beach toys
9
=SUM($C$2:$C4)
17
5
3-Jan
Sunglasses
8
=SUM($C$2:$C5)
25
6
3-Jan
Swing set
1
=SUM($C$2:$C6)
26
7
4-Jan
Beach toys
6
=SUM($C$2:$C7)
32
8
4-Jan
Sunglasses
4
=SUM($C$2:$C8)
36
9
5-Jan
Beach toys
11
=SUM($C$2:$C9)
47
10
5-Jan
Sandbox
1
=SUM($C$2:$C10)
48
11
5-Jan
Sunglasses
5
=SUM($C$2:$C11)
53
12
5-Jan
Swing set
2
=SUM($C$2:$C12)
55
If you look closely at the formulas in column D, you will see that the first part of the range is an absolute reference (both the column and row are preceded by the $ symbol), and that the second part of the range is a mixed reference (only the column is preceded by the $ symbol). Entering the formula in this way enables it to work as a running total when you copy it to adjacent rows.
-
-
To maintain the running total, add a row for each new entry and copy the formula from column D to that row.
You do not need to manually enter or copy the formula in each row. For example, you can enter the formula in just cell D2. Then simply copy the formula to other rows that contain data by dragging the fill handle to cell D13.
Note:A running total differs from a running balance, in which you watch the sum of values grow or shrink (for example, a checkbook register) as new entries are added.
robertsonhavight1938.blogspot.com
Source: https://support.microsoft.com/en-us/office/calculate-a-running-total-in-excel-1359bf89-180b-4771-b5b4-c6f6558549c5
0 Response to "Continuous Total That Changes With Each Entry"
Post a Comment