Statistical & Counting Last updated: 2026-08-20

COUNTIFS Function in Excel & Google Sheets (Count with Multiple Criteria)

Count rows meeting multiple criteria across dates, categories, and numeric comparisons using COUNTIFS in Excel and Google Sheets.

Quick Answer & Formula
Excel Sheets Beginner
=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2, ...])

COUNTIFS counts the number of rows that satisfy all specified conditions. For date ranges, specify the date column twice with ">=" & StartDate and "<=" & EndDate.

COUNTIFS Function in Excel & Google Sheets

The COUNTIFS function counts rows that satisfy multiple conditions simultaneously.


1. Multiple Text Conditions

To count active engineering employees:

=COUNTIFS(B2:B100, "Engineering", C2:C100, "Active")

2. Counting Orders Within a Numeric Value Range

To count deals between $10,000 and $50,000:

=COUNTIFS(D2:D100, ">=10000", D2:D100, "<=50000")
?

Frequently Asked Questions

How do I count non-blank cells with criteria?

Use "<>" as the criteria to count non-empty cells: =COUNTIFS(A2:A100, "East", B2:B100, "<>").