The Google Sheets SUM function usually fails because the numbers are formatted as text rather than numeric values, or because the selected range contains hidden errors. To fix this immediately, select your data, go to Format > Number > Number, and ensure there are no non-numeric characters (like currency symbols typed manually) inside the cells. If the formula still returns zero or an incorrect total, check for leading spaces or hidden apostrophes before the numbers.

What You'll Need

  • A computer with access to a web browser.
  • A Google account and an open Google Sheet containing the data you wish to sum.
  • Basic familiarity with how to select cells and enter formulas.

Step-by-Step

  1. Verify the Formula Syntax: First, ensure the formula is written correctly. A standard SUM formula should look like =SUM(A1:A10). Ensure you started with an equals sign (=), as omitting this causes Google Sheets to treat the formula as a plain text string. Check that you have used a colon (:) for a range or commas (,) to separate individual cell references.
  2. Check for Text-Formatted Numbers: This is the most common cause of SUM failure. If a number is formatted as text, Google Sheets ignores it in the SUM calculation. Select the range of cells you are trying to add. Navigate to the top menu and select Format > Number > Number. This forces the cells to be treated as digits. If the numbers were aligned to the left of the cell before this change, they were likely being treated as text; numeric values align to the right by default.
  3. Remove Manual Currency Symbols and Units: If you typed "$100" or "10kg" manually into a cell, Google Sheets treats the entire entry as a text string. The SUM function cannot add text. Remove all letters and symbols from the cells so only the raw number remains. To display currency or units, use the Format menu or custom number formatting instead of typing the symbols.
  4. Identify and Clear Hidden Characters: Sometimes data imported from other software contains leading or trailing spaces that are invisible to the eye. To fix this, select your column and use the Find and Replace tool (Ctrl + H). In the 'Find' box, type a single space, and leave the 'Replace with' box empty. Click Replace all. Alternatively, you can use the =TRIM() function in a helper column to strip away unnecessary spaces before summing the result.
  5. Look for Hidden Apostrophes: Some data exports add a single quote (') before a number to force it into text format. This quote is not visible in the cell itself but appears in the formula bar when the cell is selected. If you see this, you must remove the apostrophe. For large datasets, you can use the 'Multiply by 1' trick: type the number 1 in an empty cell, copy it, select your range of numbers, right-click, select Paste special > Paste values only (or Paste format only depending on your version), or use a formula like =VALUE(A1) to convert the text back to a number.
  6. Check for Circular Dependencies: If your SUM formula is located within the range it is trying to calculate (for example, putting =SUM(A1:A10) in cell A10), you will get a circular dependency error. The formula will either show an error message or return 0. Move the formula to a cell outside the range, such as A11.
  7. Verify Range Accuracy: Ensure the range in your formula actually covers the cells containing the data. If you added new rows to the bottom of your sheet but your formula is set to =SUM(A1:A20) and your data now goes to A25, the last five rows are being ignored. To avoid this, you can use an open-ended range like =SUM(A2:A), which will sum everything from row 2 to the very bottom of the column.

Common Mistakes

One of the most frequent mistakes is confusing the SUM function with simple addition. While =A1+A2+A3 works for a few cells, using the SUM function is more robust. However, users often forget that the SUM function ignores text entirely, whereas the plus (+) operator will return a #VALUE! error if it encounters a text string. This leads some users to believe the SUM function is "broken" because it returns a result (like 0) instead of an error, when in reality, it is simply ignoring all the cells it perceives as text.

Another mistake is applying the SUM function to cells that contain formulas resulting in errors. If a single cell within your SUM range has a #N/A or #DIV/0! error, the entire SUM result will often become that error. Users frequently overlook a single broken cell in a range of hundreds, causing the total to disappear.

Lastly, users often mistake the 'Count' function for the 'Sum' function. If your total looks suspiciously low—specifically, if it matches the number of rows you have rather than the total of the values—you may have accidentally used =COUNT() or =COUNTA() instead of =SUM().

Tips

To prevent future SUM issues, always set your data validation. You can do this via Data > Data validation > Add rule > Criteria: Is valid number.

For those working with large, dynamic datasets, consider using the =SUBTOTAL(9, range) function instead of SUM. The number 9 tells Google Sheets to perform a sum. The advantage of SUBTOTAL is that it only sums the cells that are currently visible. If you use a filter to hide certain rows, SUBTOTAL will update the total to reflect only the filtered data, whereas SUM will continue to add the hidden rows.

If you are dealing with data that is consistently imported as text, use the =ARRAYFORMULA(VALUE(A1:A10)) function in a separate column. This will instantly convert an entire range of text-numbers into actual numeric values, which you can then sum without having to manually format every cell.

Troubleshooting

If the steps above did not resolve the issue, start with the simplest check: refresh your browser. Occasionally, a temporary glitch in the Google Sheets web interface can cause formulas to stop recalculating. If a refresh doesn't work, check your Calculation settings. Go to File > Settings > Calculation. Ensure that "Iterative calculation" is off unless you specifically need it for circular references, and check that the recalculation setting is set to "On change" or "On change and every minute."

If you are seeing a #REF! error, it means the cells the SUM function was pointing to have been deleted. You cannot simply "undo" this if the sheet has been saved and closed. You will need to re-select your range. If you are seeing a #VALUE! error, it is almost certainly due to a non-numeric character being forced into a mathematical operation. Use the =ISNUMBER() function in a blank column next to your data (e.g., =ISNUMBER(A1)). Drag this down; any cell that returns "FALSE" is the culprit that is breaking your SUM function.

In extreme cases where the sheet is behaving erratically, try creating a copy of the spreadsheet (File > Make a copy). This often clears cached errors associated with the specific file instance and can restore the functionality of basic formulas.

Frequently Asked Questions

Why does my SUM function return 0 even though there are numbers?

This happens when Google Sheets perceives the numbers as text. Because SUM ignores text, it finds zero numeric values to add. Change the format to Number via the Format menu to fix this.

Why is my SUM formula showing as text instead of calculating?

This occurs if the cell containing the formula is formatted as "Plain text" before you typed the formula, or if you forgot the equals sign (=) at the beginning. Change the cell format to "Automatic" and re-enter the formula.

Can I sum data from two different sheets?

Yes. You can use a formula like =SUM(Sheet1!A1:A10, Sheet2!A1:A10). Ensure the sheet names are spelled exactly as they appear on the tabs, and use single quotes if the sheet name contains spaces (e.g., 'Sales Data'!A1:A10).

How do I sum only cells that meet a certain condition?

You should use the =SUMIF() or =SUMIFS() function. For example, =SUMIF(B1:B10, ">100", A1:A10) will sum values in column A only if the corresponding cell in column B is greater than 100.

Does the SUM function work with checkboxes?

Not directly. Checkboxes are TRUE or FALSE values. To sum them, you must first convert them to numbers using a formula like =COUNTIF(A1:A10, TRUE) or by using =SUMPRODUCT(A1:A10*1) to treat TRUE as 1 and FALSE as 0.