Excel Logical Tests Exercise: Check a Customer File

Reading time: 3 minutes

Many Excel users think a logical test and the IF function are the same thing. They are not. A logical test is a simple question that Excel answers with TRUE or FALSE, like =C2<2000. The first argument of the IF function is just a logical test. And you can write a logical test in any cell, without any function. The same tests are also the heart of nested IF, COUNTIF, SUMIF and many other functions.

The following exercise shows you why building good logical tests is so important in Excel.

What you will practice in this exercise

You answer 7 questions, one formula per question. For each question, you create a logical test to check if the information about your customers is filled in, and filled in correctly:

  • Is the email missing? (empty cell)
  • Is the customer a man? (equal to a text)
  • Is the gender different from “Male”? (the <> operator)
  • Is the salary below 2,000? (number comparison)
  • Is the postal code 69001? (text that looks like a number)
  • Does the postal code start with 69? (LEFT)
  • Does the email end with @xyz.com? (RIGHT)

Practice with exercises

logical tests quiz95

Logical Tests Exercise - Check an employee's details (TRUE/FALSE)

Write 7 independent logical tests (TRUE/FALSE) on one employee's record: empty cells, text comparisons, thresholds and LEFT/RIGHT — 7 guided steps, no fill-down.

Write the logical test in cell G2

1 / 7

In G2, how do you write the logical test that checks whether the email is missing?

Logical tests — Q1 · 683

Write the logical test in cell G3

2 / 7

In G3, how do you write the logical test that checks whether the employee on row 2 is a man? The Gender column (B) contains "Male" or "Female".

Logical tests — Q2 · 684

Write the logical test in cell G4

3 / 7

In G4, how do you write the logical test that checks whether the employee on row 2 is different from "Male"?

Logical tests — Q3 · 685

Write the logical test in cell G5

4 / 7

In G5, how do you write the logical test that checks whether the salary on row 2 is below 2000?

Logical tests — Q4 · 686

Write the logical test in cell G6

5 / 7

In G6, how do you write the logical test that checks whether the postal code on row 2 is equal to 69001?

Logical tests — Q5 · 687

Write the logical test in cell G7

6 / 7

In G7, how do you write the logical test that checks whether the postal code on row 2 starts with 69?

Logical tests — Q6 · 688

Write the logical test in cell G8

7 / 7

In G8, how do you write the logical test that checks whether the email on row 2 ends with "@xyz.com"?

Logical tests — Q7 · 689

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 *

Excel Logical Tests Exercise: Check a Customer File

Reading time: 3 minutes

Many Excel users think a logical test and the IF function are the same thing. They are not. A logical test is a simple question that Excel answers with TRUE or FALSE, like =C2<2000. The first argument of the IF function is just a logical test. And you can write a logical test in any cell, without any function. The same tests are also the heart of nested IF, COUNTIF, SUMIF and many other functions.

The following exercise shows you why building good logical tests is so important in Excel.

What you will practice in this exercise

You answer 7 questions, one formula per question. For each question, you create a logical test to check if the information about your customers is filled in, and filled in correctly:

  • Is the email missing? (empty cell)
  • Is the customer a man? (equal to a text)
  • Is the gender different from “Male”? (the <> operator)
  • Is the salary below 2,000? (number comparison)
  • Is the postal code 69001? (text that looks like a number)
  • Does the postal code start with 69? (LEFT)
  • Does the email end with @xyz.com? (RIGHT)

Practice with exercises

logical tests quiz95

Logical Tests Exercise - Check an employee's details (TRUE/FALSE)

Write 7 independent logical tests (TRUE/FALSE) on one employee's record: empty cells, text comparisons, thresholds and LEFT/RIGHT — 7 guided steps, no fill-down.

Write the logical test in cell G2

1 / 7

In G2, how do you write the logical test that checks whether the email is missing?

Logical tests — Q1 · 683

Write the logical test in cell G3

2 / 7

In G3, how do you write the logical test that checks whether the employee on row 2 is a man? The Gender column (B) contains "Male" or "Female".

Logical tests — Q2 · 684

Write the logical test in cell G4

3 / 7

In G4, how do you write the logical test that checks whether the employee on row 2 is different from "Male"?

Logical tests — Q3 · 685

Write the logical test in cell G5

4 / 7

In G5, how do you write the logical test that checks whether the salary on row 2 is below 2000?

Logical tests — Q4 · 686

Write the logical test in cell G6

5 / 7

In G6, how do you write the logical test that checks whether the postal code on row 2 is equal to 69001?

Logical tests — Q5 · 687

Write the logical test in cell G7

6 / 7

In G7, how do you write the logical test that checks whether the postal code on row 2 starts with 69?

Logical tests — Q6 · 688

Write the logical test in cell G8

7 / 7

In G8, how do you write the logical test that checks whether the email on row 2 ends with "@xyz.com"?

Logical tests — Q7 · 689

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 *