Summing by Criteria With SUMIF
Add only the values that match a single condition.
Why a Plain SUM Is Not Enough
A regular SUM adds every number in a range. But often you only want to add some of them. Imagine a sales sheet where column A holds the region and column B holds the amount. You do not want the total of all sales, you want only the East region total.
This is a conditional sum, and the function built for it is SUMIF. It adds numbers only when a matching condition is met, skipping the rest automatically.
The SUMIF Pattern
SUMIF takes three pieces in order:
- range the cells to test against your condition
- criteria the condition to look for
- sum_range the cells to actually add up
So the spreadsheet looks through range, finds rows that meet criteria, and totals the matching cells from sum_range.
=SUMIF(range, criteria, sum_range)All lessons in this course
- Summing by Criteria With SUMIF
- Counting by Criteria With COUNTIF
- Averaging by Criteria With AVERAGEIF
- Using Wildcards in Criteria