Counts the number of cells that are not empty and the values within the list of arguments. Use COUNTA to count the number of cells that contain data in a range or array.
Syntax
COUNTA(value1,value2, ...)
Value1, value2, ... are 1 to 30 arguments representing the values you want to count. In this case, a value is any type of information, including empty text ("") but not including empty cells. If an argument is an array or reference, empty cells within the array or reference are ignored. If you do not need to count logical values, text, or error values, use the COUNT function.
Examples
In the following example,
|
A |
1 |
Sales |
2 |
12/8/90 |
3 | |
4 |
19 |
5 |
22/24 |
6 |
TRUE |
7 |
#DIV/0! |
COUNTA(A1:A7)
equals 6
COUNTA(A4:A7)
equals 4
COUNTA(A1:A7, 2)
equals 7
COUNTA(A1:A7, "Two")
equals 7