In this article:

Google Sheets SUM Formula: The Ultimate Guide [2024 Update]

May 8, 2024

The Google Sheets SUM function is used to add up multiple numbers in google sheets. You can enter the numbers to add manually or you can add an entire range.

SUM can save Google Sheets users a lot of time as you can easily add an entire range of numbers instead of having to enter multiple + signs between each number in a formula. 

Read this tutorial to learn what you can do with the SUM function in Google Sheets. 

What is the function?

There are two ways to add values in Google Sheets. One involves using the plus sign. This is best for adding two or three numbers. However, this method can easily get taxing when you need to add several numbers, or a range of values. 

If you need to add values stored in a range, you should use the SUM function. Its syntax is straightforward but you can use it in a wide variety of cases. It also has other advantages over the manual plus sign method.  

Advantages of the function

Can cover large ranges in less time

Google Sheets Sum function applied to a large range. Compare with the formula using manual plus signs

Can ignore letters in the range

Google Sheets Sum function working even with stray letters in its range.  Compare with the formula using manual plus signs

Does not break when a column or row is deleted

Google Sheets Sum function working even if a column was deleted.  Compare with the formula using manual plus signs

SUM Formula Syntax

Adding values of ranges

=SUM(range)

Where

range is where the values you want to add are stored. You can specify the range as either a list of cell references or a reference to an entire range

Adding values of nonadjacent cells

=SUM(number1, number2, …)

Where

number1, number2, … are the numbers you want to add. You can also specify a reference to where the values you want to add are stored:

SUM Example(s)

Get the SUM of a column (Method 1)

Step 1: Click where you want to place the formula

Select formula location

Step 2: Click Functions icon in the toolbar, then select SUM

Google Sheets Functions icon, SUM function selected

Step 3: Select the range of the column

Google Sheets Select column range

Step 4: Press Enter

Check the screencap below:

Sum of column method 1 screencap

Get the SUM of a column (Method 2)

Step 1: Identify the range of the column

We want to add values in column A, so we set the range to B7:B9.

Sum formula Google Sheets, column selected

Step 2: Type the formula SUM(range)

The formula to type is now

=SUM(B7:B9)

Step 3: Press Enter

Google Sheets sum formula for column added

Get the SUM of a row (Method 1)

Step 1: Click where you want to place the formula

Select formula location

Step 2: Click Functions icon in the toolbar, then select SUM

Google Sheets Functions icon, SUM function selected

Step 3: Select the range of the row

Select row range

Step 4: Press Enter

Check the screencap below:

Sum of row method 1 screencap

Google Sheets sometimes detects a pattern in your sheet and offers to extend the formula to the other cells of the row or column. You can opt to accept the suggestion or not.

Get the SUM of a row (Method 2)

Step 1: Identify the range of the row

We want to add the entries of Row A, so we set the range to B18:D18.

Sum formula Google Sheets, row selected

Step 2: Type the formula SUM(range)

The formula to type is now

=sum(B18:D18)

Step 3: Press Enter

Google Sheets Sum formula for row added

Add nonadjacent cells (Method 1)

Step 1: Click where you want to place the formula

Select formula location

Step 2: Click Functions icon in the toolbar, then select SUM

Google Sheets Functions icon, SUM function selected

Step 3: Select the range of the row

Hold the Ctrl key (Windows) or ⌘ key (MacOS) as you select the individual cells. 

Google Sheets Select cells

Step 4: Press Enter

Check the screencap below:

Sum of nonadjacent cells method 1 screencap

Add nonadjacent cells (Method 2)

Step 1: Identify the numbers you want to add

We want to add along a diagonal of the range, which are B30, C29, and D28.

Sum formula Google Sheets, cells selected

Step 2: Type the formula SUM(number1, number2, …)

The formula to type is now

=SUM(B30,C29,D28)

You can also hold the Ctrl key (Windows) or ⌘ key (MacOS) as you select the cells.

Step 3: Press Enter.

Google Sheets sum formula for nonadjacent cells added

Adding numbers that fulfill a certain condition

There are cases where you need to add only values that fulfill a certain condition. There are two ways of doing so in Google Sheets.

SUM + FILTER

We combine SUM with FILTER:

=SUM(FILTER(range, condition1,  condition2, …)

Where 

range is where the values you want to add are stored

condition1 and condition2 are the conditions you want to apply

Step 1: Identify the range of the row

We want to add all the numbers along Row 4 that are less than 4. The range is A4:C4 and the condition is A4:C4<4 .

Sum formula Google Sheets, range selected

Step 2: Use the formula SUM(FILTER(range,condition1,condition2,...))

The resulting formula is

=SUM(FILTER(A4:C4,A4:C4<4))

Google Sheets sum plus filter formula added

Shortcomings of this method

The problem with this method is that it is restricted to only a single row or column. It breaks down if the range is across multiple rows or columns:

Google Sheets sum plus filter formula error for multiple rows

The solution is to use the SUMIF and SUMIFS functions in Google Sheets.

Sample Google Sheets spreadsheet to work on

Access the sample Google Sheets spreadsheet here. 

If you enjoyed this article, you might also like our article on how to add up a column in Google Sheets or our article on how to use auto sum in Google Sheets. 

If you want to learn how to extract a domain from an email, we also suggest checking out our detailed guide.

Get Google Sheets productivity and automation tips delivered straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
We'll email you 1-3 times a week — and never share your information.
Get your copy of our free Google Sheets automation guide!
  • 27 pages of Google Sheets tips and tricks to save time
  • Covers pivot tables and other advanced topics
  • 100% free

Work less, automate more!

Use Lido to connect your spreadsheets to email, Slack, calendars, and more to automate data transfers and eliminate manual copying and pasting. View all use cases ->