# Count cells that begin with

=COUNTIF(rng,"txt*")

To count the number of cells that begin with certain text, you can use the COUNTIF function. In the generic form of the formula (above) **rng** is a range of cells, **txt** represents the text that cells should begin with, and "*" is a wildcard matching any number of characters. In the example shown, cell F5 contains this formula:

=COUNTIF(B5:B12,"app*")

COUNTIF counts the number of cells in the range that begin with txt by matching the content of each cell against the pattern "txt*", which is supplied as the criteria. The "*" symbol (the asterisk) is a wildcard in Excel that means "match any number of characters". The count of cells that match this pattern is returned as a number.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

## Download 200+ Excel Shortcuts

Get over 200 Excel shortcuts for Windows and Mac in one handy PDF.