The SUM function adds a range of cells in one step
The SUM function is the fastest way to add numbers in Excel. Instead of typing each cell reference or number individually, you write one formula that tells Excel which cells to add together. The basic structure is =SUM(A1:A10), which adds every number from cell A1 through A10.
Excel recognizes SUM as a built-in function, so you do not need to install anything or change settings. You type the formula into any cell, press Enter, and Excel calculates the total immediately. If you change any of the numbers in the range, the total updates automatically.
The colon between two cell references (like A1:A10) tells Excel to include everything in between. You can also add individual cells that are not next to each other by separating them with commas, like =SUM(A1,A5,A10).
Key Takeaways
- Type =SUM(A1:A10) into any cell to add all numbers from A1 through A10, then press Enter to see the result.
- A colon between cell references means "include everything in this range," while a comma lets you add separate cells that are not next to each other.
- The formula updates automatically whenever you change any number in the range you are summing.
- You can sum across rows, down columns, or use multiple ranges in one formula by separating them with commas.
How to write a basic SUM formula
Click the cell where you want the total to appear. This is usually below a column of numbers or to the right of a row of numbers. Type an equals sign first — this tells Excel you are entering a formula, not just text.
Type SUM followed by an opening parenthesis. Then type the first cell reference (like A1), a colon, and the last cell reference (like A10). Close with a parenthesis. The complete formula looks like =SUM(A1:A10). Press Enter, and Excel shows the total in that cell.
If you prefer to point and click instead of typing, type =SUM( and then click the first cell you want to include. Hold Shift and click the last cell in the range. Excel fills in the cell references for you. Type the closing parenthesis and press Enter.
Adding cells that are not next to each other
Sometimes the numbers you need to add are scattered across the sheet. Use commas to separate individual cells or ranges. For example, =SUM(A1:A5,C1:C5) adds all numbers in cells A1 through A5, plus all numbers in C1 through C5, in one formula.
You can mix single cells and ranges in the same formula. =SUM(A1,A3:A5,A10) adds cell A1, then cells A3 through A5, then cell A10. Each comma-separated section is treated as a separate group, but Excel adds them all together in the result.
Summing across rows instead of down columns
The SUM function works the same way whether your numbers run left to right or top to bottom. To add a row of numbers, type =SUM(A1:E1) to add cells A1, B1, C1, D1, and E1 across the first row. The colon still means "include everything in between."
You can also sum an entire row or column by using the row or column letter alone. =SUM(A:A) adds every number in column A, and =SUM(1:1) adds every number in row 1. Be careful with this approach if your sheet has many rows or columns, because Excel will try to add blank cells too, which does not hurt the result but can slow down your file.
What happens when the range includes text or blank cells
Excel ignores text and blank cells when using SUM. If you have a column with numbers, labels, and empty rows mixed together, SUM adds only the numbers. This makes it safe to use SUM on a range that includes headers or notes.
If a cell contains a formula that results in an error (shown as #VALUE! or #DIV/0!), SUM will also return an error. In that case, you need to fix the error in the individual cell before the SUM formula will work correctly.
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 cell references automatically. If you write =SUM(A1:A10) in cell B1 and then copy it down to B2, Excel changes the formula to =SUM(A2:A11) — it shifts the range down by one row.
Click the cell with your SUM formula. Copy it (Ctrl+C on Windows, Command+C on Mac). Select the cells where you want the formula to go and paste (Ctrl+V or Command+V). Excel updates each copy so the ranges match the rows or columns they are in. This saves time when you need to sum multiple columns or rows of data.
Using SUM with other functions
You can combine SUM with other functions to do more complex calculations. =SUM(A1:A10)/10 adds the range and then divides by 10 to find the average. =SUM(A1:A10)*0.1 calculates 10 percent of the total. You can also nest functions, like =ROUND(SUM(A1:A10),2) to sum the range and round the result to two decimal places.
Common combinations include SUM with IF to add only cells that meet a condition, or SUM with IFERROR to handle errors in your data. These are more advanced uses, but they all start with the same basic SUM structure.
Frequently Asked Questions
Can I use SUM to add numbers from different sheets?
Yes. Type the sheet name, an exclamation point, and the cell reference. For example, =SUM(Sheet1!A1:A10,Sheet2!A1:A10) adds the range from Sheet1 and the same range from Sheet2. If the sheet name has spaces, put it in single quotes: =SUM('Sheet 1'!A1:A10).
What is the difference between SUM and SUMIF?
SUM adds all numbers in a range. SUMIF adds only the numbers that meet a condition you set. For example, =SUMIF(A1:A10,">100") adds only the numbers in that range that are greater than 100. Use SUM when you want to add everything, and SUMIF when you want to add only certain cells.
Why does my SUM formula show an error?
The most common cause is a typo in the formula or a missing closing parenthesis. Check that you typed the cell references correctly and that every opening parenthesis has a matching closing one. If the range contains an error in one of the cells, SUM will also show an error — fix the individual cell first.
Can I see the SUM formula after I press Enter?
Click the cell with the SUM result and look at the formula bar at the top of the screen — it shows the formula you typed. You can also press Ctrl+` (grave accent) on Windows or Command+` on Mac to toggle between showing formulas and showing results in the entire sheet.