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

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

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

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

Last reviewed: