The SUM function in Excel is one of the most commonly used basic Excel formulas. It adds any specified arguments and values together, making it the fastest way to add numbers in a spreadsheet. Whether you need to total a column of sales figures for data-driven decision making, combine values from scattered cells or mix cell references with constants, SUM handles it all.
Excel® formulas have their own logic and syntax, much like math problems. Once you understand the syntax, you can save a great deal of time by building basic and complex formulas to do the majority of your work for you. Where in math problems you combine numbers with variables, in Excel formulas and functions you combine numbers with cell addresses.
Once a formula is entered, only the result of the formula's calculation appears. Clicking on the cell reveals the formula behind the cell's value in the formula bar.
Here is the syntax for the Excel SUM formula:
SUM(number1,[number2],...)
"SUM" is the name of the function while "number1" and "number2" here are the variables. Arguments can include:
The table below shows common Excel SUM formula examples and what each one does:
| Formula | What it does |
|---|---|
| =SUM(A1:A10) | Adds all values in cells A1 through A10 |
| =SUM(A1, B1, C1) | Adds the values in three specific cells |
| =SUM(A1:A10, 25) | Adds all values in the range plus the constant 25 |
| =SUM(A1:A10, C1:C10) | Adds two separate ranges together |
Use a colon to define a continuous Excel SUM range (e.g., D5:D9). Use commas to reference individual cells (e.g., F5, F7, F9).
If you type "=SUM(D5:D9)" into the Formula Bar, the numbers in that range are added together and the value is displayed in the cell you have built your formula in.
If you type "=SUM(F5, F7, F9)" into the Formula Bar, then the calculation adds the figures for those cell references.
a. An "=" must begin the formula
b. Type the first value in your formula, whether that is a cell coordinate, a range, or a number.
c. Type a comma to separate values.
d. Type the second value in the formula.
In this example, the formula adds the number in the cell reference A4, the range of numbers between A7 and A10, then adds the constant 15.
Have a simple series of values to add and want to skip a few steps? Place your cursor in the cell you wish for the calculation to be displayed, then select the AutoSum button. The action selects the range of cells that Excel thinks you want to add. Hit enter if Excel guessed right.
You can find AutoSum easily in two places.
Forget locating the AutoSum button or typing in the formula bar. Instead press and hold the Alt key on your keyboard and the plus (+) sign. This is one of many time-saving Excel shortcuts that can speed up your daily workflow.
Even a simple Excel SUM formula can return unexpected results. Here are the most frequent issues and how to resolve them:
Once you are comfortable with SUM, these related functions can help you work with data more efficiently:
Mastering the SUM function is a foundational step toward working confidently in Excel. From basic formulas to advanced data analysis, Pryor Learning offers live and On-Demand Excel training designed for every skill level. Explore Excel courses today to sharpen your spreadsheet skills.