COUNTIF Function in Excel
Learn how to use the COUNTIF function in Excel, understand the syntax and common use cases, and let ExcelGPT adapt the formula to your real workbook structure.
COUNTIF(range, criteria)rangeRequiredThe cells to evaluate against the condition.
criteriaRequiredThe condition to count, such as text, a number, or a comparison operator.
Examples
=COUNTIF(C:C, "Closed Won")Counts how many rows in column C have the status Closed Won.
=COUNTIF(F:F, ">1000")Counts cells in column F where the value is greater than 1000.
Common mistakes
Check the argument order, data types, and references used in COUNTIF.
Review whether ranges, blank cells, error values, or dynamic results are affecting the formula.
Validate the formula on a few sample rows before scaling it across the workbook.
Related functions
Need a variant of this formula?
Describe your workbook structure and ExcelGPT can generate a version tailored to your real columns, ranges, and edge cases.