Formula Fixer

SUMIFS and COUNTIFS: 10 Practical Examples

Updated 2026-12-04

Syntax

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

Assume A = Date, B = Region, C = Product, D = Sales.

Common mistakes

All ranges must be the same size, and operators with cell references need the & join, as in the date example.

Put it to work

Our Christmas budget tracker uses SUMIFS to total holiday spending per person.

Want totals for every category at once without writing a formula for each? Try a pivot table.

Lock your SUMIFS ranges before filling down: absolute vs relative references.

Put SUMIFS to work in a monthly budget for 2027.

SUMIFS in action: total taken and booked leave in a PTO tracker.

Need a weighted average with a condition? See weighted average in Excel and Google Sheets.

SUMIFS returning 0? The amounts may be text: see numbers stored as text. Totals by week: year-week labels.

Prefer a ready-made file?

Templates we sell: see all downloads and prices.

← More guides