WorkbookLogic
FunctionFreeMathbeginnerSUMIFROUND

SUM Function

By WorkbookLogic

The Excel SUM function adds numeric values from cells, ranges, or separate arguments. It is the standard choice for totals that do not require conditions.

ExcelLast reviewed Sep 11, 2026
sum-function-v1.0.0.xlsxFree
Excel SUM Function
Change the cream input cells to see each total update; formula syntax and live results sit beside the source data.
Source data, editableSUM examples
PeriodAmountAdjustmentMixed ValueExampleFormula syntaxResult
January1,200-75100Contiguous range total=SUM(B12:B21)7,150
February1,35020Selected cells only=SUM(C12,C15,C18,C21)-40
March1,1000PendingTwo separate ranges=SUM(B12:B15,C12:C15)5,015
April1,450-30250Mixed range ignores blanks/text=SUM(D12:D21)400
May900100-50
June-2500How to read the examples
July040n/aColon (:) means a contiguous range.
August775-1075Commas separate individual cells or ranges.
September5Referenced blanks and text are ignored; numeric zero is included.
October6252525
Reliability checks
Contiguous total equals the arithmetic total of its source rangeOK
Mixed-range total equals the total of numeric cells onlyOK

Overview

The Excel SUM function adds numbers without requiring a long chain of + operators. It works with a single range, selected cells, several ranges, or a mixture of those argument types.

Quick reference

Syntax: =SUM(number1, [number2], ...)

Returns: The total of the numeric values supplied. (number)

Arguments:

  • number1 (required) — The first number, cell reference, range, or array to add.
  • number2 (optional) — An additional number, cell reference, range, or array to add; more optional arguments may follow.

The bracketed arguments after number1 are optional. Add further values, references, ranges, or arrays when they belong in the same total.

Common uses

  • Total monthly revenue, costs, hours, quantities, or balances.
  • Combine non-adjacent subtotals or selected adjustments.
  • Roll several blocks of detail into one reporting total.
  • Add mixed ranges in which labels and blank cells may appear alongside numbers.

Calculations

SUM evaluates every argument and combines the numeric values into one total. A colon creates a contiguous range, while commas separate individual cells or additional ranges.

When a referenced range contains blank cells or text, those cells do not contribute to the total. Numeric zero is included but does not change the result, and negative numbers reduce the total. If a referenced cell contains an error, that error propagates to the result.

Using a range such as B12:B21 is generally easier to read and maintain than adding each cell individually. The range can also grow or shift more cleanly when rows are inserted.

Function behavior

Situation

Behavior

Blank cells

Ignored when they occur in a referenced range.

Text in referenced cells

Ignored rather than treated as zero.

Zero

Included as a numeric value, although it does not change the total.

Negative numbers

Included and reduce the result.

Errors

An error in a referenced cell causes the formula to return an error.

Multiple ranges

All numeric values in every supplied range are added together.

Common errors

Chaining every cell with plus signs

What happens:
The formula becomes long and fragile, and a newly inserted row can be omitted from the calculation.

Better approach:
Use one contiguous range whenever the cells belong to the same block.

Expecting SUM to apply a condition

What happens:
Every numeric value in the supplied references contributes, even when only certain rows were intended.

Better approach:
Use SUMIF for one condition or SUMIFS for multiple conditions.

Ignoring source errors

What happens:
An error inside a referenced range propagates through SUM.

Better approach:
Resolve the source error or use an error-aware aggregation method when exclusion is intentional and documented.

Example

Example 1 — Sum a Contiguous Range

=SUM(B12:B21)

This formula adds the numeric values in ten monthly amount cells. In the example workbook, the values include a blank, zero, and a negative adjustment, and the result is 7,150.

Example 2 — Sum Selected Cells

=SUM(C12,C15,C18,C21)

Only the four named cells contribute. The sample adjustments are -75, -30, 40, and 25, producing -40.

Example 3 — Sum Multiple Ranges

=SUM(B12:B15,C12:C15)

The two four-cell ranges are treated as one collection of numbers. Their combined total is 5,015.

Example workbook

The workbook contains SUM Example and Notes tabs. The main sheet places editable data beside four live formulas covering a contiguous range, selected cells, multiple ranges, and mixed content. Two reconciliation checks confirm the range total and the mixed-content result.

Key takeaway

Use SUM when every numeric value in the supplied cells or ranges should contribute to one total; move to a conditional function when eligibility rules are required.