COUNT function
The COUNT function in Excel counts the number of cells that contain numeric values within a specified range. It only counts cells that contain numbers and ignores any other types of data, such as text, blank cells, or logical values.
Syntax:
COUNT(value1, [value2], ...)
Arguments:
- value1: The first value or range to count. This argument is required.
- value2, … (optional): Additional values or ranges to count. You can include multiple ranges or values in the function.
Example:
If you have a range of values in cells A1:A5:
A1: 5
A2: 3
A3: 8
A4: "Text"
A5: 7
Using the formula:
=COUNT(A1:A5)
This will return 4, because there are 4 numeric values (5, 3, 8, 7), and the text value (“Text”) is not counted.
Key Points:
- Counts only numeric values: It does not count text, logical values (TRUE or FALSE), empty cells, or error values.
- Can count multiple ranges: You can include multiple ranges or individual values in the arguments to count across different sections of data.
Use Cases:
- Counting the number of numeric entries in a dataset.
- Quickly determining the number of data points in a column of numbers.