TX Sheet Control

COUNTIF Function

Function

Count the cells of a range that meet a condition. range is the range to check and criteria the condition: a number or a text to match, such as 2 or "North", or a comparison in quotation marks, such as ">20000", or "<>" for cells that are not empty. Text comparisons ignore case, and a text criterion can use the wildcards ? for any single character and * for any sequence of characters.

Syntax

COUNTIF(range, criteria)

Category: Conditional. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=COUNTIF(B4:D6,">20000")

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also