The fastest way to sum cells in Excel
To add multiple cells together in Excel, type =SUM( followed by the range of cells you want to add, then close with ). For example, if you want to add cells A1 through A10, you would type =SUM(A1:A10) and press Enter. Excel will when ready calculate the total and display it in the cell where you typed the formula.
The colon between two cell references tells Excel to include every cell in that range. If your cells are not next to each other, you can add multiple separate ranges by typing a comma between them: =SUM(A1:A5,C1:C5) will add cells A1 through A5 and C1 through C5, skipping column B entirely.
You can also click and drag to select the cells you want to sum instead of typing their names. Click the cell where you want the answer to appear, type =SUM(, then click and drag across the cells you want to add. Excel will fill in the cell references automatically, and you just need to type the closing parenthesis and press Enter.
Key Takeaways
- The SUM function adds a range of cells: type =SUM(A1:A10) to add cells A1 through A10.
- Use a colon to include every cell between two points, and use a comma to add separate ranges that are not next to each other.
- You can type cell references directly or click and drag to select them, and Excel will fill in the names for you.
- The formula appears in the formula bar at the top of the screen, and you can edit it by clicking in that bar and making changes.
- Copying a SUM formula down a column automatically adjusts the cell references, so you do not have to retype it for each row.
Selecting a range with your mouse instead of typing
If you prefer not to type cell references, you can build the formula by clicking. Click the cell where you want the sum to appear, then type =SUM(. Now click on the first cell you want to add and drag to the last one. As you drag, Excel highlights the range in blue and shows you which cells are included.
When you release the mouse, the cell references appear in your formula automatically. You will see something like =SUM(A1:A10) in both the cell and the formula bar at the top. Type the closing parenthesis ) and press Enter, and the sum appears when ready.
This method is often faster than typing, especially if you are working with a large range or cells that are far apart on the screen. It also reduces the chance of typing a cell reference wrong.
Adding non-adjacent cells that are scattered across the sheet
When the cells you want to add are not in one continuous block, use a comma to separate each range. For example, =SUM(A1:A5,C1:C5,E1:E5) adds three separate groups of cells. Each group is still a range (using a colon), but the comma tells Excel to add all three groups together.
You can also add individual cells mixed with ranges. The formula =SUM(A1,A3:A5,A10) adds cell A1, cells A3 through A5, and cell A10. This is useful when you want to skip certain rows or columns without having to add them all and then subtract the ones you do not want.
When using your mouse to select non-adjacent cells, hold down the Ctrl key (or Cmd on a Mac) while you click and drag. Drag to select the first range, release the mouse, then hold Ctrl again and drag to select the next range. Excel will show all selected areas highlighted in blue.
Copying a SUM formula to other cells
Once you have written a SUM formula in one cell, you can copy it down to other cells and Excel will adjust the references automatically. If you have =SUM(A1:A10) in cell B1 and you copy it down to B2, Excel changes it to =SUM(A2:A11). The formula moves down by one row, and the cell references move with it.
To copy a formula down, click the cell containing the formula, then click and drag the small square in the bottom-right corner of the cell downward. As you drag, Excel shows you how many rows you are copying to. Release the mouse and the formula appears in all the cells you dragged across, with the references adjusted for each row.
You can also copy the cell (Ctrl+C or Cmd+C), select the range where you want it to go, and paste (Ctrl+V or Cmd+V). Excel will adjust all the references to match each row or column automatically. This is faster when you are copying to many cells at once.
Using SUM with filters and hidden rows
The standard SUM function adds all cells in a range, including hidden ones. If you have hidden rows in your spreadsheet (rows that are collapsed or filtered out), SUM will still count them. If you want to add only the visible cells, use SUBTOTAL instead.
Type =SUBTOTAL(9,A1:A10) to sum only visible cells. The number 9 tells Excel to sum, and it ignores any hidden rows. If you use a filter to show only certain rows, SUBTOTAL will add only those visible rows, not the hidden ones.
SUBTOTAL is also useful when you have a total row at the bottom of your data. If you use SUM on a range that includes the total row itself, you will count the total twice. SUBTOTAL avoids this problem because it skips other SUBTOTAL formulas in the range.
Fixing common mistakes in SUM formulas
The most common error is typing the cell references wrong. If you see #NAME? in the cell, you probably misspelled something or forgot the equals sign at the start. Check that your formula starts with = and that all cell references use the correct letter and number.
If your sum is much larger or smaller than expected, you may have included cells you did not mean to. Click on the cell with the formula and look at the formula bar at the top. The range will be highlighted in blue on your spreadsheet, so you can see exactly which cells are being added. If it is wrong, click in the formula bar and edit the cell references.
Another common issue is forgetting the colon between cell references. =SUM(A1 A10) will not work, but =SUM(A1:A10) will. The colon tells Excel that you want every cell from A1 to A10, not just those two cells.
When to use other functions instead of SUM
SUM adds all numbers in a range, but sometimes you need something different. Use AVERAGE to find the middle value: =AVERAGE(A1:A10). Use COUNT to count how many cells contain numbers: =COUNT(A1:A10). Use MAX to find the largest number and MIN to find the smallest.
If you want to add only cells that meet a certain condition, use SUMIF. For example, =SUMIF(A1:A10,">100") adds only the cells in A1 through A10 that contain a number greater than 100. This is useful when you have a column of sales data and want to total only the large orders.
These functions work the same way as SUM: type the function name, open a parenthesis, specify your range, and close the parenthesis. You can find a complete list of functions in Excel by clicking the fx button next to the formula bar.
Frequently Asked Questions
Can I sum cells from different sheets in the same workbook?
Yes. Type the sheet name followed by an exclamation point, then the cell reference. For example, =SUM(Sheet1!A1:A10,Sheet2!A1:A10) adds the range A1:A10 from both Sheet1 and Sheet2. If the sheet name has a space in it, put the name in single quotes: =SUM('Sheet 1'!A1:A10).
What happens if I sum cells that contain text instead of numbers?
SUM ignores text completely. If a cell contains the word "Total" or any other text, SUM skips it and adds only the numbers. This is usually what you want, but it means you should check that your range contains only numbers if the result seems wrong.
Can I see the formula I typed after I press Enter?
Yes. Click on the cell containing the sum, and the formula appears in the formula bar at the top of the screen. You can edit it there by clicking in the formula bar and making changes, then pressing Enter to save the change.
How do I add a column of numbers that keeps growing as I add new rows?
Use a large range that includes empty cells below your current data. For example, if you have numbers in A1 through A50 but plan to add more, type =SUM(A1:A1000). The empty cells count as zero, so the sum will be correct now and will automatically include new numbers as you add them to column A.
What is the difference between typing a formula and using the AutoSum button?
The AutoSum button (marked with a Σ symbol) automatically creates a SUM formula for the cells above or to the left of where you click. It is faster if the range is obvious, but typing the formula yourself gives you more control over exactly which cells to include.