This tutorial shows how to Count cells that end with in Excel using the example below;
To count the number of cells that end with specific text, you can use the COUNTIF function. In the example above “*” is a wildcard matching any number of characters and cell F4 contains this formula:
How the formula works
COUNTIF counts the number of cells in the range that 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.
Note: you can use a tilde character (~) to search for literal wildcards.