COUNTA()

SyntaxCOUNTA(value1,value2,...)

Definition. This function calculates how many values are included in an argument list. Use the COUNTA() function if you want to know how many cells in a range or an array contain data.

Arguments

Background. Like the COUNT() function, this function can save you time when you are counting the values in an argument list. The only difference is that the COUNTA() function also counts text, logical values, and error values.

Example. For the cell range shown earlier in Figure 12-3, the COUNTA() function returns 20 because the word closed in the cell range is counted.

Tip

To display the number of entries in the cell range in the status bar, right-click the status bar and select Count (see Figure 12-4, in the discussion of the COUNT() function).

See Also

AVERAGE(), COUNT(), DCOUNT(), DCOUNTA(), PRODUCT(), SUM()