Confident CellsExcel practice Start free
Unit 3 of 9

IF and COUNTIF practice: decisions and counting

For anyone who needs a sheet to decide something on every row: pass or retake, in date or due, Green, Amber or Red. You'll write IF, AND and OR, turn marks into grades with IFS, and count with COUNTIF and COUNTIFS. The project is a community centre's training tracker for 30 staff, ready for an inspection, with counts and percentages for each team.

10 lessons45 exercises30 Check questions1 free lessona project in Excel4 suggested CPD hours

Try one now

These are scores from a compliance test, and the pass mark is in H1. In C2, show Pass if the score is at least the pass mark, otherwise Fail.

ABCDEFGH
1EmployeeScoreResultRefresher?Marks to passPass mark40
2Grace52
3Tom38
4Priya61
5Marek40
6Nia27
7Ollie45
8Lucy30
9Hamza70
10Rachel19
11Sunil48

The lessons

Each lesson starts with a short worked example, then exercises on real-looking data, marked the moment you press Check, with hints when you need them. It ends with a Check: new questions on fresh data, with no hints. Pass it and the lesson is marked Secure.

  1. IF Free
    Making a decision on every row · 4 exercises · a Check of 3 questions · guide: The IF function
  2. AND and OR Pro
    Combining conditions · 4 exercises · a Check of 3 questions · guide: AND and OR in Excel
  3. Grades with IFS and IFERROR Pro
    Nested IF, IFS, IFERROR · 4 exercises · a Check of 3 questions · guide: IFERROR
  4. COUNTIF and COUNTIFS Pro
    Counting rows that match · 4 exercises · a Check of 3 questions · guide: COUNTIF and COUNTIFS
  5. Criteria from cells, and wildcards Pro
    ">="&H1, "*"&H1&"*", "<>" · 5 exercises · a Check of 3 questions
  6. Review: counting Pro
    COUNT, COUNTA, COUNTIF, COUNTIFS, COUNTBLANK · 6 exercises · a Check of 3 questions

Extra practice

Useful, but not needed for the project.

The project in Excel: Staff training tracker

Part of Pro

A community centre has an inspection on 1 December. Find out who has passed safeguarding, whose fire safety training is out of date, and how each team is doing.

What you'll build:

  • Pass or Retake, and In date or Due, for 30 staff
  • A Green, Amber or Red status for each person
  • Counts and percentages for each team
  • "No staff" instead of an error for an empty team

Download the workbook and do the job in Excel. A Check sheet in the workbook ticks off each task as you get it right, and the model answers are there to compare with when you've finished. You'll need Excel 2019 or later, or Excel for the web, which is free with a Microsoft account.

See the project

Counts towards a certificate

Unit 3 is part of the Excel Foundations certificate of achievement (Units 1 to 3, 9 hours of suggested CPD). To earn it, pass the Check in every lesson of those units while signed in (reviews and extra practice aren't needed), and finish each unit's project in Excel. Our server checks the work itself. Certificates come with Pro: see how they work.

Online practice and assessment, completed without supervision. Confident Cells is independent and isn’t connected with Microsoft. This is not a formal qualification.

Guides for this topic

Questions

IF or IFS?

IF gives one of two results. For three or more, such as Green, Amber and Red, IFS is easier to read than an IF inside an IF. IFS is in Excel 2019 and later, Microsoft 365 and Google Sheets. Older Excel shows #NAME?, so put one IF inside another there.

COUNTIF or COUNTIFS?

COUNTIF takes one condition, such as how many staff work in the kitchen. COUNTIFS takes pairs of a range and a condition, so it can count how many kitchen staff are also out of date. COUNTIFS with one pair does the same job as COUNTIF. See COUNTIF with a worked example.

Getting ready for a job test? Take the free Excel test: 12 questions in 20 minutes, marked as you go. Every other test is in the Test Centre.