Excel function

SUMfunction

Adds all the numbers. Text and blank cells are skipped.

All versions
=SUM(B2:D6)
A
B
C
D
1
2
3
4
5
6

Drag the corner dots to change range. Shrink the range to the Test 2 column (C2:C6) to see how the "Absent" cells are skipped. Try breaking it on purpose to see the errors.

Result

954

range
B2:D6Drag the corner dots on the table

The cells to include. Text and blank cells are skipped.

What is the SUM function?

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

SUM adds numbers. You can give it a range like B2:D6, single cells, numbers, or a mix of them separated by commas.

Inside a range, text and blank cells are ignored, so a column with "Absent" in it still adds up without an error.

Arguments

number1
The first number, cell or range to add.
number2, ...
Optional. More numbers, cells or ranges, up to 255 arguments.

SUM examples

  1. Example 1. Total of every score

    =SUM(B2:D6)

    Adds the 11 numbers in the range and skips the blank and "Absent" cells. The result is 954.

  2. Example 2. Several ranges

    =SUM(B2:B6, D2:D6)

    Separate ranges with commas to add Test 1 and Test 3 only.

Common mistakes

FAQ

How do I add only cells that meet a condition?
Use SUMIF or SUMIFS.