Today, we are going to talk about the COUNTA function. This function counts almost everything, It counts formula results (Fig. 1),

numbers written as text (Fig. 2),

dates and time (Fig. 3),

logical values (Fig. 4),

numbers (Fig. 5),

and errors (Fig. 6).

It even counts a single number or value that we put as an argument to COUNTA function (Fig. 7)

Let’s write an array with four elements. It doesn’t matter how many columns of rows this array has, but it’s important how many elements there are. So, we have a range of two cells with numbers, a single value and four elements (Fig. 8).

Since COUNTA function counts every element, it returns 7 (Fig. 9)

However, there is one thing that the COUNTA function doesn’t count. It doesn’t cells that are really empty. Cell A14 is really empty, however cell B14 isn’t. It has got a formula that returns an empty text string. COUNTA function counts an empty text string (Fig. 10).

Even if a formula returns a value from an empty cell (B15), the COUNTA function will count cell A15 because it has got a formula (Fig. 11)

The formula in cell B14 was counted by the COUNTA function (Fig. 12)

However, if we delete the formula, the COUNTA function will return 0 because cells A14 and B14 are now really empty (Fig. 13)

Summing up, the COUNTA functions counts everything except for empty cells.