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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.