ShareYourGroupShareYourGroupExcel Formulas

Math functions

SUM function in Excel

SUM adds up numbers, cells and ranges.

SUM is the function everybody uses first, and it has more to it than adding a column. It takes up to 255 arguments, each of which may be a single number, a cell or a whole block of cells.

Syntax

=SUM(number1, [number2], ...)
ArgumentWhat it is
number1, number2, ...Numbers, cells or ranges to add. You can mix them freely.

Examples

Each result below is what Excel itself showed for the formula on the sample sheet.

Sample sheet: Twelve sales made by four salespeople in three regions.
ABCDEF
1DateSalespersonRegionProductUnitsAmount
205-Jan-2026AshaNorthNotebook201200
312-Jan-2026RaviSouthPen50500
420-Jan-2026MeenaNorthBag43000
502-Feb-2026AshaEastPen30300
614-Feb-2026KabirSouthNotebook15900
728-Feb-2026RaviNorthBag21500
803-Mar-2026MeenaEastNotebook402400
915-Mar-2026AshaNorthBag32250
1022-Mar-2026KabirSouthPen60600
1101-Apr-2026RaviEastNotebook251500
1218-Apr-2026MeenaNorthPen80800
1306-May-2026AshaSouthBag53750

How it works

SUM goes through everything you give it and adds up the numbers. In a range, it quietly skips text, empty cells and the words TRUE and FALSE. That is why you can include a heading row or a column with a few notes in it and still get a total.

The quickest way to enter it is the AutoSum button on the Home tab, or the shortcut Alt and the equals key together. Excel guesses the range above or beside the cell. Check the guess before you press Enter: a blank cell in the middle of a column makes AutoSum stop early.

Why SUM is better than plus signs

=A1+A2+A3 and =SUM(A1:A3) give the same answer today. They behave differently tomorrow.

Numbers that will not add

The most common complaint about SUM is that the total is too small, or zero. The cause is nearly always numbers stored as text. They come from pasted or downloaded data, look like numbers, sit at the left of the cell and often carry a small green triangle in the corner. SUM ignores them, exactly as it ignores a name.

Three cures: select the cells and use the warning sign's "Convert to Number"; multiply them by 1 with Paste Special; or convert in a formula with VALUE.

Totals that include hidden or filtered rows

SUM adds every cell in the range, whether you can see it or not. After filtering a list, the SUM at the bottom still shows the total of everything. For "the total of what is on screen", use SUBTOTAL.

Adding across sheets

A 3-D reference adds the same cell on several sheets: =SUM(Jan:Dec!B5) adds B5 on every sheet from the one named Jan to the one named Dec. It suits workbooks with one identical sheet per month.

Running totals

In C2 write =SUM($B$2:B2) and copy it down. The start of the range is fixed with dollar signs and the end is not, so each row adds everything from the top down to itself.

Adding only some rows

SUM has no conditions. To add only the rows for one region or one month, use SUMIF for one condition and SUMIFS for several.

In Google Sheets

SUM is the same in Google Sheets.

Related functions

Every result on this page was calculated in Microsoft Excel (version 16.0, build 20326) on 12 November 2026, not typed by hand.

This is an independent help site. It is not connected with or approved by Microsoft. Excel and Microsoft 365 are trademarks of Microsoft Corporation, named here only to say which program a formula is for. The people and figures in the sample sheets are made up.