Smart Systems for Home

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

Google Sheets SUM Function: A How-To Guide

· 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 function in Google Sheets adds up numbers in a range or list of values. You can use it by typing =SUM(A1:A10) in a cell, pressing Enter, and the total appears. That is the shortest working version. The rest of this guide explains the syntax, how to sum non-adjacent cells, how to use SUM with conditions, and how to fix the common errors that stop it working.

What You'll Need

  • A Google account and access to Google Sheets (sheets.google.com or the Google Sheets app).
  • A spreadsheet with at least one column or row of numbers to add.
  • Basic familiarity with clicking a cell and typing a formula.

Step-by-Step

  1. Open your spreadsheet. Go to sheets.google.com, sign in, and open the file you want to edit. On mobile, open the Google Sheets app and tap the file.
  2. Click the cell where you want the total. This is usually an empty cell below a column of numbers or to the right of a row. The cell reference appears in the Name Box at the top left.
  3. Type the equals sign and SUM. Type =SUM(. As you type, Sheets shows a suggestion box with the function name and a short description. You can press Tab or Enter to accept the suggestion, or keep typing.
  4. Select the range. Click the first cell and drag to the last cell, or type the range manually, for example A2:A20. The range appears inside the parentheses. If you select cells with the mouse, Sheets inserts the range reference for you.
  5. Close the parenthesis and press Enter. The formula should look like =SUM(A2:A20). Press Enter (or the checkmark on mobile). The cell shows the total of all numbers in that range.
  6. Sum non-adjacent cells. Separate each cell or range with a comma inside the parentheses, for example =SUM(A2:A10, C2:C10, E5). SUM adds all listed ranges and values together.
  7. Use SUM with conditions. If you only want to add numbers that meet a rule, use SUMIF or SUMIFS instead. For example, =SUMIF(B2:B20, "North", C2:C20) adds values in C2:C20 where the matching B cell equals North. SUMIFS lets you add more than one condition.
  8. Copy the formula down or across. Drag the small square at the bottom-right corner of the cell (the fill handle) to apply the same formula to other rows. Relative references adjust automatically; use dollar signs like $A$2:$A$20 if you want the range to stay fixed.
  9. Check the result. Click the cell and look at the formula bar to confirm the range is correct. If the total looks wrong, compare it with a quick manual addition of a few values.

Menu labels and button positions can differ slightly between the desktop browser version and the mobile app, and between app versions. The steps above apply to both, but on mobile the formula bar is at the bottom of the screen and the checkmark confirms the entry.

Common Mistakes

  • Numbers stored as text. If a cell contains a number formatted as text (often shown with a small green triangle or aligned left), SUM ignores it. Convert it with Format > Number > Number or retype the value.
  • Including the total cell in the range. A formula like =SUM(A2:A10) placed in A10 creates a circular reference. Put the total outside the range it adds.
  • Missing commas between arguments. =SUM(A2:A10 C2:C10) returns an error. Each range needs a comma separator.
  • Using a colon where a comma is needed. A colon defines a continuous range; a comma separates separate ranges. Mixing them up gives wrong totals or errors.
  • Forgetting the closing parenthesis. Sheets may offer to fix it, but the formula will not calculate until it is closed.
  • Assuming SUM skips errors. If any cell in the range contains an error such as #DIV/0!, the SUM result also shows an error. Fix the source cell or use SUMIF to exclude it.

Tips

  • Use the status bar at the bottom right of the desktop version: select a range and Sheets shows Sum, Average, Count and more without writing a formula.
  • Press Alt+= on Windows or Option+= on Mac to insert a SUM formula automatically for the column or row above.
  • Name your ranges (Data > Named ranges) so formulas read like =SUM(Sales) instead of cell coordinates.
  • Use SUMIFS when you need multiple conditions; SUMIF handles only one.
  • Keep raw data on one sheet and totals on another to avoid accidentally including the total in its own range.
  • Format the result cell as currency or a number with the desired decimal places so the total is easy to read.

Troubleshooting

If the total is wrong or the formula does not work, check these in order:

  1. Look for text-formatted numbers. Select the range and use Format > Number > Number. If values do not change, retype one to test.
  2. Check for hidden rows or filtered data. SUM includes hidden rows. If you want to add only visible rows, use SUBTOTAL instead.
  3. Confirm the range. Click the cell and read the formula bar. A missed row or an extra column is the most common cause of a wrong total.
  4. Look for error values in the range. A single #N/A or #DIV/0! makes the whole SUM fail. Find the source cell and fix it.
  5. Check for circular references. Sheets shows a warning if the formula refers to its own cell. Move the formula outside the range.
  6. Recalculate if needed. Sheets recalculates automatically, but reloading the page or reopening the app can clear a stuck result. No data is lost by reloading.

If none of that works, copy the formula into a new cell and rebuild it step by step, confirming the total after each range is added.

Frequently Asked Questions

What is the difference between SUM and SUMIF?

SUM adds every number in the ranges you list. SUMIF adds only the values that meet one condition, and SUMIFS handles multiple conditions.

Does SUM include hidden rows?

Yes. SUM adds all values in the range, including rows hidden by a filter or manually hidden. Use SUBTOTAL with function number 9 to add only visible rows.

Why does SUM return 0 when there are numbers in the range?

The numbers are most likely stored as text. Reformat the cells as numbers or retype the values, then the SUM recalculates.

Can I sum an entire column?

Yes, with =SUM(A:A). Be careful not to place the formula in column A, which creates a circular reference. Summing a whole column also includes any numbers below your data, such as totals.

How do I add numbers in different sheets?

Reference the sheet name with an exclamation mark, for example =SUM(Sheet1!A1:A10, Sheet2!A1:A10). If the sheet name contains spaces, wrap it in single quotes, like 'January Sales'!A1:A10.

Does SUM work on the mobile app?

Yes. Tap the cell, tap the formula bar, type the formula, and tap the checkmark. The function behaves the same as on desktop.