The SUM function adds a range of numbers with a single formula
The SUM function is Excel's most common way to total numbers. Instead of typing each cell reference by hand or adding numbers one at a time, you write a formula that tells Excel which cells to add together. The formula always starts with an equals sign, followed by the word SUM, then the cells you want to add inside parentheses.
For example, if you have numbers in cells A1, A2, and A3, the formula =SUM(A1:A3) adds all three. The colon between A1 and A3 means "from A1 through A3" — Excel automatically includes every cell in that range. You can also add individual cells that are not next to each other by separating them with commas, like =SUM(A1,A3,A5).
Key Takeaways
- Type =SUM( followed by the cells you want to add, then close with a parenthesis — for example, =SUM(A1:A10) adds cells A1 through A10.
- Use a colon to add a continuous range of cells (A1:A10) or commas to add individual cells that are not next to each other (A1,A3,A5).
- Press Enter after you type the formula, and Excel shows the total in that cell instead of the formula itself.
- You can copy a SUM formula down or across to other cells, and Excel automatically adjusts the cell references for each row or column.
Where to type the SUM formula
Click on the cell where you want the total to appear. This is usually below the numbers you are adding or to the right of them. Type the formula directly into that cell. You can also type it into the formula bar at the top of the screen — the long white box that shows what is in the selected cell.
As you type, Excel shows a tooltip that reminds you of the correct format. When you finish typing the formula, press Enter. Excel calculates the result and displays the total in the cell. The formula itself stays hidden; you only see the number. If you click on that cell later, the formula bar shows the formula you typed.
Adding a continuous range of cells
A continuous range means cells that sit next to each other in a row or column. To add cells A1 through A10, type =SUM(A1:A10). The colon tells Excel to include every cell from the first one to the second one.
You can also select the range by clicking and dragging. Click on cell A1, hold down the mouse button, drag to A10, and release. Excel shows the range highlighted in blue. Then type =SUM( and Excel automatically fills in the range you selected. Type the closing parenthesis and press Enter.
Adding individual cells that are not next to each other
If the numbers you want to add are scattered across the spreadsheet, separate each cell reference with a comma. For example, =SUM(A1,A3,A7,B2) adds only those four cells, skipping everything in between.
You can also mix ranges and individual cells in one formula. =SUM(A1:A5,C2,D4:D6) adds cells A1 through A5, then C2 by itself, then D4 through D6. This is useful when most of your numbers are grouped together but a few are elsewhere on the sheet.
Copying a SUM formula to other cells
Once you have written a SUM formula in one cell, you can copy it to other cells and Excel adjusts the references automatically. If your formula in cell A11 is =SUM(A1:A10), and you copy it down to cell A12, the new formula becomes =SUM(A2:A11) — it shifts down by one row.
To copy the formula, click on the cell that contains it. Then either copy and paste it to another cell, or use the fill handle — the small square at the bottom right corner of the selected cell. Click and drag that square down or across, and Excel copies the formula to each cell you drag over, adjusting the references as it goes.
Common mistakes and how to avoid them
The most common mistake is forgetting the equals sign at the start. Excel only recognizes it as a formula if it begins with =. If you type SUM(A1:A10) without the equals sign, Excel treats it as text and displays it as you typed it.
Another mistake is using the wrong separator. In some regions, Excel uses a semicolon instead of a colon to separate the start and end of a range. Check your regional settings if a formula like =SUM(A1:A10) does not work — you may need to type =SUM(A1;A10) instead. Similarly, some regions use semicolons instead of commas to separate multiple ranges, so =SUM(A1:A5;C1:C5) instead of =SUM(A1:A5,C1:C5).
If your formula shows an error like #NAME? or #VALUE?, check that all cell references are spelled correctly and that you have closed the parenthesis. Excel also shows an error if you try to add cells that contain text instead of numbers.
When to use SUM instead of other methods
SUM is the right choice when you have more than a few numbers to add. If you only have two or three numbers, you can type a simple formula like =A1+A2+A3. But as soon as you have ten or more numbers, SUM is faster and less error-prone because you do not have to type each plus sign.
SUM is also the best choice when your data changes. If you add a new number to your range, SUM automatically includes it in the total. A formula like =A1+A2+A3 would not include a new A4 unless you edit the formula by hand.
Frequently Asked Questions
What if some cells in my range are empty?
SUM ignores empty cells and only adds the cells that contain numbers. If you have =SUM(A1:A10) and cells A3 and A7 are blank, Excel adds the other eight cells and skips the empty ones. This is usually what you want.
Can I use SUM with cells from different sheets?
Yes. Type the sheet name, then an exclamation mark, then the cell reference. For example, =SUM(Sheet1!A1:A10,Sheet2!B1:B5) adds a range from Sheet1 and a range from Sheet2. Use the sheet name exactly as it appears on the sheet tab at the bottom of the window.
Why does my SUM formula show the formula instead of the result?
The cell is probably formatted as text. Right-click the cell, choose Format Cells, and change the format to Number. Then press Enter in the cell again and the formula will calculate.
Can I add cells based on a condition, like only numbers greater than 10?
SUM adds all numbers in a range. If you need to add only numbers that meet a condition, use SUMIF instead. For example, =SUMIF(A1:A10,">10") adds only the numbers in A1 through A10 that are greater than 10.