COUNTIFS is COUNTIF with several logical tests at the same time. How many customers are married AND have 2 children? How many have children AND earn less than 40,000? Each pair of arguments is one test, and a row is counted only when all the tests are TRUE. It works like the AND function, but on a whole table.
The following exercise shows you how to cross criteria of different kinds in one formula.
What you will practice in this exercise
You work on a customer file. You answer 8 questions, one formula per question:
- Married with 2 children (text + number)
- Single with no children
- Married with an income of 50,000 or more (text + operator)
- With children and income below 40,000 (two operators)
- Divorced with an email filled in (non-empty criterion)
- Status in a cell (G1) with more than 1 child (cell reference)
- Empty email and 0 children (blank criterion)
Practice with exercises
COUNTIFS — Customer file
Cross two criteria at once — status and income — with COUNTIFS.
Related articles
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.