COUNTA()

Syntax. COUNTA(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

  • value1 (required) and value2 (optional). At least one and up to 255 arguments (30 in Excel 2003 and earlier versions) indicating the values to be counted. A value can be any information, including an empty string (“”). However, empty cells are not counted. If an argument is an array or a reference, the empty cells in the array or for the reference are ignored. If you want to exclude logical values, text, or error values, use the COUNT() function.

Background. Like the COUNT() function, this function can save you time ...

Get Microsoft® Excel® 2010 Formulas & Functions Inside Out now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.