What the video covers
Count how many cells in a selected Excel range contain text (letters, words, or any non-empty text entry).
Watch the video on YouTubeStep-by-step instructions
- Enter the function start
In the cell where you want the count, type =COUNTIF( to begin the formula. - Select the range to evaluate
With the formula active, select the worksheet range you want to count (for example A2:A100). - Add the text-wildcard criterion
After the range, type a comma (or your local argument separator) then the criterion quoted: "?*". The full formula looks like: =COUNTIF(A2:A100,"?*"). - Close and confirm
Close the parentheses and press Enter. The result is the number of cells in the selected range that contain any text (at least one character).
Watch the video
Play tutorial
Why it matters
COUNTIF with a wildcard is a simple way to count cells that contain text while ignoring numbers, blanks, and errors. Useful for summaries, data cleaning, and quick validation.
Check your result
Result equals the number of cells in the range that contain any text characters (at least one character).
Troubleshooting
– If the formula returns 0 but you expect text: check for leading apostrophes, cells formatted as numbers, or accidental spaces. – If numeric-looking entries are counted, they may be stored as text; verify data types. – Local Excel versions may use different argument separators (comma or semicolon). If your sheet rejects the formula, try the alternate separator.