If you are looking for some of the easiest ways to count rows with text in Excel, then you will find this article worthy of it. Sometimes different texts and numbers and other types of variables get mixed up in a column. If you want to count rows based on texts, then letâ€™s go through this article.

**Table of Contents**hide

## Download Workbook

## 8 Ways to Count Rows with Text in Excel

I have used the following table wherein the **Size** column I have both text and number variables. The number of rows will be counted here based on the texts in this column. Using the following example I will try to explain the methods.

__Method-1__: Using COUNTIF to Count Rows with Any Text

To count the number of texts in the **Size** column you have to use **the COUNTIF function **here. Here I have added a column named **Count **for counting the number of texts.

** Step-01:**âž¤ Select the output cell in the

**Count column**

âž¤Type the following function here

`=COUNTIF(C5:C13,"*")`

Here, **C5:C13** is the **range**, ***** is the **wildcard** that matches any number of text characters.

** Step-02:**âž¤Press

**ENTER**

âž¤Now it will show up the value of texts in the

**Size column**.

__Method-2__: Counting Rows with Specific Text

Suppose I will now search in the **Product column** how many *Shirts *are there. To do this you have to use** the COUNTIF function** and enter the specific text name here.

** Step-01:**âž¤ Select the output cell in the

**Count column**

âž¤Type the following function here

`=COUNTIF(B5:B13,"*Shirt*")`

Here, **B5:B13** is the **range**, and between the **wildcards**, **Shirt **is used for searching this text.

** Step-02:**âž¤Press

**ENTER**

âž¤Now it will show up the number of

**Shirts**in the

**Product column**.

__Method-3__: Counting Rows Based on Multiple Criteria

Suppose you now want to find in the **Product column** how many *Shirts* and *Shoes* are there. To do this you have to use** the SUMPRODUCT function** here.

** Step-01:**âž¤ Select the output cell in the

**Count column**

âž¤Type the following function here

`=SUMPRODUCT(--(ISNUMBER(FIND("Shirt",B5:B13))+ISNUMBER(FIND("Shoe",B5:B13))>0))`

Here, **B5:B13** is the **range**

Using **the FIND function** you will find the desired texts **Shir**t and **Shoe**

**ISNUMBER function** will return an array containing **1** and **0**. **1** will be for the case where criteria meet and **0** is for not meeting criteria

Finally, the **SUMPRODUCT function** will add up the values.

** Step-02:**âž¤Press

**ENTER**

âž¤Now it will show up the number of

**Shirts**and

**Shoes**Â in the

**Product column**.

__Method-4__: Counting Rows with Non-Text Values

If you want to find the non-text values like numbers in the **Size column** then you have to use **the COUNTIF function **here.

** Step-01:**âž¤ Select the output cell in the

**Count column**

âž¤Type the following function here

`=COUNTIF(C5:C13,"<>*")`

Here, **C5:C13** is the **range**, and before the **wildcard, <>** is used which means **Not Equal to**.

** Step-02:**âž¤Press

**ENTER**

âž¤Now it will show up the number of numerical values in the

**Size column**.

**Read More: How Excel Count Rows with Value (8 Ways)**

__Method-5__: Counting Rows with Texts excluding Space Character

Suppose in the last row of the **Size column** there is a **Space Character **which is put here unintentionally. Using **Method-1** in this case for counting texts will return the number of texts including this **Space Character**.

To count the number of texts excluding this **Space Character** you have to use **the COUNTIFS function** here.

** Step-01:**âž¤ Select the output cell in the

**Count column**

âž¤Type the following function here

`=COUNTIFS(C5:C13,"*?*",C5:C13,"<>Â ")`

Here, **C5:C13** is the **range**, and ***?* **is the first criteria that will look for texts

In the second criteria **<>** is used which means **Not Equal to** Space

** Step-02:**âž¤Press

**ENTER**

âž¤Now it will show up the number of texts excluding

**Space Character**in the

**Size column**.

__Method-6__: Using SUMPRODUCT Function

You can use **the SUMPRODUCT function** for getting the number of texts in the **Size column**.

** Step-01:**âž¤ Select the output cell in the

**Count column**

âž¤Type the following function here

`=SUMPRODUCT(--ISTEXT(C5:C13))`

Here, **C5:C13** is the **range**,**The ISTEXT function** will check out if there are texts and then will return **TRUE** and if there are no texts then it will return **FALSE**. Then **â€”** will convert **TRUE** into **1** and **FALSE** into **0**.

Then **the SUMPRODUCT function** will sum up the values.

** Step-02:**âž¤Press

**ENTER**

âž¤Now it will show up the number of texts in the

**Size column**.

__Method-7__: Using An Array Formula

You can count the number of texts by using the array formula as well.

** Step-01:**âž¤ Select the output cell in the

**Count column**

âž¤Type the following function here

`=SUM(IF(ISTEXT(C5:C13),1))`

Here, **C5:C13** is the **range**,**The If function **will return **1** if there is text and then **the SUM function** will sum up these values.

** Step-02:**âž¤Press

**ENTER**

âž¤Now it will show up the number of texts in the

**Size column**.

**Note**

*If you are using an Excel version other than*

**Excel 365**, then you may need to press**CTRL+SHIFT+ENTER**.Â Â**Read More:** **How to Count Rows with Formula in Excel (5 Quick Methods)**

__Method-8__: Counting Rows with Filtered Texts

Suppose you want to count texts in a filtered data table but in this case, you will get the total text values not only the shown values in the filtered column. But you can count the visible values only after filtering by following this method.

Before filtering data you just have to do some extra tasks like below.

** Step-01:**âž¤Select

**Cell E5**of the

**Filtered Value column**

âž¤Type the following formula

`=SUBTOTAL(103,C5)`

To identify all hidden cells, filtered out and hidden manually, **function_num** is used as **103**And

**C5**is the

**reference**

** Step-02:**âž¤Press

**ENTER**

âž¤Drag down the

**Fill handle**

Now you will get **1** for all of the rows.

** Step-03:**âž¤Now you can filter the values according to your needs.

âž¤Select the output cell in the

**Count column**.

âž¤Type the following formula

`=COUNTIFS(C5:C13, "*", E5:E13, 1)`

** Step-04:**âž¤Press

**ENTER**

âž¤It will return the number of texts visible in the

**Size column**.

You can do the aforementioned task by typing only the following formula

`=SUMPRODUCT(SUBTOTAL(103, INDIRECT("C"&ROW(C5:C13))), --(ISTEXT(C5:C13)))`

Otherwise, use the following formula

`=SUMPRODUCT(SUBTOTAL(103, OFFSET(C5:C13, ROW(C5:C13) - MIN(ROW(C5:C13)),,1)), -- (ISTEXT(C5:C13)))`

**Related Content:**Â **How to Count Rows with Data in Excel (4 Formulas)**

## Practice Section

For doing practice by yourself we have provided a** Practice** section like below for each method in each sheet on the right side. Please do it by yourself.

## Conclusion

In this article, I tried to cover the easiest ways to count rows with text in Excel effectively. Hope you will find it useful. If you have any suggestions or questions feel free to share them with us.