Skip to content

count

Count numeric values in the arguments.

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

Returns the number of cells / scalars in the arguments that contain numbers. Text, logical, and empty cells are not counted.

count(1, 'a', 2, '', 3) % 3
  • counta — Count non-empty values in the arguments.
  • countblank — Count empty cells in a range.
  • countif — Count cells in a range that meet a criterion.
  • countifs — Count cells meeting multiple criteria.