Home โ€บ Guides โ€บ How to Calculate a Cumulative Sum in Excel
Aggregation

How to Calculate a Cumulative Sum in Excel

Last updated: 2026-09-24

โšก Quick Answer

Use an expanding range such as =SUM($B$2:B2) and fill down. Each row includes the current value plus every earlier value.

=$B$2+B3

What this solves

Keep the first cell fixed and let the second endpoint expand. This is the core pattern for a running total. This guide is written for people who need a dependable spreadsheet result, not just a function definition. The key is to connect the formula to the structure of the data and then verify the output.

1. Start with the data

Before writing the formula, identify the input cells, the expected output, and the unit being calculated. Keep headers separate from data, use one record per row where possible, and make sure dates and numbers are stored as the correct Excel data types.

2. Core formula pattern

The primary search intent for this page is cumulative sum Excel. A closely related query is running total Excel formula. The formula above is a starting pattern; adjust references to match the user's actual table rather than blindly copying entire-column references.

=$B$2+B3

When copying a formula, deliberately choose relative, absolute, or mixed references. A reference such as A2 moves when copied; $A$2 stays fixed; mixed references such as $A2 or A$2 lock only one dimension.

3. Worked example

Example worksheet
DATA ยท FORMULAS ยท REVIEW
Input Value Expected check
Row 1 100 Use the same rule
Row 2 150 Compare with source
Row 3 200 Verify independently

Build the smallest version first. Enter the source values, place the formula beside them, and compare one result against a hand calculation. Once the logic is correct, fill or spill the formula across the required range.

4. Common mistakes

5. Verification checklist

  1. Test one simple known case.
  2. Test a boundary case, such as the first or last row.
  3. Test a blank or invalid input if the workbook can receive one.
  4. Check the formula against an independent calculation.
  5. Change one source value and confirm the result changes exactly as expected.
  6. If the result feeds money, grades, dates, or reporting, inspect the unit and rounding rules.

6. When another method is better

No Excel function is automatically correct for every workbook. A formula may be technically valid but still be the wrong model if the data is poorly structured or the business rule is unclear. Prefer a simpler formula when it is easier to audit, and prefer a helper column or lookup table when it makes assumptions visible.

7. Practical reliability notes

For production workbooks, avoid fragile hard-coded ranges when the data grows. Excel Tables can provide structured references, while dynamic-array functions can remove repeated manual range editing. If the workbook will be shared with older Excel versions, confirm function availability before using newer dynamic-array functions.

8. Quick troubleshooting

9. excelformulaai workflow

When a user describes the task in ordinary language, the safest workflow is Task โ†’ Action โ†’ Result: understand what they want, choose a transparent spreadsheet operation, then show the result and assumptions. The formula is only one part of a useful answer.

Key takeaway

Keep the first cell fixed and let the second endpoint expand. This is the core pattern for a running total. Build the smallest correct formula, verify it with a known case, and only then scale it across the workbook.

Frequently asked questions

Should I use an entire-column reference?

It can be convenient, but bounded ranges or Excel Tables are often easier to audit and can reduce unnecessary calculation work in large models.

Why does the formula work in one row but not another?

Check copied references, mixed references, data types, and whether the row has an exception such as a blank or error value.

How do I know the result is trustworthy?

Test a known case, a boundary case, and at least one unusual input. For important workbooks, compare the result with an independent method.

10. Production checklist

Before publishing or sharing the workbook, confirm that the source data is complete, the formula references the intended range, and the displayed result uses the correct units.

Protect assumptions that should not be edited accidentally, document unusual business rules, and keep a small test case available for future changes.

If the workbook will be handed to another person, make the formula understandable enough that they can audit it without guessing what each input means.

Need a formula from plain English?
Describe the spreadsheet task in excelformulaai and verify the generated result against your data before relying on it.