Use SUM to add a range of cells automatically

The fastest way to add numbers automatically in Google Sheets is the SUM function. Instead of typing each number into a total, you write a formula that adds a range of cells for you — and updates itself if any of those numbers change.

Open your spreadsheet and click the cell where you want the total to appear. Type =SUM( followed by the range of cells you want to add. For example, if your numbers are in cells A1 through A10, type =SUM(A1:A10) and press Enter. Google Sheets calculates the sum and displays it in that cell.

The colon between A1 and A10 tells Google Sheets to add every cell in that range. If your numbers are scattered across different columns — say A1, C3, and E5 — you can add them individually instead: =SUM(A1,C3,E5). Use commas to separate cells that aren't next to each other.

Key Takeaways

  • SUM is the standard function for adding ranges of numbers, and it updates automatically whenever any number in that range changes.
  • Type =SUM(A1:A10) to add cells A1 through A10, or =SUM(A1,C3,E5) to add specific cells that aren't in a row or column together.
  • You can copy a SUM formula down a column to calculate subtotals for different groups of data without retyping the formula.
  • SUMIF lets you add only the numbers that meet a condition, like adding sales only from a specific region or month.

Copy a formula down to calculate multiple totals at once

If you have several groups of numbers and need a total for each group, you don't have to write the formula over and over. Write it once, then copy it down the column and Google Sheets adjusts the cell references automatically.

Suppose you have sales data for three months in rows 2–4, rows 6–8, and rows 10–12. Write =SUM(A2:A4) in cell B5 to total the first month. Click cell B5, then drag the small blue square at the bottom right corner down to B9 and B13. Google Sheets changes the formula for each row: B9 becomes =SUM(A6:A8), and B13 becomes =SUM(A10:A12).

This automatic adjustment works because Google Sheets uses relative references by default — it moves the cell addresses as you copy the formula. If you want a formula to always point to the same cells no matter where you copy it, use dollar signs: =SUM($A$2:$A$4) stays locked to those exact cells.

Add numbers only if they meet a condition with SUMIF

Sometimes you need to add numbers only if they match a condition. Use SUMIF to add only the values that meet your requirement.

The structure is =SUMIF(range, criteria, sum_range). The first part (range) is where Google Sheets looks for your condition. The second part (criteria) is what you're looking for. The third part (sum_range) is the cells to add up if the condition is true.

For example, if column A lists regions and column B lists sales amounts, and you want to total sales only from the North region, type =SUMIF(A:A,"North",B:B). Google Sheets checks every cell in column A, and whenever it finds "North", it adds the corresponding number from column B. You can also use =SUMIF(A:A,">500",B:B) to add only sales greater than 500, or =SUMIF(A:A,"*Smith*",B:B) to add rows where column A contains "Smith" anywhere in the text.

Add numbers across multiple sheets with SUMIF or direct references

If your data lives on different sheets within the same spreadsheet, you can add them together. The simplest way is to reference another sheet directly in a formula.

Type =Sheet2!A1+Sheet3!A1 to add a cell from Sheet2 and a cell from Sheet3. Replace "Sheet2" and "Sheet3" with the actual names of your sheets (visible at the bottom of the spreadsheet). You can also use SUM across sheets: =SUM(Sheet2!A1:A10,Sheet3!A1:A10) adds the range A1:A10 from both sheets.

If you rename a sheet later, Google Sheets updates the formula automatically so it still points to the right place. If you delete a sheet that a formula references, the formula breaks and shows an error — you'll need to fix it by pointing to a different sheet or removing that part of the formula.

Use SUMPRODUCT to add with multiple conditions

When you need to add numbers based on more than one condition, SUMPRODUCT handles it. For instance, you might want to add sales from the North region that are also greater than 500.

The formula looks like =SUMPRODUCT((A:A="North")*(B:B>500)*C:C). This checks column A for "North" and column B for values greater than 500, then adds the matching rows from column C. Each condition in parentheses must be true for that row to be included in the sum.

SUMPRODUCT is more flexible than SUMIF because it lets you stack as many conditions as you need. The trade-off is that it's slower on very large spreadsheets, so if you only have one condition, SUMIF is usually the better choice.

Troubleshoot when a formula doesn't calculate

If a SUM formula shows an error or doesn't calculate, the most common cause is that the cells contain text instead of numbers. Google Sheets can't add text, even if it looks like a number. Check that your cells are formatted as numbers, not text. Click the cells, then go to Format > Number and choose "Number" from the menu.

Another common issue is a typo in the formula. If you see #NAME? error, you may have misspelled the function name or used the wrong syntax. Double-check that you typed =SUM (not =Sum or =sum — though Google Sheets is usually forgiving about capitalization) and that your parentheses and cell ranges are correct.

If a formula shows #REF!, it means it's trying to reference a cell or sheet that no longer exists. Edit the formula to point to the correct location. If you see #VALUE!, the formula is trying to do math on text or a cell type it can't process — check that all the cells in your range contain numbers.

Frequently Asked Questions

Can I add cells that have different colors or formatting?

Yes. SUM and other math functions ignore formatting like color, bold, or font size. They only look at the actual values in the cells. If you want to add only cells with a specific color, you'll need to use a helper column or a more complex formula, but standard SUM works on any cell regardless of how it looks.

What's the difference between SUM and SUMIF?

SUM adds all the numbers in a range you specify. SUMIF adds only the numbers that meet a condition you set — like "add only if the region is North" or "add only if the value is greater than 100". Use SUM when you want everything; use SUMIF when you want to filter first.

If I change a number in one of the cells, does the total update automatically?

Yes. Any formula that references a cell updates instantly when that cell changes. If you have =SUM(A1:A10) and you edit A5, the total recalculates right away. This is one of the main reasons to use formulas instead of typing totals by hand.

Can I add numbers from a column that has blank cells in it?

Yes. SUM ignores blank cells and only adds the cells that contain numbers. If you have numbers in A1, A3, and A5 with blanks in A2 and A4, =SUM(A1:A5) adds only the three numbers and skips the blanks.

How do I add numbers only if they're not zero?

Use =SUMIF(A:A,"<>0",A:A) to add all numbers in column A except zeros. The "<>" means "not equal to". You can also use =SUMIF(A:A,">0",A:A) to add only positive numbers, or =SUMIF(A:A,"<0",A:A) to add only negative numbers.