The COUNT function in Google Sheets is a powerful tool designed to compute the total number of numeric entries within a specified dataset. It is often used in data analysis and reporting to quickly determine how many numeric values exist in a given range, making it invaluable for various analytical tasks.
Syntax
COUNT(value1, [value2, ...])
- value1: The first value or range of values to count.
- value2: (Optional) Additional values or ranges to count.
Example #1
=COUNT(A1:A10)
This function counts all numeric values in the range A1 to A10. For example, if the cells contain the numbers 1, 2, and 3, the result would be 3.
Example #2
=COUNT(B1:B5, C1:C5)
This function counts numeric values across both ranges B1 to B5 and C1 to C5. If B1 contains 4, and C1 contains 5, the result would be 2.
Example #3
=COUNT(D1:D20, "test")
In this case, although “test” is included as a parameter, it will not be counted since it is not numeric. If D1 to D20 contains only 2 numerals, the result will be 2.
Error handling
- VALUE!: Occurs if a non-numeric input is provided and cannot be counted.
- N/A: Indicates that a required value is not available in the data.
- REF!: Triggered if any of the cell references used in the count are invalid.