COUNTIF

COUNTIF(arg1, arg2) → { number }

Counts a number of cells within a range that meet the given condition.

Parameters:

Name Type Description
arg1 ApiRange

The range of cells to count nonblank cells.

arg2 number | string

The condition in the form of a number, expression, or text that defines which cells will be counted.

Returns:

Type
number