SUMIF
Part of the Formulas and Data Analysis section of Coddy's Excel journey. Lesson 12 of 28.
SUMIF(criteria_range, criteria, sum_range) adds values from rows matching one condition. The criteria and sum ranges should align row for row. A match in the first row of one range selects the first row of the other.
A2 contains East, A3 contains West, A4 contains East, B2 contains 20, B3 contains 50, B4 contains 30.
Example: =SUMIF(A2:A4,"East",B2:B4).
The two East rows contribute 20 + 30; the West row is excluded.
Align the criteria range and sum range so each match selects the intended amount.
The practice sheet highlights cells where you should enter formulas. The same formulas must work when the tests replace the input data.
Challenge
EasyRegions are in A2:A5, sales in C2:C5, and the selected region in E2. In F2, sum sales for that region.
Enter formulas in the highlighted output cells: F2. Keep the supplied data and headings. Tests change input values, so use cell references instead of typing the sample answers. Use English function names and commas between arguments.
Try it yourself
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Region | Status | Sales | Region choice | Result | ||
| 2 | East | Paid | 40 | East | |||
| 3 | West | Paid | 70 | ||||
| 4 | East | Open | 30 | ||||
| 5 | East | Paid | 60 | ||||
| 6 | |||||||
| 7 | |||||||
| 8 | |||||||
| 9 | |||||||
| 10 | |||||||
| 11 | |||||||
| 12 | |||||||
| 13 | |||||||
| 14 |
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Formulas and Data Analysis
Practice on your own: Excel playground