# Excel COUNTIF Function

COUNTIF is a function to count cells that meet a single criteria. COUNTIF can be used to count cells with dates, numbers, and text that match specific criteria. The COUNTIF function supports logical operators (>,<,<>,=) and wildcards (*,?) for partial matching.

**range**- The range of cells to count.**criteria**- The criteria that controls which cells should be counted.

The COUNTIF function in Excel counts the number of cells in a range that match the supplied criteria

Non-numeric criteria needs to be enclosed in double quotes but numeric criteria does not:

The wildcard characters ? and * can be used in **criteria**. A question mark matches any one character and an asterisk matches any sequence of characters.

To find a literal question mark or asterisk, use a tilde (~) in front question mark or asterisk (i.e. ~?, ~*).

See links on this page to more examples with detailed explanations.

## Excel Formula Training

Learn Excel formulas and functions with concise, clear videos. Master absolute/relative addresses, dates, text, named ranges, and tools for troubleshooting. Each video comes with a practice worksheet and audio transcript. Instant access and complete 100% guarantee. Start today!