Smart Systems for Home

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

How to Use the SUM Function in Excel & Sheets

· 5 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

This guide shows you how to use the SUM function in Microsoft Excel and Google Sheets to add up numbers quickly and accurately. You'll learn the basic syntax, how to sum entire columns or rows, and how to handle common errors. By the end, you'll be able to sum any range of cells with confidence.

What You'll Need

  • A spreadsheet application (Microsoft Excel, Google Sheets, or similar)
  • A set of numbers you want to add together, either typed directly or in cells
  • Basic familiarity with selecting cells in a spreadsheet

Step-by-Step

  1. Open your spreadsheet and locate the cells containing the numbers you want to add. For example, you might have values in cells A1 through A10.
  2. Click on the cell where you want the total to appear. This is usually below or to the right of your data.
  3. Type the equals sign = to begin a formula. Every formula in Excel and Sheets starts with this.
  4. Type SUM followed by an opening parenthesis: =SUM(. You can type it in lowercase—it will be capitalized automatically.
  5. Select the range you want to add. You can do this by clicking and dragging over the cells, or by typing the range manually, e.g., A1:A10. A colon between two cell references means "all cells from the first to the second."
  6. Close the parenthesis and press Enter. The total will appear in the cell. For example, =SUM(A1:A10) adds all numbers from A1 to A10.
  7. To sum non-adjacent cells, separate them with commas: =SUM(A1, B2, C3) adds just those three cells.
  8. To sum an entire column or row, use a full reference: =SUM(A:A) sums all numbers in column A, and =SUM(1:1) sums all numbers in row 1. Be careful: this will include any numbers in header or total rows.
  9. To sum with a condition, use SUMIF or SUMIFS instead. For example, =SUMIF(B2:B10, ">10") sums only the cells in B2:B10 that are greater than 10.
  10. Use the AutoSum shortcut for speed: select the cell below or to the right of your numbers, then press Alt + = (Windows) or Cmd + Shift + T (Mac) in Excel; in Google Sheets, use Alt + Shift + = (Windows/ChromeOS) or Option + Shift + = (Mac). This inserts a SUM formula and guesses the range.

Common Mistakes

  • Including text in the range: SUM ignores text, but if a cell contains text that looks like a number (e.g., "10"), it will be ignored. Ensure numbers are stored as numbers, not text.
  • Using the wrong range: Double-check that your range includes all the cells you want and none you don't. A common error is including a total row, which double-counts.
  • Forgetting the equals sign: If you type SUM(A1:A10) without the =, it will be treated as text, not a formula.
  • Using semicolons instead of commas: In some European locales, the argument separator is a semicolon (;). Check your spreadsheet's settings if commas don't work.
  • Summing entire columns with headers: If you use =SUM(A:A) and A1 contains a header like "Amount", it will be ignored (text), but if the header is a number, it will be included. Use a specific range instead.

Tips

  • Use keyboard shortcuts to speed up your workflow. AutoSum is your best friend for quick totals.
  • Reference entire rows or columns when your data will grow—new numbers added to the range will be included automatically.
  • Combine SUM with other functions: For example, =SUM(A1:A10)/COUNT(A1:A10) gives the average, though AVERAGE is simpler.
  • Use named ranges for clarity: Select a range, go to the Name Box (left of the formula bar), type a name like "Sales", then use =SUM(Sales).
  • Check for hidden rows: SUM includes hidden rows. If you filter data, SUM will still add all cells in the range, not just visible ones. Use SUBTOTAL or AGGREGATE for visible-only sums.

Troubleshooting

  • Formula shows as text: If the cell displays =SUM(A1:A10) instead of a number, the cell is formatted as text. Select the cell, go to Format > Number > Number (or General), then re-enter the formula.
  • Result is 0: This usually means the cells contain text, not numbers. Check if the numbers are left-aligned (text) vs right-aligned (numbers). Convert text to numbers by selecting the column, going to Data > Text to Columns (Excel) or using the "Convert to number" prompt (Sheets).
  • #NAME? error: This means the function name is misspelled or the formula is not recognized. Check for typos like SUMM.
  • #VALUE! error: This occurs when a cell in the range contains an error (like #DIV/0!). Fix the error in that cell, or use IFERROR to handle it: =SUM(IFERROR(A1:A10,0)) (array formula in Excel, works normally in Sheets).
  • Result seems too high or too low: Verify the range. Use the formula bar to see the range highlighted in color. Also check for hidden rows or cells with unexpected values.

Frequently Asked Questions

Can I sum a column with blank cells?

Yes, blank cells are ignored by SUM. You can sum a range like A1:A100 even if some cells are empty.

How do I sum only visible cells after filtering?

Use the SUBTOTAL function with function number 109 (for SUM) or AGGREGATE. For example, =SUBTOTAL(109, A1:A10) sums only visible cells.

What is the difference between SUM and SUMIF?

SUM adds all numbers in a range. SUMIF adds only those that meet a condition, like =SUMIF(A1:A10, ">5").

Can I use SUM across multiple sheets?

Yes, you can sum the same cell across sheets: =SUM(Sheet1:Sheet3!A1) adds A1 from Sheet1, Sheet2, and Sheet3.

Why does my SUM formula show a rounded number?

This is likely due to cell formatting. The actual value is exact, but the display is rounded. Increase the number of decimal places in the cell format.

How do I sum numbers diagonally in a table?

Use a formula with individual cell references separated by commas, like =SUM(A1, B2, C3). There is no built-in diagonal sum.