10.2. Using Common Functions: The SUM Function in Google Sheets

The SUM function is one of the most basic and essential tools in Google Sheets. It allows users to quickly add values, facilitating data analysis and information management. This function is especially useful in various situations, such as financial accounting, inventory management, sales performance analysis, and much more. In this text, we will explore in detail how to use the SUM function and some tips to make the most of it.

Understanding the SUM Function

The SUM function adds the numbers you specify as arguments. Each argument can be a number, a reference to a cell, a range of cells, or a combination of these elements. The basic syntax of the function is:

=SUM(value1, [value2, ...])

Where 'value1' is mandatory, and subsequent values ​​are optional. You can individually sum multiple cells, ranges of cells, and even combinations of both.

How to Use the SUM Function

To use the SUM function in Google Sheets, follow the steps below:

  1. Click on the cell where you want to display the sum result.
  2. Type =SUM( to start the formula.
  3. Enter the values, cell references or ranges you want to sum. For example, =SUM(A1, B1, C1) will sum the values ​​of cells A1, B1 and C1.
  4. Close the parentheses and press Enter to get the result.

To sum a range of cells, you can use a colon to define the range. For example, =SUM(A1:A10) will sum all values ​​in the range A1 to A10.

Practical Examples

Let's consider some examples to better illustrate the use of the SUM function:

  • Sum of Individual Values: To add individual values, such as 10, 20, and 30, you would use the formula =SUM(10, 20, 30), resulting in 60.
  • Sum of Specific Cells: If you have values ​​in non-adjacent cells, such as A1, A3 and A5, you can sum them using =SUM(A1, A3, A5)< /code>.
  • Range Sum: To sum a continuous range of cells, such as A1 through A10, use =SUM(A1:A10).

Advanced Tips

In addition to basic use, the SUM function can also be combined with other Google Sheets functions and features to create more complex formulas:

  • Using with Conditions: The SUMIF or SUMPRODUCT function can be used to add cells that meet certain conditions. For example, =SUMIF(A1:A10, ">20") will only sum values ​​greater than 20 in the range A1 through A10.
  • Ignoring Text and Empty Cells: The SUM function automatically ignores text and empty cells in the specified ranges. This is useful when you have a mixed range of numbers and text.
  • Absolute and Relative References: When copying formulas with the SUM function, it is important to understand the difference between absolute references (with $) and relative references. For example, =SUM($A$1:$A$10) will always sum the range A1 through A10, even if you copy the formula to another cell.

Care when Using the SUM Function

Although the SUM function is relatively simple, some care is necessary to avoid errors:

  • Check Ranges: Make sure that the ranges selected for summing do not contain unwanted data such as text or error values.
  • Be careful with hidden cells: The SUM function will include values ​​in hidden cells. If you want to ignore hidden cells, consider using the SUBTOTAL function.
  • Circularity Errors: Avoid referencing the formula cell itself, which would cause a circularity error.

Conclusion

The SUM function is a powerful tool in Google Sheets that, when used correctly, can save time and improve the accuracy of calculations. With practice and understanding of the tips and precautions mentioned, you will be well equipped to use the SUM function and other common functions to create efficient and reliable spreadsheets.

Now answer the exercise about the content:

What is the correct syntax to use the SUM function in Google Sheets to sum the values ​​in cells A1, B1, and C1?

You are right! Congratulations, now go to the next page

You missed! Try again.

Article image Using common functions (SUM, AVERAGE, etc.): Calculating averages with the AVERAGE function

Next page of the Free Ebook:

24Using common functions (SUM, AVERAGE, etc.): Calculating averages with the AVERAGE function

4 minutes

Obtenez votre certificat pour ce cours gratuitement ! en téléchargeant lapplication Cursa et en lisant lebook qui sy trouve. Disponible sur Google Play ou App Store !

Get it on Google Play Get it on App Store

+ 6.5 million
students

Free and Valid
Certificate with QR Code

48 thousand free
exercises

4.8/5 rating in
app stores

Free courses in
video, audio and text