Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»How to Excel Count Cells with Text

    How to Excel Count Cells with Text

    Asmi DhakalBy Asmi DhakalMay 15, 2023 Excel 4 Mins Read

    Excel has a number of functions to count occurrences. There is one to count numbers, cells that meet criteria, and one to even count blanks! However, there isn’t exactly a function to count text values in Excel. In order to count cells with text, you need to use either the COUNTIF function with the asterisk wildcard or nest the SUMPRODUCT function with the ISTEXT function.

    You can use one of these methods to the best of your convenience. Remember that both of these methods will not count cells that have numbers or symbols. However, these methods also count string values, which are values consisting of letters and numbers.

    Use the COUNTIF Function

    One of my go-tos, if I want to count the cells containing text in a certain range in Excel, is to use the COUNTIF function. You can either choose to count cells containing any text or string value or choose to count a specific text. This flexibility is what makes the COUNTIF function so functional to use.

    Count All Cells with Text

    If you want to count texts that contain any text values, you will need to pass the asterisk (*) wildcard as your criterion in the COUNTIF function.

    Asterisk is a wildcard that commands Excel to select all text values. When paired with COUNTIF individually, it will count all text values. Here is how you will have to construct the COUNTIF function using the asterisk wildcard in Excel:

    =COUNTIF(range, “*”)

    Let’s put this into an example for a better understanding.

    Excel data table

    Take a look at this data table. We will be using the above-mentioned formula to count the number of cells containing text in column C. On an empty cell, we entered the following formula:

    =COUNTIF(C2:C11, “*”)
    COUNT all cells with text in Excel

    Count Cells That Start/End with a Specific Letter

    You can use the asterisk wildcard to count cells that end or begin with a specific letter. All you have to do is enter your text then place your wildcard before or after the letter depending on if you want to count cells with data starting or ending with that data.

    Note that COUNTIF is not case-sensitive. This means it will consider both “apple” and “APPLE” if you have set the criteria accordingly.

    In this table we have two ranges, first, let’s use the asterisk wildcard to count cells that begin with the letter A in column A. Here’s the formula we will be using:

    =COUNTIF(A2:A6, “A*”)
    Count cells with the same start letter

    Next, in column B, let’s count all cells that contain a text that ends with the letter “e”. This is the formula we will be using for this purpose:

    =COUNTIF(B2:B6, “*e”).
    Count cells with the same end letter

    Count Exact Text

    If you wish to count the occurrence of an exact text, you will have to supply that value as the criteria in the COUNTIF function. Again, remember that COUNTIF is not case-sensitive and will count data from the range that does not match the case that you entered as the criteria.

    In this Excel sheet, we have the roles of each student in a classroom. Let’s use the COUNTIF function to see how many roles were assigned to a student named Jared.

    =COUNTIF(A2:A11, “Jared”)
    Count cells with a specific text in Excel

    Nest ISTEXT Inside SUMPRODUCT

    The next method you can use to count cells is to next the ISNEXT function inside the SUMPRODUCT function in Excel.

    The ISTEXT function in Excel is a function that returns a boolean value, TRUE or FALSE, depending on if the cell you’ve referenced is a text or not. These boolean values are also denoted by 1 for TRUE and 0 for FALSE, when nested with the INT function.

    SUMPRODUCT is a function that adds up corresponding values in a referenced array. After ISTEXT checks whether a cell has a text value or not, the SUMPRODUCT function will add up the returned value.

    Let’s combine both of these functions to count the cells containing text in column C. In an empty cell, we entered the following formula:

    =SUMPRODUCT(INT(ISTEXT(C2:C11)))
    Use SUMPRODUCT and ISTEXT to count cells with text

    You will first have to reference your range inside the ISTEXT function. The ISTEXT will return TRUE if your cell contains text and FALSE if a cell does not contain text. Then, the INT function will convert TRUE to 1 and FALSE to 0.

    When you nest it inside SUMPRODUCT, the returned values from the array are added up. As each cell with text returned 1, the end result will be the total number of cells that contained text in the array.

    Formula
    Asmi Dhakal

      Asmi is a content writer specializing in MS Office. She loves writing Excel-related content to assist other users to learn their way around the program. She started using Excel when she first entered the industry as a marketing intern. Soon, she realized that learning the often-overlooked spreadsheet program was no piece of cake. In her articles, she attempts to brief out complex topics to help beginner to intermediate-level Excel users. Asmi uses Excel for everything, including creating a grocery list to managing her personal finance. She’s a bit dramatic when it comes to the Flash Fill feature; so much so that could write a eulogy out of it. When she’s not working, you’ll find her learning a new recipe, or cleaning up her mess (out of the failed recipe).

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • Use the COUNTIF Function
        • Count All Cells with Text
        • Count Cells That Start/End with a Specific Letter
        • Count Exact Text
      • Nest ISTEXT Inside SUMPRODUCT
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.