
Adds numbers, cell references, and ranges in a single formula. SUM is the standard aggregation function for totals, running balances, and cross-sheet consolidation.
The Excel SUM function adds values. Those values can be literal numbers, cell references, ranges, or any mixture of them. Because SUM accepts ranges directly, it is far more maintainable than writing long formulas such as =A1+A2+A3+A4. A range-based SUM expands more naturally as a worksheet evolves and is easier to audit later.
SUM also establishes the basic model for many other aggregation functions. Once you understand how SUM handles ranges and references, functions such as SUMIF, SUMIFS, and SUBTOTAL become much easier to read. In practice, SUM is the starting point for nearly every worksheet that needs totals.
Returns the arithmetic total of the supplied values. Suitable for simple totals, cross-range aggregation, and cumulative calculations.
Returns the sum of all numeric inputs. Text and blank cells in referenced ranges are ignored rather than treated as errors.
=SUM(number1, [number2], ...)
SUM requires one argument and accepts up to 255. Each argument can be a single number, a cell reference, or a range. That means one formula can add a block of rows, a second range elsewhere on the sheet, and a fixed adjustment amount all at once. Microsoft documents this mixed-input behavior explicitly, which is why SUM remains flexible even in more structured models.
SUM is unconditional. It adds what you point to, without applying filtering logic or weighting. When the worksheet needs more selective behavior, other aggregation functions build on the same foundation.
| Function | Behavior | Use When |
|---|---|---|
SUM |
Add everything in the supplied references | You need a straight total with no criteria |
SUMIF |
Add only rows that meet one condition | You need one filter, such as one region or one threshold |
SUMIFS |
Add only rows that meet multiple conditions | You need an AND-style filter across several fields |
SUBTOTAL |
Add visible rows or selected aggregates | The range is filtered and hidden rows should be treated differently |
Microsoft's own guidance also points out that range-based SUM formulas are safer than long chains of plus operators when rows or columns are inserted. That is one reason professional worksheets usually favor =SUM(A1:A50) over manual addition patterns.
The most common use of SUM is a totals row below a column of numeric data. That pattern is simple, but it matters because it remains readable and durable as the worksheet changes. If data is appended inside the referenced range, the SUM formula typically continues to behave as expected without needing to be rewritten.
SUM is also central to cumulative reporting. A formula such as =SUM($B$1:B4) creates a running total because the starting cell is fixed and the ending row moves as the formula is copied down. This pattern appears in cash-flow schedules, inventory balances, and project-burn tracking.
This is the standard totaling pattern. SUM reads the full range, ignores any blank cells inside it, and returns the arithmetic total. It is easier to maintain than listing each cell individually, especially if the worksheet later gains or loses rows.
=SUM(B1:B4)
// 100 + 250 + 80 + 370 = 800
In cell F1, use SUM to add all values in B1:B4. B1=100, B2=250, B3=80, B4=370. Expected result: 800.
When the values you need are scattered, SUM can take them as separate arguments. This is preferable to a chained + formula because the function still expresses one clear idea: aggregate these selected inputs.
=SUM(B1,B3)
// 100 + 80 = 180
In cell F2, use SUM to add only B1 and B3 (skipping B2 and B4). Expected result: 180.
SUM can combine disconnected ranges in one formula. That is useful when totals must draw from several separate blocks of a sheet or when the relevant data is organized by section rather than one continuous table.
=SUM(B1:B2,C1:C2)
// B1:B2 = 350
// C1:C2 = 800
// Total = 1150
In cell F3, use SUM to add both ranges B1:B2 and C1:C2 together. C1=500, C2=300. Expected result: 1150.
The mixed-reference structure is what makes the formula cumulative. The left side of the range remains anchored at B1, while the right side expands as the formula moves down the sheet. Each row therefore shows the total accumulated up to that point.
=SUM($B$1:B4)
// On row 4, this totals B1 through B4
// Result = 800
In cell F4, create a running total formula that always starts from B1: =SUM($B$1:B4). Expected: 800.
SUM also supports 3D references such as =SUM(Sheet1:Sheet3!B2), which can consolidate the same cell or range across several adjacent worksheets. That pattern is useful when monthly or departmental sheets share an identical layout and need a combined summary.
+ operators when a range is involved.SUM adds numbers, references, and ranges.=SUM(number1,[number2],...).Tell your friends about this post