How to Put Sum Formula in Excel: Step-by-Step
In this article
To add numbers in Excel, use the SUM function: type =SUM(A1:A10) in a cell and press Enter. This adds all values in the range A1 through A10. You can also type =SUM( and then click and drag to select cells, or use the AutoSum button on the Home tab. This guide walks you through each method and covers common pitfalls.
What You'll Need
- Microsoft Excel installed on your computer (any recent version: Excel 2016, 2019, 2021, or Microsoft 365). The steps also work in Excel for the web and Excel mobile apps, though menu locations may differ.
- A spreadsheet with numbers you want to add. If you're starting fresh, open a new blank workbook.
- Basic familiarity with selecting cells and typing formulas.
Step-by-Step
- Open your workbook and click the cell where you want the sum to appear. This is usually below a column of numbers or to the right of a row.
- Type the equals sign (=) to start a formula. Excel will show a list of functions as you type.
- Type SUM followed by an opening parenthesis:
=SUM(. You can type in uppercase or lowercase; Excel is not case-sensitive. - Select the range of cells to add. You can do this three ways:
- Type the range: For example,
A1:A10adds all cells from A1 to A10. Use a colon for a continuous range. - Click and drag: With the cursor inside the parentheses, click the first cell and drag to the last cell. Excel inserts the range automatically.
- Use commas for multiple ranges or individual cells:
=SUM(A1:A5, C1:C5, E1)adds those separate areas.
- Type the range: For example,
- Close the parenthesis and press Enter. The cell shows the total. The formula bar displays the full formula when the cell is selected.
- Alternative: use AutoSum. Select the cell below a column of numbers (or to the right of a row). On the Home tab, click the AutoSum button (the Greek sigma Σ). Excel automatically suggests a range; press Enter to accept. If the suggested range is wrong, drag to correct it before pressing Enter.
- Copy the formula if needed. Drag the fill handle (small square at the bottom-right of the cell) to apply the same sum pattern to adjacent rows or columns. Excel adjusts relative references automatically.
Note: Menu labels and button locations can differ slightly between Excel versions, platforms (Windows, Mac, web, mobile), and regions. The core formula syntax is the same everywhere.
Common Mistakes
- Forgetting the equals sign. Without it, Excel treats your entry as text, not a formula.
- Incorrect range syntax. Use a colon (:) for a continuous range and a comma (,) to separate multiple ranges. A space or semicolon may cause errors depending on your region settings.
- Including text or blank cells. SUM ignores text and blanks, but if a cell contains an error (like #N/A), the sum will show that error. Check for error values in the range.
- Circular reference. If you put the sum formula in a cell that is part of the range being summed (e.g.,
=SUM(A1:A10)in cell A5), Excel returns 0 and shows a circular reference warning. Move the formula outside the range. - Using SUM instead of SUBTOTAL for filtered data. SUM adds all cells, including hidden ones. If you need to sum only visible cells after filtering, use
=SUBTOTAL(109, range).
Tips
- Use named ranges for clarity. Select your range, type a name in the Name Box (left of the formula bar), and then use
=SUM(YourRangeName). - Sum an entire column or row.
=SUM(A:A)adds all numbers in column A. Be careful: it includes the header if it's numeric, and it can slow down large workbooks. - Combine with other functions. For example,
=SUM(A1:A10)/COUNT(A1:A10)calculates an average, though AVERAGE is simpler. - Use the status bar for a quick check. Select a range of numbers and look at the bottom-right of the Excel window; the status bar shows Sum, Average, and Count automatically.
- Keyboard shortcut for AutoSum: Alt+= (Windows) or Command+Shift+T (Mac) inserts the AutoSum formula instantly.
Troubleshooting
- Formula shows as text: The cell may be formatted as Text. Select the cell, go to the Home tab, change the number format to General, then re-enter the formula. Or press F2 then Enter to force recalculation.
- Result is 0: Check for circular reference (formula inside its own range) or that the range actually contains numbers stored as text. Numbers stored as text appear left-aligned; convert them via Text to Columns or by multiplying by 1.
- #VALUE! error: One of the cells in the range contains an error or incompatible data. Use
=SUMIF(range,"<>#N/A")or clean the data. - AutoSum picks the wrong range: Excel guesses based on contiguous numbers above or to the left. If there are blank rows, it may stop early. Manually adjust the range before pressing Enter.
- Formula not updating: Calculation may be set to Manual. Go to Formulas > Calculation Options and select Automatic.
Frequently Asked Questions
Can I sum only filtered cells?
Yes, use =SUBTOTAL(109, range) instead of SUM. The 109 argument tells Excel to ignore hidden rows (including those hidden by filters).
How do I sum a column with a header?
If the header is text, SUM ignores it. If it's a number you don't want included, start the range from the first data cell, e.g., =SUM(A2:A100).
What's the difference between SUM and SUMIF?
SUM adds all numbers in a range. SUMIF adds only numbers that meet a condition, e.g., =SUMIF(B2:B10,"North",C2:C10) sums values in C where B equals "North".
Can I use SUM across multiple sheets?
Yes, use a 3D reference: =SUM(Sheet1:Sheet3!A1:A10) adds the same range across all sheets from Sheet1 to Sheet3.
Why does my SUM formula show a date?
The cell may be formatted as Date. Change the cell format to General or Number on the Home tab.
Is there a limit to how many cells SUM can handle?
Excel supports up to 1,048,576 rows and 16,384 columns, but practical limits depend on your computer's memory. SUM can reference entire columns, but it's more efficient to use specific ranges.