Instant digital downloadExcel and Google SheetsSecure card checkout

Excel and Google Sheets how-to

Make a running total (cumulative sum)

Monthly sales in one column, the total so far in the next. One formula, filled down.

ABC
1MonthSalesTotal so far
2Jan12001200
3Feb9502150
4Mar14303580
5Apr8004380
6May16105990
7Jun11007090

Sample data. Months in A, sales in B, the running total in C.

The formula

Click C2 and type:

=SUM($B$2:B2)

Then drag the small square at the bottom right of C2 down to C7. C2 shows 1200, C3 2150 and C7 7090, the total of all six months.

  • $B$2 is locked, so every row starts adding at January.
  • B2 has no dollar signs, so it moves down a row each time: C3 adds B2:B3, C4 adds B2:B4, and so on.

Why the dollar signs matter

Without them the whole range moves down, so C3 becomes:

=SUM(B3:B3)

and shows 950, only February, not the total so far. If your running total just repeats the column next to it, the first cell is missing its $ signs. In Excel for Windows, press F4 right after typing B2 to add them.

The add-the-row-above way

Another common way: C2 is just the first month, and every row below adds its own sales to the total above it. In C2:

=B2

and in C3, filled down:

=C2+B3

C3 shows 2150 and C7 7090, the same as SUM. The catch: if a sales cell holds text such as n/a, a + gives #VALUE! and every total below it breaks. SUM skips text, so with sales of 100, n/a and 50, =SUM($B$2:B2) still gives 100, 100 and 150.

Keep it blank on empty rows

Filled down past your last month, the total repeats 7090 on every empty row. To leave those rows blank:

=IF(B2="","",SUM($B$2:B2))

Rows with sales show the total so far (7090 in June); rows with no sales yet stay empty.

Running percentage of the total

To see how much of the whole period you have reached, divide the total so far by the grand total:

=SUM($B$2:B2)/SUM($B$2:$B$7)

Format the column as a percentage. By March it shows 50.5%: half of the six months of sales came in the first three.

A running balance, checkbook style

With deposits in C, payments in D and the opening balance in E1, the balance in E2 is the balance above, plus money in, minus money out:

=E1+C2-D2

Fill it down. With an opening balance of 500, a 200 deposit and a 75 payment, E2 shows 625; a 120 payment on the next row brings it to 505, and a 350 deposit after that to 855. Empty cells count as zero, so a row with only a payment works. SUM, IF and the $ signs work the same in every current version of Excel and in Google Sheets.

Templates with the math already done

Rather skip the formulas? These templates come with every formula built and checked, plus a filled-in sample.

More how-tos