COUNTformula returns the number of numeric values within a specified range of cells. It is commonly used to count the number of entries in a given range that meet specific criteria, such as counting the number of sales above a certain threshold.
- How to use
- Examples of using
COUNTformula not working?
- Similar formulas to
COUNT formula with the syntax shown below, it has 1 required parameter and 1 optional parameter:
- value1 (required):
The first value or range of cells to count.
- value2, ... (optional):
Additional values or ranges of cells to count, up to a maximum of 30.
ExamplesHere are a few example use cases that explain how to use the
COUNTformula in Google Sheets.
Counting sales over $100
Suppose you have a table of sales data with columns for the item sold and the price. You can use
COUNT in combination with
GREATER THAN to count the number of sales above a certain threshold, such as $100.
Counting non-empty cells
To count the number of non-empty cells in a range, you can use
COUNTA instead of
Counting unique values
To count the number of unique values in a range, you can use
COUNTUNIQUE instead of
COUNTnot working? Here are some common mistakes people make when using the
COUNTGoogle Sheets Formula:
Not selecting a range of cells
One of the most common mistakes is not selecting a range of cells as the argument for the COUNT formula. Make sure to properly select the range of cells you want to count.
Using text instead of numerical values
COUNT formula only works with numerical values. If you try to count text values, it will return 0. Make sure to use numerical values in the range of cells you want to count.
Using the wrong arguments
Make sure to use the correct arguments for the COUNT formula. The formula takes one or more arguments, separated by commas. If you use the wrong arguments, the formula will return an error.
Not using the correct syntax
Make sure to use the correct syntax for the COUNT formula. The formula takes one or more arguments, separated by commas, and is enclosed in parentheses. If you do not use the correct syntax, the formula will return an error.
Including empty cells in the range
COUNT formula counts only non-empty cells in the range. If you want to count empty cells as well, use the COUNTA formula instead. Make sure to select the appropriate formula for your needs.
The following functions are similar to
COUNT or are often used with it in a formula:
SUMfunction in Google Sheets adds up a range of numbers. This function is most commonly used to sum the values in a range of cells.
The AVERAGE function calculates the average (arithmetic mean) of the values passed to it. It is commonly used to find the average of a range of cells containing numerical data.
MAXfunction returns the maximum value from a range of cells or a set of supplied values. It is commonly used to find the largest value in a dataset.
MINformula is a statistical function that returns the smallest value in a set of numbers. It is commonly used to find the minimum value from a range of cells or a list of values.
IFformula is a logical function used to test a condition and return one value if the condition is true and another value if the condition is false. It is commonly used to create conditional statements and perform calculations based on certain conditions.
You can learn more about the
COUNT Google Sheets function on Google Support.