New: ready-to-use spreadsheet templatesExplore the collection  →
Home/Formulas/COUNTIFS
MATH & AGGREGATION · GOOGLE SHEETS

COUNTIFS
count rows that meet several conditions.

Use COUNTIFS to count paid invoices in one region. This guide shows the exact structure, a working example and the mistakes most likely to break it.

JosephineVerified by JosephineReviewed July 25, 2026
THE FORMULA=COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, …])
A

criteria_rangecells to test

B

criterionrule for that range

TRY IT YOURSELF

Change the sheet.
Watch the answer update.

Edit any highlighted cell below. The example recalculates immediately.

LIVE PLAYGROUND=COUNTIFS(A2:A8, "Paid", B2:B8, "North")
fx=COUNTIFS(A2:A8, "Paid", B2:B8, "North")
A · STATUSB · REGIONC · AMOUNT
2
3
4
5
RESULT2Updates live

Try changing a value above. This example runs entirely in your browser.

IN PLAIN ENGLISH

How the formula
thinks.

  1. 01

    criteria_rangecells to test

  2. 02

    criterionrule for that range

COMMON FIXES

When COUNTIFS
doesn’t behave.

WRONG RESULT

Wrong result

Check that every range starts and ends on the same rows, and that numbers are stored as numbers.

FORMULA PARSE ERROR

Formula parse error

Check commas, quotation marks and closing parentheses. Your locale may use semicolons instead of commas.

UNEXPECTED BLANKS

Unexpected blanks

Test the source cells for hidden spaces, empty strings and inconsistent data types.

fxNeed help with COUNTIFS?Fix my formula →