Count cells that end with

An excel formula to count cells that end with

Related Functions

Sponsored Link

 Count cells that end with
=COUNTIF(rng,"*txt")

If you need to count the number of cells end with certain text, you can easily do so with the COUNTIF function. In the generic form of the formula (above) txt represents the text that cells should end with, and "*" is a wildcard matching any number of characters.

In the example, cell F4 contains this formula:

 
=COUNTIF(B4:B11,"*r")

How the formula works

COUNTIF counts the number of cells in the range that begin end with "r" by matching the content of each cell against the pattern "*r", 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.

Sponsored Link

0 votes. 0 / 5