How to Count How Many Times a Word Appears in Excel

Counting how often a word shows up in Excel depends on what you mean: cells that equal the word, cells that contain it, or every occurrence including repeats within a cell. COUNTIF handles the first two, and a short SUMPRODUCT formula handles the third.

Quick Answer

To count cells containing a word, use =COUNTIF(A2:A100,”*cat*”). For cells that exactly equal it, drop the asterisks. To count every occurrence, use =SUMPRODUCT((LEN(A2:A100)-LEN(SUBSTITUTE(LOWER(A2:A100),”cat”,””)))/LEN(“cat”)).

How to Count How Many Times a Word Appears in Excel

  1. Decide whether you want exact matches, cells that contain the word, or every occurrence.
  2. For exact matches, type =COUNTIF(range,”word”) in an empty cell.
  3. For cells containing the word anywhere, use wildcards: =COUNTIF(range,”*word*”).
  4. For total occurrences (a cell with the word twice counts as 2), use the SUMPRODUCT formula from the Quick Answer.
  5. Point the formula at a cell holding the word, such as “*”&C1&”*”, so you can change the word without editing the formula.
Formula bar showing a COUNTIF formula with wildcards
COUNTIF with asterisks counts cells that contain the word.

Which Formula to Use

Goal Formula
Cells equal to the word =COUNTIF(A:A,”cat”)
Cells containing the word =COUNTIF(A:A,”*cat*”)
Every occurrence SUMPRODUCT with LEN and SUBSTITUTE
Case-sensitive count SUMPRODUCT with EXACT

Troubleshooting

Frequently Asked Questions

Is COUNTIF case-sensitive?

No. COUNTIF ignores case. Use SUMPRODUCT with EXACT for case-sensitive counts.

Can I count several words at once?

Add COUNTIF results together, or use COUNTIFS for conditions across columns.

Does this work in older Excel versions?

Yes. COUNTIF and SUMPRODUCT work in every current and older version.

Summary

  1. Choose exact, contains, or every occurrence.
  2. Use COUNTIF for exact or contains.
  3. Use SUMPRODUCT for total occurrences.
  4. Reference a cell for the search word.