Count a Specific Status in Google Sheets with COUNTIF
Compare exact status counts with contains-text matches.
Download practice data · CSVStart the exerciseWatch the tutorial
Watch on YouTube · ShortTry it yourself
Import at A1. Put the formula in E2: expect 3. Compare =COUNTIF(A2:A8,"*Done*") in E3: expect 4. COUNTIF ignores letter case and counts matching cells, not every word occurrence.
=COUNTIF(A2:A8,"Done")Detailed steps
- 1. Choose your status range
Our statuses are in A two through A eight. Leave the header out. Click E two for the count, keeping your original list intact.
- 2. Match the complete cell
Enter COUNTIF with A two through A eight as the range, then Done in quotation marks as the criterion. Press Enter. The result is three.
- 3. Compare a contains match
Add a star before and after Done to count cells containing that text. This gives four because Done later now matches too. It counts matching cells, not individual word occurrences.
- 4. Check what you really mean
Choose exact matching for a complete status. A contains match can include unintended phrases such as Not done. COUNTIF ignores letter case, so capitalization alone does not separate statuses.
- Keep the range up to date
Extend your range when adding tasks below row eight. Keep status labels consistent. Which status would you count: done, blocked, or waiting?
Decide whether a partial label counts
An exact criterion counts only cells whose complete status matches Done. A criterion with asterisks also includes Done later. That difference matters for a completion report: a partial phrase may describe work that is not actually complete. COUNTIF counts matching cells; it does not count how often a word occurs inside one cell.
When the result looks wrong
COUNTIF is case-insensitive, so DONE does not create a separate status for this test. Asterisks and question marks are wildcard characters rather than literal text unless escaped. If the result is unexpectedly low, check extra spaces and whether the range includes all task rows.
A check you can repeat
The supplied list contains three exact Done values and one Done later value: exact count 3, contains-text count 4. Changing Done later to Waiting leaves exact count at 3 and reduces the contains-text count to 3.
Preview the input data
| Status |
|---|
| Done |
| Waiting |
| Done |
| Blocked |
| Done later |
| Done |
| In progress |
Need help importing, choosing separators or setting the locale? How to use the practice files.