The COUNT function in Google Sheets returns a count of the number of numeric values in a dataset. This function is useful when you want to determine the total number of numeric values in a range of cells. Learn how to use the COUNT function effectively with our comprehensive guide.
Parameters
value1: The first value or range to count.value2, ...: [Optional] Additional values or ranges to count.
Step-by-Step Tutorial
-
Using
COUNTwith individual values:- Example:
=COUNT(1, 2, 3) - Result:
3
- Example:
-
Using
COUNTwith a range of cells:- Example: If cells
A1toA10contain the values1, 2, "", 4, "", 6, 7, "", 9, 10, then=COUNT(A1:A10)will return8.
- Example: If cells
Working with a Single Value, a List, and a Range
COUNT accepts numbers one at a time, as a comma-separated list, or as a range — mix and match freely. It only counts numeric values, ignoring text and blank cells.
- Single value:
=COUNT(A1)— returns1ifA1holds a number, or0if it's blank or text. - List of values:
=COUNT(A1, A2, A3)— ifA1,A2,A3are1,"text",3, this returns2, since only two of the three values are numeric. - Range:
=COUNT(A1:A10)— counts every numeric cell in the range. - Mixed:
=COUNT(A1, A3:A6, 10)— you can combine single cells, ranges, and literal numbers in one call.
Video Example
Use Cases and Scenarios
- Data Analysis: Count the number of sales transactions in a month.
- Inventory Management: Determine the total number of items in stock.
- Attendance Tracking: Count the number of students present in a class.