FormulaCraft

How to count cells with text in Excel and Google Sheets

Excel & Google Sheets
=COUNTIF(A2:A100, "*")

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Pick a cell for the count.
  2. 2Enter =COUNTIF(A2:A100, "*") — the asterisk matches any text.
  3. 3Only cells containing text are counted; numbers and blanks are skipped.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Why does my COUNTIF count numbers too?

The "*" wildcard only matches text. If numbers are being counted, they are likely stored as text — check the cell format.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: