Google Sheets function

SUMIF function in Google Sheets

SUMIF in Google Sheets adds values when cells in a range match one criterion. It can sum the tested range itself or a separate sum range. Use SUMIF to total amounts for one status, category, threshold, person, or other single condition.

Source: Google Docs Editors HelpLast verified Nov 5, 2026

Syntax

=SUMIF(range, criterion, [sum_range])

Arguments

ArgumentRequiredWhat it means
rangeYesThe range tested against the criterion.
criterionYesThe pattern or test applied to the range.
sum_rangeNoThe range to add when it differs from the tested range.

Examples

Total paid invoices

ABC
1InvoiceStatusAmount
2A-1Paid120
3A-2Open80
4A-3Paid150
=SUMIF(B2:B4,"Paid",C2:C4)

Result: 270

SUMIF adds the amounts whose status cell contains Paid.

Common mistakes

Using tested and summed ranges with different shapes.

Keep the criterion range and sum range aligned row for row.

Trying to apply several criteria with SUMIF.

SUMIF handles one criterion. Choose a multi-criteria function when more tests are required.