How Do I COUNT Text Cells in Excel?
If you want to count the number of cells that contain text in Excel, the easiest method is to use the COUNTIF function. Unlike the COUNT function, which counts only cells containing numbers, COUNTIF can be used to count cells based on a specific condition, including text.
Using COUNTIF to Count Text Cells
Suppose you have names in cells A2:A10 and you want to find out how many cells contain text. You can use the following formula:
=COUNTIF(A2:A10,"*")
Here, A2:A10 is the range you want to check, while "*" tells Excel to count cells containing any text.
Example
| A |
|---|
| Rahul |
| 125 |
| Priya |
| Computer |
| 450 |
| Amit |
| Excel |
Formula:
=COUNTIF(A2:A8,"*")
Result: 4
Excel counts the cells containing Rahul, Priya, Computer, and Amit because these cells contain text.
Why Not Use the COUNT Function?
The COUNT function is mainly used to count cells containing numbers. For example:
=COUNT(A2:A8)
This formula counts the numeric cells but does not count text entries.
For counting text cells, the COUNTIF function with the * wildcard is a simple and useful option.
Important Tip
The formula =COUNTIF(A2:A10,"*") counts cells containing text, but it does not count completely empty cells. It is especially useful when working with student lists, employee records, customer names, product lists, or other Excel data containing text.
In short: To count text cells in Excel, use:
=COUNTIF(A2:A10,"*")
This simple Excel formula can save time when you need to quickly determine how many cells in a selected range contain text.
Put Comment for quarry