Formulyo

Excel + Google Sheets · COUNTIF

Count anything in one second

Counts how many cells in a range match a value or condition.

The formula

=COUNTIF(B2:B6, "Done")

What each part means

Example

Before
AB
1TaskStatus
2InvoicesDone
3ReportPending
4PayrollDone
5WebsiteDone
6AuditPending
7Done:
After
AB
1TaskStatus
2InvoicesDone
3ReportPending
4PayrollDone
5WebsiteDone
6AuditPending
7Done:3

Step by step

  1. Click cell B7.
  2. Type the formula: =COUNTIF(B2:B6, "Done")
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning