EXCEL TRAINING · LESSON 5 OF 8 · 3 MIN READ

Count matching records with COUNTIF

Distinguish counting records from adding their values.

Understand the idea

COUNTIF counts cells that match one criterion. It is useful for questions such as how many records have a particular status. It does not add the amounts in matching rows. The range should contain the values being tested, and the criterion should reflect the requested condition.

Work through it

Choose the status or category range, then enter the criterion. For a literal text criterion, use quotes. Check a small example by hand and test a row that does not match. If the task needs several conditions at once, COUNTIFS is a different function to investigate.

SEE IT IN CONTEXT

Worked example

C2:C5 contains: Pending, Approved, Pending, Rejected
=COUNTIF(C2:C5,"Pending")
Result: 2

Two cells match the requested status. The other rows are excluded. A count answers “how many”, whereas a conditional sum answers “how much”. Use the activity’s exact category and source cells.

Common mistakes to avoid

  • Adding amounts when the question asks for a count.
  • Testing the wrong category column.
  • Misspelling the requested status.

NOW HAVE A GO

Count pending applications

Apply the idea in the linked activity. Follow its own brief and values; examples in this lesson are illustrative.

Try the practice activity →Download the Excel workbook
About the linked activity

Examples use English function names and comma separators. Your spreadsheet app may use local names or separators. The browser checker supports the functions listed in each activity, rather than all of Excel.

Reading marks are self-reported and saved only in this browser.

0 of 8 lessons marked as read

Keep learning: Reference documentation ↗

YOUR LEARNING JOURNEY

Look how far you’ve come.

Your progress is saved in this browser. Clearing browser data removes it.

Manage saved progress

This removes your completed-challenge history from this browser.