The COUNTA worksheet function counts the number of cells that are not
empty and counts the values in the list of arguments. Nonempty cells can contain text, numbers, or error values. The arguments of the COUNTA worksheet function can also be an array or a list. For example, the following function returns 3 because it counts a text string, a number, and an error value:
A1: =COUNTA("hello",4,#N/A)
In the following example, the argument of the COUNTA worksheet function is
evaluated as #NAME? because cell B0 is not defined, and the result of the
COUNTA worksheet function that appears in A1 is 1.
You can see this behavior if you select B0:B10 in the formula bar and
press F9 to evaluate the reference. The formula changes to the following:
Excel counts one nonblank item (an error value), and the answer is exactly
1.
NOTE: Use the COUNT worksheet function to count numbers only.