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

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

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: