Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use Functions in Google Sheets

Write formulas with SUM, AVERAGE, COUNT, MAX, and MIN, choose the right arguments, and check ranges, blanks, and result cells.

Table of Contents

Google Sheets functions calculate results from values and cell references. Start a formula with =, enter a function name, and put its arguments in parentheses. For example, =SUM(A2:A4) adds the numeric values in A2 through A4. Check the selected range as carefully as the function name.

Parts of a function

Similar to entering formulas, the order in which you enter functions into cells is crucial. Each function has a specific order—called syntax—that must be followed for the function to calculate correctly. The basic syntax for creating a formula with a function is to insert an equals sign (=), a function name (for example, AVERAGE is the name of the function to find the average), and an argument. The argument contains the information you want the formula to calculate, such as a range of cell references.

Working with functions Picture 1

Working with arguments

Arguments can refer to both individual cells and cell ranges and must be enclosed in parentheses. You can include one or multiple arguments, depending on the syntax required for the function.

For example, the function =AVERAGE(B1:B9) will calculate the average of the values ​​in the range B1:B9. This formula uses one range argument; AVERAGE can also accept additional values or ranges.

Working with functions Picture 2

Separate multiple arguments with commas, or semicolons if required by your spreadsheet locale. For example, the function =SUM(A1:A3, C1:C2, E1) will add the values ​​of all cells in the 3 arguments.

Working with functions Picture 3

Create a function

Google Sheets offers many different functions. Here are some of the most common ones you'll use:

  • SUM: Adds numeric values in the supplied cells or ranges.
  • AVERAGE: Adds the numeric values and divides by the count of those numeric values. Blank cells and text in a range are ignored; zeroes are included.
  • COUNT: Counts numeric values, not every filled cell. Use COUNTA when you need a count of nonempty cells including text.
  • MAX: Returns the largest numeric value.
  • MIN: Returns the smallest numeric value.

How to create a function using the Functions button

The Functions button, marked with a sigma symbol, helps insert a function and a suggested range. Make sure the result is placed in an empty cell outside the input range; a formula that includes its own result cell creates a circular reference.

1. Select the range of cells you want to include in the argument. For example, we would select D3:D12.

Working with functions Picture 4

2. Click the Functions button , then select the desired function from the drop-down menu. For example, we would select SUM.

Working with functions Picture 5

3. In this example, the formula appears below the selected range. Confirm that it reads =SUM(D3:D12) and that the destination does not replace data you need.

Working with functions Picture 6

4. Press the Enter key on your keyboard. The function will be calculated and the result will appear in the cell. Check the total against a few source values. The displayed currency format does not change what SUM calculates.

Working with functions Picture 7

Type a function manually

If you already know the function name, you can easily type it yourself. The example below is a table showing cookie sales statistics. The AVERAGE function will be used to calculate the average number of units sold by each team.

1. Select the cell where the answer will appear. For example, we would select C10.

Working with functions Picture 8

2. Type an equals sign (=), then enter the desired function name. You can also select the desired function from the list of suggested functions that appear below the cell as you type. For example, you would type =AVERAGE.

Working with functions Picture 9

3. When manually entering a function, Google Sheets also displays a window listing the specific arguments the function requires. This window appears when the first parenthesis is entered and remains visible as more arguments are entered.

Working with functions Picture 10

4. Enter the range of cells for the argument inside the parentheses. For example, you would enter (C3:C9). The complete formula is =AVERAGE(C3:C9). It averages numeric entries in that range, rather than treating every blank cell as a zero.

Working with functions Picture 11

5. Press the Enter key on your keyboard and the answer will appear.

Working with functions Picture 12

Sheets shows formula errors, but a valid formula can still use the wrong cells. Click the result to inspect the formula, confirm the start and end of each range, and exclude any existing total row unless it is intentionally part of the calculation.

Check a small example

If A2:A4 contains 10, 20, and 0, =SUM(A2:A4) returns 30, =AVERAGE(A2:A4) returns 10, and =COUNT(A2:A4) returns 3. If the zero cell is empty instead, the average is 15 and the count is 2. This difference matters when interpreting missing data.

Review number formats if results look unexpectedly rounded or show the wrong percentage or currency display.

Find other Google Sheets functions

If you have experience using spreadsheets and want to use Google Sheets to perform more advanced calculations, you can explore Google Sheets' list of functions. It's a useful reference for hundreds of functions for financial analysis, statistics, and data.

Working with functions Picture 13

If you are familiar with the functions found in Microsoft Excel's Function Library, you will find that Google Sheets' list of functions contains many similar functions.

How to access the list of functions

Click the Functions button and select More functions. from the drop-down menu. The list of Google Sheets functions will appear in a new browser tab.

Working with functions Picture 14

For additional tools such as VLOOKUP, COUNTIF, and SUMIF, see useful Google Sheets functions. Consult the function’s own help when moving between Sheets and Excel; similar names do not guarantee identical behavior in every case.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.