Skip to content

counta

Count non-empty values in the arguments.

v = counta(value1, value2, ...)

Returns the number of arguments that are not empty — counts numbers, text, logicals, and errors. Only blank cells are excluded.

counta(1, 'a', '', 2) % 3
  • count — Count numeric values in the arguments.
  • countblank — Count empty cells in a range.
  • countif — Count cells in a range that meet a criterion.