Home › Functions › Statistical › COUNTIF
fx
COUNTIF
Statistical  ·  Since: Excel 2003  ·  9 languages

Use COUNTIF, one of the statistical functions , to count the number of cells that meet a criterion; for example, to count the number of times a particular city appears in a customer list.

🌐 Translations

English COUNTIF
Deutsch ZÄHLENWENN
Français NB.SI
Español CONTAR.SI
Italiano CONTA.SE
Português CONT.SE
Nederlands AANTAL.ALS
Polski LICZ.JEŻELI
Русский СЧЁТЕСЛИ

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

COUNTIF(range,criteria)

Arguments

range (required) — The group of cells you want to count. Range can contain numbers, arrays, a named range, or references that contain numbers. Blank and text values are ignored. Learn how to select ranges in a worksheet .
criteria (required) — A number, expression, cell reference, or text string that determines which cells will be counted. For example, you can use a number like 32, a comparison like ">32", a cell like B4, or a word like "apples". COUNTIF uses only a single criteria. Use COUNTIFS if you want to use multiple criteria.

▶ Examples

=COUNTIF(A2:A5,A4)
=COUNTIF(A2:A5,A2)
=COUNTIF(A2:A5,"*")

Related functions

Copied to clipboard