Quick reference
| COUNTIF(range, condition) | How many cells match. |
|---|---|
| SUMIF(range, condition, sum range) | Adds the rows that match. |
| AVERAGEIF(range, condition, avg range) | Averages the rows that match. |
| COUNTIFS / SUMIFS | The same with several conditions. |
| ">20", "<>Done", "S*" | Conditions: a comparison, not equal, starts with. |
The practice answers
Other formulas that give the same results count too.
- How many times was the money spent on Food? Count them in F1.
=COUNTIF(B2:B8,"Food") - What did travel cost in total? Add it up in F1.
=SUMIF(B2:B8,"Travel",C2:C8) - How many payments were over 20? Count them in F1.
=COUNTIF(C2:C8,">20") - Add up only the Food payments over 20, in F1.
=SUMIFS(C2:C8,B2:B8,"Food",C2:C8,">20")
An unofficial course. Not made by or affiliated with Microsoft; Excel is a trademark of Microsoft Corporation.