Tutorial with example
In this tutorial we go through all the count functions. Below you can see the keynotes of the tutorial, so you can jump ahead to the one you need:
02:44 COUNT text (#ERROR), 03:24 COUNT numbers, 04:20 COUNT blanks, 04:56 COUNT dates
05:36 COUNTA text, 06:44 COUNTA numbers
12:34 COUNTROWS, 13:32 COUNTROWS with columns (#ERROR), 14:33 COUNTROWS with an expression
Download example file:
Download the sample file here.
Like the COUNTA function, the COUNTAX function counts cells containing any type of information, including other expressions.
For example, if the column contains an expression that evaluates to an empty string, the COUNTAX function treats that result as nonblank. Usually the COUNTAX function does not count empty cells but in this case the cell contains a formula, so it is counted.
If you do not need to count logical values or text, use the COUNTX function instead.
Whenever the function finds no rows to aggregate, the function returns a blank. However, if there are rows, but none of them meet the specified criteria, the function returns 0. Microsoft Excel also returns 0 if no rows are found that meet the condition.