How to use the COUNT function in Excel to count the number of cells that contain numbers, and to count numbers within a list of arguments. The Excel COUNTIF function returns the count of cells in a range that meet a single condition. The generic syntax is COUNTIF (range, criteria), where "range" contains the cells to count , and "criteria" is a condition that must be true for a cell to be counted. COUNTIF can be used to count cells that contain dates, numbers, and text. Criteria can include logical operators (>, Learn how to use the COUNTIF function in Excel to count cells based on one criteria, such as numeric, text, Boolean, or error values. See examples of COUNTIF with and criteria, or criteria, and array formulas. Learn how to use Excel ’s COUNTIF Function to count cells that meet specific criteria—ideal for analyzing text, numbers, and patterns using wildcards.