ExcelFormulas logoExcelFormulas.
Ask AI
Math & ArithmeticVerified QA Tested

SUM.

Adds all numbers in a range of cells.

Category: Math & Arithmetic
ExcelExcel 365Excel 2021Excel 2019Google Sheets

How it works.

The SUM function adds all the numbers that you specify as arguments. Each argument can be a range, a cell reference, an array, a constant, a formula, or the result of another function.

💡 In simple terms.

Adds up all the numbers in a selected group of cells to find the total sum.

Everyday Analogy

"Think of this like adding up all the coins you have in different jars to see your total savings."

Formula syntax.

Standard Excel Notation
=SUM(number1, [number2], ...)
Tip:Arguments wrapped in square brackets [like_this] are optional; all other arguments are required.

Formula arguments.

Every parameter accepted by the SUM function is detailed below.

number1Required

The first number, cell reference, or range you want to sum.

Example value: B2:B6
number2Optional

Additional numbers, cell references, or ranges you want to sum (up to 255).

Simple example.

Step-by-Step Scenario

Sum Monthly Expenses

Calculate the total cost of all expenses in column B.

Expense ItemCostStatusTotal Cost
Rent1200Paid——
Groceries350Paid——
Utilities180Paid——
Applied Formula
=SUM(B2:B6)
Expected Result:1500

Evaluates SUM over the sample table cells, placing the verified output in cell D2.

Formula generator.

Full Generator Wizard

Customize the argument fields below to generate a tailored SUM formula ready to paste directly into your worksheet.

Generated FormulaReady to copy

Expected result behavior.

Returns number 1500 based on sample evaluation criteria and active cell references.

Sample Output:1500
Output Type:Numeric (Double/Integer)

Best Practices

  • You can select an entire column or row by clicking the header (e.g. B:B), which will sum everything in that column.
  • SUM ignores blank cells and cells with text, preventing common addition errors.

Common Mistakes

  • If any of the cells in the range contain error values (like #VALUE!), SUM will return that error. Use AGGREGATE or SUMIFS to ignore errors.
Compatibility Database

Platform & version compatibility.

Verified platform compatibility matrix based on actual spreadsheet calculation engine specifications.

Excel✓
Supported
Excel 365✓
Supported
Excel 2021✓
Supported
Excel 2019✓
Supported
Google Sheets✓
Supported
Microsoft Excel History & Version Availability

Core standard function supported across all modern and legacy Microsoft Excel versions (365, 2021, 2019, 2016, 2013, 2010), as well as Excel for the Web and Mac.

Google Sheets Compatibility Notes

100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.

Frequently asked questions.

Technical Q&A
Can I use SUM across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =SUM(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in SUM?↓

If any of the cells in the range contain error values (like #VALUE!), SUM will return that error. Use AGGREGATE or SUMIFS to ignore errors.

Does SUM work identically in Google Sheets?↓

Yes, SUM is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.