Excel is a powerful tool that allows you to perform various tasks, including counting cells with text. In this article, we will discuss how to count cells with text using Excel.

## Using the COUNTIF Function

The COUNTIF function is one of the easiest ways to count cells with text in Excel. This function allows you to count cells based on a specific condition. To use this function, follow the steps below:

- Select the cell where you want to display the count result.
- Enter the formula “=COUNTIF(range,”*text*”)” in the cell.
- Replace “range” with the cell range you want to search for text.
- Replace “text” with the specific text you want to count.
- Press Enter to display the result.

### Example:

If you want to count cells containing the text “apple” in the range A1:A10, enter the formula “=COUNTIF(A1:A10,”*apple*”)”.

## Using the LEN and SUBSTITUTE Functions

If you want to count cells with text that contains a specific word, you can use the LEN and SUBSTITUTE functions. These functions allow you to count the number of characters in a cell and substitute text with another text.

Follow the steps below to count cells with text using these functions:

- Select the cell where you want to display the count result.
- Enter the formula “=SUM(LEN(range)-LEN(SUBSTITUTE(range,”text”,””)))/LEN(“text”)” in the cell.
- Replace “range” with the cell range you want to search for text.
- Replace “text” with the specific word you want to count.
- Press Enter to display the result.

### Example:

If you want to count cells containing the word “apple” in the range A1:A10, enter the formula “=SUM(LEN(A1:A10)-LEN(SUBSTITUTE(A1:A10,”apple”,””)))/LEN(“apple”)”.

## Using the FILTER Function

The FILTER function is another way to count cells with text in Excel. This function allows you to filter a range of cells based on a specific condition and count the number of cells that meet the condition.

Follow the steps below to count cells with text using the FILTER function:

- Select the cell where you want to display the count result.
- Enter the formula “=COUNT(FILTER(range,range=”text”))” in the cell.
- Replace “range” with the cell range you want to search for text.
- Replace “text” with the specific text you want to count.
- Press Enter to display the result.

### Example:

If you want to count cells containing the text “apple” in the range A1:A10, enter the formula “=COUNT(FILTER(A1:A10,A1:A10=”apple”))”.

## Frequently Asked Questions

#### Q: How can I count cells with text in multiple worksheets?

A: To count cells with text in multiple worksheets, you can use the SUM function with the COUNTIF function. Follow the steps below:

- Select the cell where you want to display the count result.
- Enter the formula “=SUM(COUNTIF(sheet1!range,”text”),COUNTIF(sheet2!range,”text”),…)” in the cell.
- Replace “sheet1” and “sheet2” with the names of the worksheets you want to search for text.
- Replace “range” with the cell range you want to search for text.
- Replace “text” with the specific text you want to count.
- Press Enter to display the result.

#### Q: Can I count cells with text using a wildcard character?

A: Yes, you can use a wildcard character (*) to count cells with text in Excel. The wildcard character represents any number of characters. For example, to count cells containing the word “apple” or “apples”, you can use the formula “=COUNTIF(range,”*apple*”)”.

#### Q: How can I count the number of cells that do not contain text?

A: To count the number of cells that do not contain text, you can use the COUNTBLANK function. This function allows you to count the number of blank cells in a range. To count the number of cells that do not contain text, subtract the result of the COUNTIF function from the result of the COUNTBLANK function. For example, if you want to count the number of cells in the range A1:A10 that do not contain the word “apple”, enter the formula “=COUNTBLANK(A1:A10)-COUNTIF(A1:A10,”*apple*”)”.

## Conclusion

Counting cells with text in Excel is a simple task that you can perform using various methods, including the COUNTIF function, LEN and SUBSTITUTE functions, and the FILTER function. By using these functions, you can quickly and easily count cells with text in your Excel spreadsheets.