How to use COUNTIFS in Excel (count with multiple criteria)

Updated · DeskHowTo

In Excel for Microsoft 365 / Excel 2021–2024 (verified 2026-10-24), use =COUNTIFS(A2:A100,"East",B2:B100,">=100") to count rows where region is East and amount is at least 100.

Every criteria range must be the same size and shape. For a single condition, COUNTIF / SUMIF is enough.

Jump to

Applies to Excel for Microsoft 365, Excel 2021/2024, Excel for Mac and Excel for the web. Google Sheets has the same function name.

Count with two or more criteria

Basic COUNTIFS

  1. Click the result cell.
  2. Type =COUNTIFS(A2:A200,"East",C2:C200,">=100") and press Enter.
  3. Pair each range with its criterion: range1, criteria1, range2, criteria2, …

Dates, blanks and wildcards

  1. Date on/after: =COUNTIFS(D2:D200,">="&DATE(2026,1,1)).
  2. Non-blank text: =COUNTIFS(A2:A200,"<>").
  3. Starts with: =COUNTIFS(A2:A200,"Acme*").

OR-style counts

  1. COUNTIFS is AND across pairs. For OR, add two COUNTIFS: =COUNTIFS(... "East" ...)+COUNTIFS(... "West" ...).
  2. Or use a helper column with IF logic, then COUNTIF that column.
  3. On Microsoft 365, FILTER + COUNTA is another option for complex logic.

COUNTIFS vs COUNTIF vs SUMIFS

FunctionCounts / sumsCriteria
COUNTIFCountOne
COUNTIFSCountMany (AND)
SUMIFSSumMany (AND)

Our take: reach for COUNTIFS whenever a pivot would be overkill for a single KPI.

If it fails

  • #VALUE!: criteria ranges are different sizes — make them identical.
  • Wrong total: criterion text has a trailing space, or dates are text — clean the column first.
  • 0 when you expect matches: check operators inside quotes (">=100") and whether you need "<>" for non-blanks.
  • Need a pivot instead: see pivot table basics.

Frequently asked questions

What does COUNTIFS do?

It counts rows that meet multiple criteria at the same time (AND logic).

Do all ranges have to be the same size?

Yes — each criteria range must match the others in height and width.

Can COUNTIFS do OR?

Not in one call — add separate COUNTIFS results, or use FILTER.

COUNTIFS vs COUNTIF?

COUNTIF is one criterion; COUNTIFS handles many.

Does Sheets support COUNTIFS?

Yes — same name and pairing pattern.

Sources checked: Microsoft Support: COUNTIFS function. Verified October 2026.