To sum values in Microsoft Excel, you can use the SUM function, AutoSum button, or manual formulas. It works in all current versions (Excel 2010 through Microsoft 365) on Windows, Mac, and Excel Online. No add-ins or special setup is needed—just open your workbook and follow the steps below.
What You'll Need
- A Microsoft Excel workbook (Excel 2010 or later, including Microsoft 365)
- A worksheet with numeric data you want to add
- Basic familiarity with selecting cells using the mouse or keyboard
Step-by-Step
- Open your Excel workbook and navigate to the worksheet containing the numbers you want to add.
- Decide where to place the sum. Click the cell where you want the total to appear—usually directly below a column of numbers or to the right of a row.
- Enter the SUM formula manually by typing
=SUM(A1:A10)(replaceA1:A10with your actual range). Press Enter to calculate. For example, if your data spans cells B2 through B15, type=SUM(B2:B15)and hit Enter. - Use AutoSum for faster entry: Click the cell below or to the right of your data range, then go to the Home tab, click the AutoSum button (Σ icon) in the Editing group. Excel will automatically suggest a range; verify it highlights the correct cells, then press Enter.
- Sum non-contiguous cells by typing
=SUM(A1, C3, E5)—list individual cell references separated by commas. You can also hold Ctrl (Windows) or Command (Mac) while selecting cells before clicking AutoSum. - Sum across multiple sheets using a 3D reference: type
=SUM(Sheet1:Sheet3!A1)to add cell A1 from Sheet1 through Sheet3. Ensure sheet names match exactly and are consecutive.
Common Mistakes
- Incorrect range selection: AutoSum may highlight the wrong cells if there’s blank rows/columns in your data. Always double-check the range before pressing Enter.
- Text instead of numbers: If cells contain numbers stored as text (e.g., "5" instead of 5), SUM ignores them. Convert text to numbers by selecting the cells, clicking the warning icon, and choosing Convert to Number.
- Forgetting the equals sign: Typing
SUM(A1:A10)without=treats it as plain text—not a formula. Always start with=. - Using commas instead of colons: In
SUM(A1,A10), only A1 and A10 are summed. Use a colon (A1:A10) to include all cells in between. - Hidden rows/columns: SUM includes hidden cells in calculations. If you want to exclude filtered or hidden rows, use
SUBTOTALinstead (e.g.,=SUBTOTAL(9, A1:A10)).
Tips
- Keyboard shortcut for AutoSum: Press Alt + = (Windows) or Cmd + Shift + T (Mac) to insert SUM automatically in the cell below or to the right of your selection.
- Drag to fill: After creating a sum in one cell, drag the small square at the bottom-right corner of the cell (the fill handle) down or across to copy the formula to adjacent cells—Excel adjusts the range automatically.
- Use named ranges: Select your data, go to the Formulas tab, click Define Name, and assign a name like
SalesData. Then use=SUM(SalesData)for easier, more readable formulas. - Verify calculation mode: Go to Formulas > Calculation Options and ensure Automatic is selected. If set to Manual, sums won’t update after edits until you press F9.
- Sum visible cells only after filtering: Use
=SUBTOTAL(109, range)where 109 sums only visible cells. Replace 109 with 9 to include hidden rows (standard SUM behavior).
Troubleshooting
If your sum shows 0, an error, or doesn’t update, follow these checks:
- Check for error values: Look for
#VALUE!(non-numeric data in range),#REF!(invalid cell reference), or#NAME?(misspelled function name likeSUMM). Fix the underlying issue first. - Confirm numbers aren’t formatted as text: Select the range, press Ctrl + 1 (Format Cells), go to the Number tab, and ensure General or Number is selected. Click OK, then re-enter values if needed.
- Test with a simple formula: In a blank cell, type
=SUM(1,2,3)and press Enter. If it returns 6, Excel’s calculation engine works—your data or range is the problem. - Check for spaces or invisible characters: Copy the problematic cell, paste into Notepad, then copy back. This strips hidden characters that might interfere with formulas.
- Rebuild the formula: Delete the existing formula, retype
=SUM(, then click-drag across your desired range before closing with)and pressing Enter. - Repair workbook corruption: If all else fails, copy your data to a new workbook and try again—rare, but sometimes corrupted files cause persistent issues.
Frequently Asked Questions
How do I sum only filtered rows in Excel?
Use the SUBTOTAL function with function_num 109: =SUBTOTAL(109, A2:A100). This sums only visible cells after filtering. Regular SUM includes hidden rows.
Can I sum across multiple worksheets at once?
Yes. Type =SUM(, click the first sheet tab, hold Shift, click the last sheet tab, then select the cell or range (e.g., A1). Close the formula with ) and press Enter. Excel creates =SUM(Sheet1:Sheet3!A1).
Why does Excel show the formula instead of the result?
Enable formula display: go to Formulas > Formula Auditing and uncheck Show Formulas. Alternatively, press Ctrl + ` (grave accent) to toggle. If the cell is formatted as Text, change it to General and re-enter the formula.
How do I sum a column without knowing the last row?
Use a dynamic range like =SUM(A:A) to sum the entire column, or limit it to a large row count (e.g., =SUM(A1:A10000)). For best practice, convert your data to an Excel Table (Ctrl + T), then reference the column header: =SUM(Table1[Sales]).
Can SUM handle negative numbers and decimals correctly?
Absolutely. SUM adds all numeric values regardless of sign or decimal places. For example, =SUM(10.5, -3.2, 7) returns 14.3. Ensure cells aren’t formatted as text—otherwise, they’ll be ignored.
What’s the difference between SUM and SUMIF?
SUM adds all values in a range. SUMIF adds only values that meet a condition: =SUMIF(A1:A10, ">100", B1:B10) sums B1:B10 where A1:A10 exceeds 100. For multiple conditions, use SUMIFS.