SUM is one of the most commonly used functions for adding up numbers in a range of cells, lists, or individual values. The function makes it highly efficient for calculating totals across large datasets without the need for cleaning data.
Syntax of SUM Function in Excel
=SUM(number1, [number2], ...)
Argument | Description |
---|---|
number1 (required) | This is the first value or cell range you want to add. |
[number2] ,... (optional) | These are additional values or cell ranges to include in the sum. |
The SUM
function is flexible in allowing various input types (e.g., SUM(A1:A10,B1:B5,10)
), making it useful for different scenarios.
Note: The SUM
function only adds numbers, not text or other formats. For accurate results, ensure all the cells/cells in the mentioned range are formatted as numbers.
Examples of SUM Function
Adding the Values in a Single Column
Add the marks scored by a student in all the subjects.

- Formula:
SUM(C2:C7)
- Description: The function adds the marks of all 6 subjects in the cell range
C2:C7
and outputs the total marks. - Result: 505
Adding Values in a Non-Contiguous Cells
Add the list of products in the Electronics category.

- Formula:
=SUM(D2,D4,D7)
- Description: The three electronics products in the table are in rows 2, 4, and 7 and the selling prices are in column D. The formula adds the values in cells
D2, D4
, andD7
. - Result: 83000 (Electronics Total)
Adding Values in a Cell Range with a Constant
Convert temperature from Celsius (oC) to Kelvin (K) scale.

- Formula:
SUM(A2,273)
- Description: Temperature can be converted from Celsius to Kelvin scale by adding 273 to the Celsius value.
- Result: 318 (Kelvin scale)
Adding Values in Different Sheets
Add the total sales value in January, February, and March.

- Formula:
=SUM(January!B2, February!B2, March!B2)
- Description: Total sales for January are in the cell
B2
of sheetJanuary
, February in the cellB2
of sheetFebruary
, and March in the cellB2
of sheetMarch
. Total sales for the quarter are calculated by adding values of individual months calculated in different sheets. - Result: 77000
Note: The SUM
function is a foundational tool for all excel users.
SUM vs SUMIF vs SUMIFS
SUM
: Adds specified values without any conditions.SUMIF
: Adds values that meet a single criterion (e.g., sales over $500).SUMIFS
: Adds values that meet multiple criteria (e.g., sales over $500 in January).
Each variation has its use case and advantages, especially when you want to sum data with conditions.
Common Errors While Using SUM Function
#VALUE! Error
Occurs if non-numeric data is included in the range, or there’s a blank cell with a space or text. Verify that only numbers are included in the range you’re summing.
Including Text or Blank Cells
If cells in the range contain text, it can affect the sum. Ensure all cells are numeric or use =SUMIF(range, “>=0”)
to include only numbers.
Using SUM with Individual Cells
Entering =SUM(A1+A2+A3)
instead of =A1+A2+A3
is unnecessary. Use =SUM(A1:A3)
for a cleaner formula.
Incorrect Cell Range
Accidentally selecting the wrong range, especially when adding cells across rows or columns, can lead to inaccurate totals. Double-check ranges in the formula.
AutoSum Including Extra Cells
When using AutoSum, Excel may sometimes include an extra cell that is not part of your intended range. Manually adjust the range if needed.
SUM with Logical or Error Values
Cells with error values (like #DIV/0!) in the range will cause the SUM function to error. You can use =SUMIF(range, “<>#DIV/0!”)
to ignore these errors.
SUM Function – Tips and Best Practices
- Using AutoSum: In the Home tab, you can click AutoSum to instantly calculate the sum of selected rows or columns, making quick work of frequent calculations.
- Summing Conditional Values with SUMIF: To sum values based on a criterion, use SUMIF with conditions such as “greater than” or “specific category.”
- Summing Across Multiple Sheets: If you need a total across several sheets, you can specify a 3D reference (e.g.,
=SUM(Sheet1:Sheet3!A1:A5)
).
Frequently Asked Questions (FAQs)
-
What is the Syntax of SUM Function in Excel?
=SUM(number1, [number2], ...)
is the syntax of theSUM
function in Excel. -
What does the SUM Function do in Excel?
The Excel
SUM
function adds numbers from selected cells or ranges to calculate a total quickly. -
Does the Excel SUM Function ignore texts?
Yes,
SUM
only adds numbers and ignores any text within the selected range. -
Why is SUM not working in Excel?
Common errors while using
SUM
include numbers formatted as text, extra spaces, or incorrect range selections. Ensure cells are numeric and formatted correctly. -
How to Add Non-Contiguous Cells in Excel?
You can add non-contiguous cells by separating them with commas, like
=SUM(A1,B2,C3)
.