Excel functions / Maths & statistics

COUNTIFS

Counts the rows that meet several conditions at once.

Syntax=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)

Arguments

criteria_range, criteriaPairs of a range and its condition. A row is counted only when every pair matches.

How it works

COUNTIFS counts rows where all the conditions are true: West reps with sales over 400, or tasks that are both open and overdue.

Each range must be the same size, because COUNTIFS compares them row by row.

Example

E2=COUNTIFS(A2:A5,"West",C2:C5,">400")
ABCDE
1RegionRepSales
2EastAna5001
3WestBen300
4EastCal250
5WestDee700
6

Result: 1. Only Dee is in the West with over 400.

Tips

Practise COUNTIFS

Try it yourself in a real spreadsheet, with instant feedback on every answer.

Start the exercise

Related