How to Use COUNTIF in Excel for a Content Status Check

By Dave TanguayPublished Updated Editorial draft

Quick Answer

Use =COUNTIF(range,criteria) to count Excel cells that meet one condition. For a content-review sheet, =COUNTIF(B2:B7,"Ready") counts matching status cells in that range. Check the included rows, spelling and wildcard behavior before calling the result a count of approved articles.

Start with a small, known list

This illustrative worksheet has a Status heading in B1 and six entries below it. It represents hypothetical review labels, not results from our website.

Cell Status
B2 Ready
B3 Review
B4 ready
B5 Ready – image pending
B6 Blank cell
B7 Hold

Leave B6 empty when recreating the example; do not type the words “Blank cell.” Put the formula outside B2:B7 so its own result is not part of the input.

Count the exact status value

=COUNTIF(B2:B7,"Ready") returns 2 for this sample: B2 and B4. Microsoft’s COUNTIF documentation explains that text matching ignores letter case. Capitalization alone cannot distinguish approved and unapproved states.

B5 does not match that whole-cell criterion. Its longer label says an image is still pending. Use a defined status vocabulary so the count has a clear business meaning.

Use partial matching deliberately

=COUNTIF(B2:B7,"*Ready*") returns 3 here because the asterisks allow surrounding text. That includes B5, which is unsuitable if the question is how many articles are fully ready.

Microsoft also documents ? for one character and ~ to escape a literal wildcard. Choose the criterion from the question rather than broadening it until the number looks plausible.

Reconcile the result with the rows

Inspect the cells that should match and compare their count with the formula. If they differ, check the range, accidental spaces and the text actually stored in the cells. COUNTIF does not count background or font colors.

To count either Review or Hold in this sample, =COUNTIF(B2:B7,"Review")+COUNTIF(B2:B7,"Hold") returns 2. Those two exact labels do not overlap. Adding overlapping partial-match counts can count a row twice. Use COUNTIFS when the question requires multiple conditions to hold for the same row.

The original January 30, 2024 article introduced COUNTIF. Its former publisher URL now leads to a broader Excel guide, so use the Microsoft reference for function behavior. Our spreadsheet tips archive covers other preparation tasks, while the Excel subtraction article addresses arithmetic. The SQL introduction concerns querying structured records outside this worksheet example.

Key Takeaways

  • Define the range and the status you want to count.
  • COUNTIF text matching ignores capitalization.
  • Partial matches can include unfinished work; reconcile the rows.

Frequently Asked Questions

Why does Ready also match ready?

COUNTIF text criteria are case-insensitive. Use a consistent status vocabulary rather than capitalization as a separate approval state.

Can COUNTIF count green cells?

It does not count cells by background or font color. Store a defined status value if that is what the report needs.

When should I use COUNTIFS?

Use it for multiple conditions on the same rows, such as a status and a content type. Check the ranges and criteria against a small known sample.

Archives