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
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.
Example 2. Several ranges
=SUM(B2:B6, D2:D6)Separate ranges with commas to add Test 1 and Test 3 only.
Common mistakes
Numbers stored as text
Numbers imported as text, often aligned to the left, are skipped by SUM. Convert them to numbers first.
Range doesn't include new rows
If you add a row below the range, SUM doesn't include it. Format the data as a table, or extend the range.
FAQ
- How do I add only cells that meet a condition?
- Use SUMIF or SUMIFS.