Google Sheets SOMA Formula: How to Sum Values
In this article
The Google Sheets formula you are looking for is almost certainly SUM, not "soma". SUM adds numbers in a range or list of cells, and it works the same way on desktop and in the mobile app. The quickest version is =SUM(A1:A10), which adds every number from A1 through A10. If you actually meant something else, such as adding only visible rows or adding numbers that meet a condition, the sections below cover those cases too.
What You'll Need
- A Google account with access to Google Sheets (sheets.google.com or the Sheets mobile app).
- A spreadsheet with at least one column or row of numbers to add.
- Basic familiarity with typing formulas into a cell.
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com, sign in, and open the file that contains your numbers. On mobile, open the Google Sheets app and tap the file. Menu labels can differ slightly by version, device and region, but the formula itself is the same everywhere.
- Click an empty cell where you want the total to appear. Pick a cell below or beside your data so the result is easy to read. Do not put the formula inside the range you are adding, or you will create a circular reference error.
- Type an equals sign. Every formula in Google Sheets starts with
=. If you typeSUM(A1:A10)without the equals sign, Sheets treats it as text and shows nothing useful. - Type SUM and an opening parenthesis. Your cell should now read
=SUM(. Google Sheets shows a formula hint as you type; you can click the SUM suggestion to insert it automatically. - Select the range you want to add. The easiest method is to click the first cell, hold Shift, and click the last cell. Sheets inserts the range reference for you, for example
A1:A10. You can also type the range manually. A colon means "through":A1:A10includes A1 and A10 and everything in between. - Close the parenthesis and press Enter. Your formula should look like
=SUM(A1:A10). Press Enter (or the check mark on mobile) and the total appears in the cell. - Add separate ranges or individual cells if needed. SUM accepts multiple arguments separated by commas. For example,
=SUM(A1:A10, C1:C10, E5)adds two columns plus one extra cell. This is useful when your numbers are not in one continuous block. - Copy the formula down or across if you need several totals. Drag the small square in the bottom-right corner of the cell (the fill handle) to copy the formula. Relative references adjust automatically, so
=SUM(B2:B10)becomes=SUM(C2:C10)when dragged one column right. - Check the result against a quick manual estimate. If the total looks wrong, click the cell and read the formula in the formula bar. A common cause is a range that stops one row short, such as
A1:A9when your data ends at A10.
Common Mistakes
- Forgetting the equals sign. Without
=, Sheets stores the formula as plain text and displays it instead of calculating. - Using a hyphen instead of a colon.
A1-A10means "subtract A10 from A1", not "add the range". The range separator is always a colon. - Including the total cell in the range. If your SUM formula sits inside the range it adds, you get a circular dependency error and the cell shows an error instead of a number.
- Assuming SUM adds text that looks like a number. Numbers stored as text (often left-aligned, sometimes with a green triangle warning) are ignored by SUM. Convert them with Format > Number > Number or by retyping them.
- Expecting SUM to add hidden rows differently. SUM includes hidden and filtered-out rows. If you only want visible rows, use
SUBTOTAL(109, range)instead. - Mixing commas and semicolons. Most locales use commas between arguments, but some regional settings use semicolons. If a comma produces an error, try a semicolon.
Tips
- Use the status bar at the bottom of the sheet: select a range and Sheets shows Sum, Average, Count and more without writing a formula.
- Press
Alt+=on Windows orCmd+Shift+Ton Mac to insert a SUM formula automatically for the column above. - Name a range (Data > Named ranges) and use it in the formula, such as
=SUM(Sales), to make formulas easier to read. - Use
SUMIFwhen you only want to add values that meet a condition, for example=SUMIF(B2:B100, "North", C2:C100). - Keep raw numbers in their own columns and put totals in a separate row or sheet so ranges stay clean.
Troubleshooting
- The cell shows the formula text instead of a result. The cell is probably formatted as plain text. Select it, choose Format > Number > Automatic, then re-enter the formula.
- You see #ERROR! or a parse error. Check for a missing closing parenthesis, a stray space inside the range, or a semicolon where your locale expects a comma.
- The total is lower than expected. Some cells likely contain text rather than numbers. Select the range and look at the status bar count; if the count is lower than the number of cells, some values are text.
- You see #REF!. The formula points to a deleted row, column or sheet. Undo with Ctrl+Z (Cmd+Z on Mac) or rewrite the reference.
- The total does not update. Check File > Settings > Calculation to confirm recalculation is on, and make sure the sheet is not in a state where edits are blocked.
- It still will not work. Copy the formula into a brand-new blank sheet with a few test numbers. If it works there, the problem is in the original sheet's data or formatting, not the formula.
Frequently Asked Questions
Is there a SOMA function in Google Sheets?
No. Google Sheets has no SOMA function. The function people usually mean is SUM, which adds numbers. If you saw "soma" somewhere, it was likely a typo or a translation of "sum".
How do I sum a whole column in Google Sheets?
Use a range like =SUM(A2:A), which adds everything from A2 to the bottom of the column. Avoid =SUM(A:A) if the total cell is in column A, because that creates a circular reference.
Why does SUM return 0 when there are numbers in the cells?
The numbers are almost certainly stored as text. Reformat the cells as numbers (Format > Number > Number) or retype the values. SUM ignores text values entirely.
Can SUM add numbers from multiple sheets?
Yes. Reference other sheets by name, for example =SUM(Sheet1!A1:A10, Sheet2!A1:A10). If a sheet name contains spaces, wrap it in single quotes, such as 'January Sales'!A1:A10.
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 a category name or a value above a threshold.
Does SUM work in the Google Sheets mobile app?
Yes. Tap the cell, tap the formula bar or the function icon, and type the same SUM formula. The app accepts the same syntax as the desktop version.