[]
        
(Showing Draft Content)

COUNTIF

This function returns the number of cells that meet a certain condition.

Syntax

COUNTIF(cellrange, condition)

Arguments

This function has these arguments:

Argument

Description

cellrange

[Required] Range of cells to count; cell range reference

condition

[Required] Condition that determines which cells are counted, as a text, number, or expression

Examples

COUNTIF(A1:G5,"test")

COUNTIF(R6C3:R9C4,"<2")