Intermediate

Running total in Excel: =SUM($B$2:B2) and other methods

How to calculate a running (cumulative) total in Excel: SUM with a mixed reference, previous-plus-current, stock balance, SUMIF by group and the PivotTable option.

A cashier records daily revenue, and the manager asks one question: “How much have we taken since the start of the month?” Instead of adding it up on a calculator every day, keep a running total column next to it: each row shows the sum from day one up to that day.

Running totals track progress against a monthly plan, stock balances, outstanding loan balances and Pareto analysis. The core trick is a range with one end locked and the other end moving.

Книга1 - Excel
—☐✕
C5fx=СУММ($B$2:B5)
ABCD
1DateRevenueRunning total
201.10.20252 400 0002 400 000
302.10.20253 100 0005 500 000
403.10.20251 800 0007 300 000
504.10.20252 900 00010 200 000
605.10.20253 500 00013 700 000
706.10.20252 700 00016 400 000
8
Готово
C5 holds =SUM($B$2:B5): 10,200,000 soums in total from October 1 to October 4

Method 1: SUM with a mixed reference (most reliable)

1

Type =СУММ(B2:B2) in C2 — for now the range is a single cell.

Книга1 - Excel
—☐✕
C2fx=СУММ(B2:B2)
ABCD
1DateRevenueRunning total
201.10.20252 400 0002 400 0001
302.10.20253 100 000
403.10.20251 800 000
504.10.20252 900 000
6
Готово

2

In the formula bar, put the cursor on the first B2 and press F4 — it becomes =СУММ($B$2:B2). The start of the range is locked, the end stays relative.

3

Fill the formula down. The range grows by one cell per row: C3 uses $B$2:B3, C7 uses $B$2:B7. As a check, the last value must equal =СУММ(B2:B7).

Книга1 - Excel
—☐✕
C4fx=СУММ($B$2:B4)
ABCD
1DateRevenueRunning total
201.10.20252 400 0002 400 000
302.10.20253 100 0005 500 000
403.10.20251 800 0007 300 0003
504.10.20252 900 00010 200 000
6
ГотовоСреднее: 2433333,3333Количество: 3Сумма: 7300000
C4 adds up the range B2:B4 (green border)

Method 2: previous total + today’s amount

1

In C2 take the first value: =B2. In C3 type =C2+B3 — “yesterday’s total + today’s revenue”.

Книга1 - Excel
—☐✕
C3fx=C2+B3
ABCD
1DateRevenueRunning total
201.10.20252 400 0002 400 0001
302.10.20253 100 0005 500 0002
403.10.20251 800 0007 300 000
504.10.20252 900 00010 200 000
6
Готово

2

Fill C3 down. On big tables this is faster (each row adds only two cells), but deleting a row breaks the chain — see the traps below.

Stock balance: in minus out

The same trick gives you the balance after every transaction: =СУММ($B$2:B2)-СУММ($C$2:C2) — everything received so far minus everything issued so far. With method 2: =D1+B2-C2, but then D1 must hold the opening balance, not a header.

Книга1 - Excel
—☐✕
D4fx=СУММ($B$2:B4)-СУММ($C$2:C4)
ABCDE
1DateInOutBalance
201.10.20251000100
302.10.202503070
403.10.2025504080
504.10.202502555
605.10.2025206015
7
Готово
Bags of flour in stock: 15 bags left on October 5 — time to reorder

Pro level: running totals per group and in a PivotTable

When one table mixes several branches, you need a separate running total for each. Give SUMIF the same mixed reference: =СУММЕСЛИ($B$2:B2;B2;$C$2:C2) — “up to this row, only for this branch”.

Likewise =СЧЁТЕСЛИ($B$2:B2;B2) tells you which occurrence of the branch this is (1, 2, 3…). That number is great for finding duplicates and picking out “each customer’s first purchase”.

In Excel 365 one formula fills the whole column: =SCAN(0;B2:B7;LAMBDA(a;x;a+x)) — the result spills down.

Книга1 - Excel
—☐✕
D6fx=СУММЕСЛИ($B$2:B6;B6;$C$2:C6)
ABCDEF
1DateBranchRevenueBranch totalOccurrence
201.10.2025Chilanzar500 000500 0001
301.10.2025Yunusabad700 000700 0001
402.10.2025Chilanzar650 0001 150 0002
502.10.2025Yunusabad400 0001 100 0002
603.10.2025Chilanzar300 0001 450 0003
7
Готово
Chilanzar’s running total: 500,000 → 1,150,000 → 1,450,000. Yunusabad is counted separately

No formulas: “Running Total In” in a PivotTable

1

Create a PivotTable: Вставка → Сводная таблица, Date in Rows, Revenue in Values.

2

Right-click a value → Value Field Settings → Show Values As tab. Pick Running Total In and set Base field to Date.

Книга1 - Excel
—☐✕
B3fx5500000
ABCD
1Row LabelsSum of Revenue
201.10.20252 400 000
302.10.20255 500 000
403.10.20257 300 000
504.10.202510 200 000
6
Готово

3

Click OK — the column becomes a running total and updates with Обновить все when new data arrives.

Try it in the simulator

Type =СУММ($B$2:B2) in C2 and fill it down to C7. Then type =C2/$F$1 in D2 and fill down — you’ll see what share of the monthly plan (F1) is done.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1DayRevenueRunning totalPlan %Plan20000000
212400000
323100000
431800000
542900000
653500000
762700000
8
9
10
11
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

142 / 154