In Google Sheets functions can be used for finding various values. Learn how to use functions in Google Sheets here.
Creating a function
Google Sheets has a variety of functions available. Here are some of the most common functions you'll use:
- SUM: This function adds all of the values of the cells in the argument.
- AVERAGE: This function determines the average of the values included in the argument. It calculates the sum of the cells and then divides that value by the number of cells in the argument.
- COUNT: This function counts the number of cells with numerical data in the argument. This function is useful for quickly counting items in a cell range.
- MAX: This function determines the highest cell value included in the argument.
- MIN: This function determines the lowest cell value included in the argument.
To create a function using the Functions button:
The Functions button allows you to automatically return the results for a range of cells. The answer will display in the cell below the range.
- Select the range of cells you want to include in the argument. In our example, we'll select D3:D12.
- Click the Functions button, then select the desired function from the drop-down menu. In our example, we'll select SUM.
- In the cell directly below the selected cells, the function appears.
- Press the Enter key on your keyboard. The function will be calculated, and the result will appear in the cell. In our example, the sum of D3:D12 is $765.29.
To create a function manually:
If you already know the function name, you can easily type it yourself. In the example below, which is a tally of cookie sales, we'll use the AVERAGE function to calculate the average number of units sold by each troop.
- Select the cell where the answer will appear. In our example, we'll select C10.
- Type the equals sign (=), then type the desired function name. You can also select the desired function from the list of suggested functions that appears below the cell as you type. In our example, we'll type =AVERAGE.
- When typing a function manually, Google Sheets also displays a window that lists the specific arguments the function needs. This window appears when the first parenthesis is typed and stays visible as the arguments are typed.
- Enter the cell range for the argument inside parentheses. In our example, we'll type (C3:C9). This formula will add the values of cells C3:C9, then divide that value by the total number of values in the range.
- Press the Enter key on your keyboard, and the answer appears.
Google Sheets will not always tell you if your function contains an error, so it's up to you to check all of your functions. To learn how to do this, read our article on why you should Double-Check Your Formulas.