COUNTIF Exercise: Count the Customers

Reading time: 3 minutes

COUNTIF is a logical test applied to a whole column. Instead of asking “is this customer married?” for one row, you ask Excel “how many customers are married?” in one formula. It is one of the functions people search for most, because the criterion must be written in a special way: between quotes, as a number, or as a cell reference.

The following exercise shows you every way to write the criterion of COUNTIF.

What you will practice in this exercise

You work on a customer file. You answer 6 questions, one formula per question:

  • Count the married customers (criterion as text)
  • Count with a cell reference (criterion in a cell)
  • Count by a numeric value (criterion as a number)
  • Count the zeros (the value 0)
  • Count the empty cells (blank criterion)
  • Count with another cell reference

Practice with exercises

countif customers quiz48

COUNTIF Exercise - First steps: count with text, a number or a blank cell

Count how many clients match a single condition (status, children, email) in a client file using COUNTIF — 6 guided steps, no fill-down.

=COUNTIF( range , "criteria" )

1 / 6

You have a file of 15 clients with their name, email, marital status, number of children and income.
In G2, count the clients whose status is "Married". Type the criteria in full inside the formula.

COUNTIF Clients — Q1 · 371

=COUNTIF( range , criteria_cell )

2 / 6

In G2, count the single clients. Cell G1 holds the criteria "Single" — use that cell reference in your formula.

COUNTIF Clients — Q2 · 372

=COUNTIF( range , value )

3 / 6

In G2, count the clients who have exactly 2 children.

COUNTIF Clients — Q3 · 373

=COUNTIF( range , value )

4 / 6

In G2, count the clients who have no children (0 child).

COUNTIF Clients — Q4 · 374

=COUNTIF( range , "" )

5 / 6

In G2, count the clients who have no email address. An empty cell is tested with the criteria "" (two double quotes).

COUNTIF Clients — Q5 · 375

=COUNTIF( range , criteria_cell )

6 / 6

In G2, count the divorced clients. Cell G1 holds the criteria — use that cell reference.

COUNTIF Clients — Q6 · 376

Your score is

0%

Related articles

Excel exercises: practice online with instant correction

All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.

Leave a Reply

Your email address will not be published. Required fields are marked *

COUNTIF Exercise: Count the Customers

Reading time: 3 minutes

COUNTIF is a logical test applied to a whole column. Instead of asking “is this customer married?” for one row, you ask Excel “how many customers are married?” in one formula. It is one of the functions people search for most, because the criterion must be written in a special way: between quotes, as a number, or as a cell reference.

The following exercise shows you every way to write the criterion of COUNTIF.

What you will practice in this exercise

You work on a customer file. You answer 6 questions, one formula per question:

  • Count the married customers (criterion as text)
  • Count with a cell reference (criterion in a cell)
  • Count by a numeric value (criterion as a number)
  • Count the zeros (the value 0)
  • Count the empty cells (blank criterion)
  • Count with another cell reference

Practice with exercises

countif customers quiz48

COUNTIF Exercise - First steps: count with text, a number or a blank cell

Count how many clients match a single condition (status, children, email) in a client file using COUNTIF — 6 guided steps, no fill-down.

=COUNTIF( range , "criteria" )

1 / 6

You have a file of 15 clients with their name, email, marital status, number of children and income.
In G2, count the clients whose status is "Married". Type the criteria in full inside the formula.

COUNTIF Clients — Q1 · 371

=COUNTIF( range , criteria_cell )

2 / 6

In G2, count the single clients. Cell G1 holds the criteria "Single" — use that cell reference in your formula.

COUNTIF Clients — Q2 · 372

=COUNTIF( range , value )

3 / 6

In G2, count the clients who have exactly 2 children.

COUNTIF Clients — Q3 · 373

=COUNTIF( range , value )

4 / 6

In G2, count the clients who have no children (0 child).

COUNTIF Clients — Q4 · 374

=COUNTIF( range , "" )

5 / 6

In G2, count the clients who have no email address. An empty cell is tested with the criteria "" (two double quotes).

COUNTIF Clients — Q5 · 375

=COUNTIF( range , criteria_cell )

6 / 6

In G2, count the divorced clients. Cell G1 holds the criteria — use that cell reference.

COUNTIF Clients — Q6 · 376

Your score is

0%

Related articles

Excel exercises: practice online with instant correction

All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.

Leave a Reply

Your email address will not be published. Required fields are marked *