Home › COUNTIF
Excel COUNTIF Function — Syntax, Example & Tips
Counts cells that meet a single condition.
Syntax
=COUNTIF(range, criteria)
Example
=COUNTIF(B:B, "Cairo")
How many times Cairo appears in column B.
Tip
To spot duplicates use =COUNTIF(A:A,A2)>1.
Want an expert to do it for you?
Gomaa Intelligence turns your data into clear reports and decisions. Tell us your problem and we will reply.
FAQ
What does COUNTIF do?
Counts cells that meet a single condition.
How do I use COUNTIF?
=COUNTIF(B:B, "Cairo") — How many times Cairo appears in column B.
Related functions
VLOOKUP · XLOOKUP · SUMIFS · COUNTIFS · IF · IFERROR · TEXTJOIN · TRIM · SUMPRODUCT · UNIQUE · FILTER · DATEDIF · TEXT