How to Count Cells That Begin with Specific Text in Excel

This post will guide you how to count cells that begin with a specific text string in a given range cells using a formula in Excel 2013/2016.How do I count cells the number of cells that begin with a certain text string in Excel.

Count Cells that Begin with Specific Text

Assuming that you want to count the number of cells that have the certain letters(“excel”)from the word approved as the first five characters in a selected range(A1:A6).In this case, you can use a formula based on the COUNTIF function.

Enter the following formula in a blank cell, and press Enter key:


count cells that begin with certain string1

Note: A1:A6 is the data range that you want to use. “excel*” is a condition that that data need to be matched, and it means that the text that cells should begin with “excel”.”*” character is a wildcard that matching any number of characters.

Now Let’s see how this formula works:

The COUNTIF function can be used to count the number of cells in a selected range that begin with a certain pattern. And the asterisk character is a wildcard in Excel that indicates that matching any number of characters in cells. Then it returns a number that matching the given pattern.

If you want to counts the number of cells in a specified range of cells that end with a certain text(“excel”), and you can also use the CONNTIF function to create a similar formula with the pattern “*excel”as the criteria. The formula is like below:


count cells that begin with certain string2

Related Functions

  • Excel COUNTIF function
    The Excel COUNTIF function will count the number of cells in a range that meet a given criteria. This function can be used to count the different kinds of cells with number, date, text values, blank, non-blanks, or containing specific characters.etc.= COUNTIF (range, criteria)…


Related Posts

Break ties with helper COUNTIF and column

Suppose you got a task to adjust the values that contain the ties; what would be your first attempt to break the ties of the given value? If you are wondering about doing this task manually, let me add that ...

Calculate Total Cost with Excel VLOOKUP Function

In today's article we will show you how to calculate the total cost for a given weight using the Excel VLOOKUP function. This function will help us to find the appropriate unit price for that weight and then we can ...

Excel Formulas To Calculate The Bond Valuation

Assume that you've been assigned a task of calculating bond valuation; so if you are new to Ms Excel or do not have much experience with it, then I am pretty sure about it that doing this task manually might ...

Calculate Cumulative Totals with Excel SUM Function

Today, through a simple example, we will show you how to use one of the most common-used Mathematical functions in excel, the SUM function, to add up the sum. In our daily life, we keep an account of what we ...

BMI Calculation Formula In Ms Excel

You might have come across a task in which you were assigned to make BMI calculations of the supplied numbers, and you may be looking for an efficient approach to accomplish this process rather than doing BMI calculations manually, by ...