Home › Functions › Conditional › COUNTIFS
Conditional function
COUNTIFS function in Google Sheets
COUNTIFS counts rows that meet several conditions at once, e.g. orders that are from the West and over $1,000. Every condition must be true for a row to be counted.
Syntax
=COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...])
criteria_range1The first range to test. criterion1The condition for that range. criteria_range2, criterion2, ...Optional. More range/condition pairs. All ranges must be the same size.
Practice COUNTIFS
Count orders from the West region that were also over $500 . Answer in E2 .
Check answer
Hint
Show answer
↻ New data
Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.
This interactive exercise needs JavaScript enabled.
COUNTIFS examples
Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.
Sales by rep
Tips and common mistakes
COUNTIFS is always AND logic. For OR (West or East), add two COUNTIFs together. Ranges of different sizes return #VALUE!.
Related functions
Learning step by step? COUNTIFS is covered in Lesson 12: COUNTIFS Function of the free course.