COUNTIFS
Part of the Formulas and Data Analysis section of Coddy's Excel journey. Lesson 13 of 28.
COUNTIFS accepts range-and-criterion pairs. It counts a row only when every paired condition holds for that row. Use equally sized ranges with aligned starting and ending rows.
A2 contains East, A3 contains East, A4 contains West, B2 contains Paid, B3 contains Open, B4 contains Paid.
Example: =COUNTIFS(A2:A4,"East",B2:B4,"Paid").
Only the first row is both East and Paid.
COUNTIFS combines its conditions with AND across aligned rows.
The practice sheet highlights cells where you should enter formulas. The same formulas must work when the tests replace the input data.
Challenge
EasyRegions are in A2:A5 and statuses in B2:B5. Count rows in selected region E2 with status Paid, placing the result in F2.
Enter formulas in the highlighted output cells: F2. Keep the supplied data and headings. Tests change input values, so use cell references instead of typing the sample answers. Use English function names and commas between arguments.
Try it yourself
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Region | Status | Sales | Region choice | Result | ||
| 2 | East | Paid | 40 | East | |||
| 3 | West | Paid | 70 | ||||
| 4 | East | Open | 30 | ||||
| 5 | East | Paid | 60 | ||||
| 6 | |||||||
| 7 | |||||||
| 8 | |||||||
| 9 | |||||||
| 10 | |||||||
| 11 | |||||||
| 12 | |||||||
| 13 | |||||||
| 14 |
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Formulas and Data Analysis
Practice on your own: Excel playground