fxExcelReps

← How-to guides

How to Make a Running Total in Excel

Lock only the start of the range: =SUM($B$2:B2). Copied down, the start stays at B2 and the end moves one row each time, so every row shows the total so far. It's the classic use of an absolute reference next to a relative one.

{"cells": {"A1": "Month", "A2": "Jan", "A3": "Feb", "A4": "Mar", "A5": "Apr", "A6": "May", "A7": "Jun", "B1": "Amount", "B2": 1200, "B3": 950, "B4": -400, "B5": 1100, "B6": -250, "B7": 1320, "C1": "Running total", "C2": "=SUM($B$2:B2)", "C3": "=SUM($B$2:B3)", "C4": "=SUM($B$2:B4)", "C5": "=SUM($B$2:B5)", "C6": "=SUM($B$2:B6)", "C7": "=SUM($B$2:B7)", "D1": "Balance", "D2": "=B2", "D3": "=D2+B3", "D4": "=D3+B4", "D5": "=D4+B5", "D6": "=D5+B6", "D7": "=D6+B7"}, "focus": "C3", "note": "Click C3, C4\u2026 to see how the range grows. Change an amount and every total below updates."}

SUM with a growing range

Write it in the first row and copy it down.

=SUM($B$2:B2)The total from B2 to the current row.

Previous total plus this row

A shorter formula from the second row on, common in bank balances.

=D1+B2The balance above plus this row's amount (the first row is just =B2).

Running total by group

Restart the total for every client or month with SUMIF.

=SUMIF($A$2:A2, A2, $B$2:B2)The running total of the client in column A only.

Common mistakes

Every row shows the same number
Both ends are locked: =SUM($B$2:$B$2). Only the start should have dollar signs.
The total jumps when you insert a row
In the "previous plus this row" version a new row has no formula. Copy the formula into it, or use the SUM version.

Frequently asked questions

Can I make a running total in a PivotTable?

Yes: Value Field Settings → Show Values As → Running Total In.

How do I make a running count?

=COUNTIF($A$2:A2, A2) numbers each occurrence of a value: 1, 2, 3…

What does $B$2:B2 mean?

The first cell is fixed, the second follows the copy. Practise it in absolute references.

Practise it

SUMAbsolute references ($)SUMIF

Think you know this?

15 formula tasks, no hints, with a leaderboard. Absolute, relative and mixed references included.

Take the Pro Challenge →

More how-to guides

How to Calculate a Weighted Average in Excel

Calculate a weighted average in Excel with SUMPRODUCT divided by SUM, for interest rates, grades or prices, and why AVERAGE is wrong.

How to Convert Text to Numbers in Excel

Fix numbers stored as text in Excel with Convert to Number, Text to Columns, VALUE or the double minus, so SUM and lookups work again.

How to Count Cells That Contain Text in Excel

Count cells that contain a word, any text, or the text in another cell, with COUNTIF and wildcards. Live examples you can edit.

How to Sum If a Cell Contains Text in Excel

Add up the amounts where a description contains a word, with SUMIF and wildcards, or SUMIFS for two conditions. With live examples.