Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

SUM Formula in Excel: How to Add Numbers

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The SUM formula in Excel adds numbers together. The quickest version is =SUM(A1:A10), which totals everything in cells A1 through A10. You can also type =SUM( and then drag across the cells you want, or use the AutoSum button on the Home tab. Nothing needs to be installed or enabled first: SUM is built into every version of Excel, including Excel for Microsoft 365, Excel for Mac, Excel on the web, and the mobile apps. The only thing you need is a workbook with numbers in it.

What You'll Need

  • Excel for Windows, Mac, the web, iPhone, iPad or Android. The menu labels differ slightly between versions, devices and regions, so if a button name below does not match exactly, look for the closest equivalent.
  • A workbook with at least one column or row of numbers to add.
  • Basic familiarity with clicking a cell and typing in the formula bar.

Step-by-Step

  1. Open your workbook and click the cell where you want the total to appear. This is usually the cell directly below a column of numbers or directly to the right of a row of numbers.
  2. Type an equals sign (=). Every formula in Excel starts with this character. If you forget it, Excel treats what you type as text.
  3. Type SUM and an opening parenthesis, so the cell now reads =SUM(. As you type, Excel shows a small function hint listing the arguments SUM accepts. You can press Tab to accept the suggested function name.
  4. Select the range you want to add. Click the first cell, hold the mouse button, and drag to the last cell. Excel inserts the range reference automatically, for example A2:A20. Alternatively, type the range manually: =SUM(A2:A20).
  5. Close the parenthesis by typing ) and press Enter. The cell now shows the total, and the formula bar shows the full formula when that cell is selected.
  6. Use AutoSum for a faster route. Select the empty cell directly below a column of numbers, then on the Home tab click AutoSum (the Greek sigma symbol, Σ). Excel guesses the range above and inserts the formula for you. Check that the highlighted range is correct before pressing Enter, because AutoSum stops at the first blank row.
  7. Add non-adjacent cells by separating each reference with a comma, for example =SUM(A2, A5, A9). You can mix ranges and single cells: =SUM(A2:A10, C2:C10).
  8. Copy the formula down a column if you need totals for several rows or categories. Drag the small square at the bottom-right corner of the cell (the fill handle) downward. Relative references adjust automatically, so the next row totals the next row's data.
  9. Check the result by selecting the range and reading the status bar at the bottom of the Excel window, which shows Sum, Average and Count for the selected cells. If the two numbers match, your formula is correct.

Common Mistakes

  • Numbers stored as text. If a cell is formatted as Text, or was imported with a leading apostrophe, SUM ignores it. The status bar count will be lower than expected. Fix it by selecting the cells, opening the Data tab and using Text to Columns, or by changing the cell format to General and re-entering the number.
  • Forgetting the equals sign. Typing SUM(A1:A5) without = leaves the formula as plain text in the cell.
  • Leaving out part of the range. Dragging too short a range is easy to miss. Always compare the formula's result with the status bar total for the full column.
  • Circular references. If the total cell is inside the range being summed, Excel shows a circular reference warning and returns 0. Move the total outside the range.
  • Hidden rows. SUM includes hidden rows and filtered-out rows. If you need to add only visible cells, use SUBTOTAL instead.
  • Mixing text and numbers in one range. SUM skips text entries silently, which can make a total look too low without any error message.

Tips

  • Use Alt+= on Windows or Command+Shift+T on Mac as a keyboard shortcut for AutoSum.
  • Name a range (Formulas > Define Name) and then write =SUM(Sales) for a formula that is easier to read and maintain.
  • Press F4 while editing a reference to toggle absolute references ($A$1:$A$10) if you plan to copy the formula to other cells without the range shifting.
  • Use =SUM(A1:A10)/COUNT(A1:A10) or the AVERAGE function for an average, and SUM combined with IF inside an array formula only if you are comfortable with array entry; otherwise use SUMIF for conditional totals.
  • Keep totals in a separate row or column from the data so that adding new rows later does not require editing the formula range.

Troubleshooting

  • The formula shows as text instead of calculating. Check that the cell format is not Text. Select the cell, set the format to General, then re-enter the formula.
  • The result is 0 when there is clearly data. Look for numbers stored as text, or a circular reference. Click Formulas > Error Checking to see whether Excel flags the cell.
  • #VALUE! error. One of the arguments is not a number and cannot be coerced. Check for stray text or an empty cell reference that points to a text value.
  • #NAME? error. The function name is misspelled, for example SUMM instead of SUM, or the formula uses a named range that no longer exists.
  • The total does not update after editing a source cell. Calculation may be set to Manual. Go to Formulas > Calculation Options and choose Automatic.
  • AutoSum picks the wrong range. AutoSum stops at blank rows. Select the exact range manually and type the formula instead.

Frequently Asked Questions

Can SUM add cells across different worksheets?

Yes. Use a reference like =SUM(Sheet1!A1:A10, Sheet2!A1:A10). Sheet names with spaces need single quotes around them, for example 'Sales Data'!A1:A10.

Does SUM work on filtered data?

SUM adds all cells in the range, including rows hidden by a filter. To total only visible rows, use SUBTOTAL(109, range).

What is the difference between SUM and SUMIF?

SUM adds every number in a range. SUMIF adds only the numbers that meet a condition you specify, such as all values in column B where column A equals a particular name.

Can I use SUM in Excel on my phone?

Yes. In the Excel mobile app, tap the cell, tap the formula bar, and type =SUM( followed by the range. The function list appears as you type, and the same syntax applies.

Why does SUM ignore some cells?

SUM skips text, logical values typed directly into cells, and empty cells. Numbers formatted as text are also skipped. Convert them to numbers first if they should be included.

Is there a limit to how many cells SUM can handle?

SUM accepts up to 255 arguments, and each argument can be a range covering many cells. In practice the limit is Excel's worksheet size rather than the function itself.