SUM

 

Sum a Range | Sum Entire Column | Sum Non-contiguous Cells | AutoSum | Conditional Sum | Sum Every Nth Row | Sum Largest Numbers | Sum Range with Errors

Use the SUM function in Excel to sum a range of cells, an entire column or non-contiguous cells. To create awesome SUM formulas, combine the SUM function with other Excel functions.

Sum a Range

Most of the time, you'll use the SUM function in Excel to sum a range of cells.

Sum Range

Note: simply type =SUM(A1:A8) to enter this formula. When you arrive at: =SUM( instead of typing A1:A8, simply select the range A1:A8.

Sum Entire Column

You can also use the SUM function in Excel to sum an entire column.

Sum Entire Column

Cell A99

Note: you can also use the SUM function in Excel to sum an entire row. For example, =SUM(5:5) sums all values in the 5th row.

Sum Non-contiguous Cells

You can also use the SUM function in Excel to sum non-contiguous cells. Non-contiguous means not next to each other.

Sum Non-contiguous Cells

Note: =A3+A5+A8 produces the exact same result!

AutoSum

Use AutoSum or press ALT + = to quickly sum a column or row of numbers.

1. First, select the cell below the column of numbers (or next to the row of numbers) you want to sum.

Select Cell

2. On the Home tab, in the Editing group, click AutoSum (or press ATL + =).

Click AutoSum

3. Press Enter.

AutoSum

You can also use AutoSum to quickly add a total row and a total column.

4. For example, select the range B2:F5 below.

Select Range

5. Press ATL + =

Excel inserts 8 SUM functions! An easy but impressive trick.

Total Row and Total Column

Conditional Sum

The SUMIF function in Excel returns a conditional sum.

1. The SUMIF function below sums values in the range B1:B5 if the corresponding cells in the range A1:A5 contain exactly green.

SUMIF function in Excel

2. The SUMIF function below sums today's sales.

SUMIF and TODAY

Note: today is August 3rd, 2018. Visit our page about the SUMIF function for more information and examples.

Sum Every Nth Row

The SUM formula below uses SUM, MOD and ROW to sum every nth row. Change the 3 to 4 to sum every 4th row, to 5 to sum every 5th row, etc.

Sum Every Nth Row

Note: the formula bar indicates that this is an array formula by enclosing it in curly braces {}. Do not type these yourself. To enter an array formula, finish by pressing CTRL + SHIFT + ENTER. In Excel 365 or Excel 2021, finish by simply pressing Enter. You won't see curly braces.

Sum Largest Numbers

The SUM formula below uses SUM and LARGE to sum the largest numbers in a range. Change {1,2,3,4} to {1,2,3,4,5} to sum the 5 largest numbers.

Sum Largest Numbers

Note: =LARGE(A1:A11,2) simply returns the second largest number.

Sum Range with Errors

The SUM formula below uses SUM and IFERROR to sum a range with errors. You can also use the AGGREGATE function in Excel to sum a range with errors.

Sum Range with Errors

Note: the SUM function in Excel automatically ignores text values.