Count cells that contain text using COUNTIF

Use Excel's COUNTIF with a text-wildcard criterion to count all cells in a range that contain any text.

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 YouTube

Step-by-step instructions

  1. Enter the function start
    In the cell where you want the count, type =COUNTIF( to begin the formula.
  2. Select the range to evaluate
    With the formula active, select the worksheet range you want to count (for example A2:A100).
  3. 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,"?*").
  4. 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

Video thumbnail for Count cells that contain text using COUNTIF Play tutorial

Watch on YouTube

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.