FormulaCraft

How to create a cumulative sum in Excel and Google Sheets

Topic:SUM & aggregation
Excel & Google Sheets
=SUM($B$2:B2)

Verified example

Computed by a real spreadsheet engine on the sample data below.

MonthSalesCumulative
Jan400
Feb600
Mar350
Apr700
May450

=SUM($B$2:B2)400

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Place your values in column B starting at row 2 (row 1 is the header).
  2. 2In C2 type =SUM($B$2:B2) and press Enter.
  3. 3Select C2 and copy it down through C3:C6 (or however many rows your data has). Each copied formula expands the range by one row, building the cumulative total.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What is the difference between a cumulative sum and a running total?

They are the same thing. Both describe a column where each cell equals the sum of all values from the first row up to and including that row.

Can I create a cumulative sum for multiple groups (e.g. per product)?

Yes: =SUMIF($A$2:A2,A2,$B$2:B2) creates a running total that resets for each unique value in column A.

More on SUM & aggregation

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: