Practice by topic / Excel / Conditional Aggregation

SUMIF Exercises

SUMIF, SUMIFS and SUMPRODUCT total only the rows that match: sales for one region, costs for one month, hours for one person. They're among the most-used formulas at work. These 10 exercises build up step by step, starting with sum sales for one region, sum expenses over a threshold, sum orders from a specific customer.

3 of 10 free · no sign-up needed · graded on the formula you write

1

Sum Sales for One Region

Free

A1:A5 hold regions, B1:B5 hold sales. Write a formula in C1 that sums sales for West only.

ABC
1West120?
2East80
3West200
4North90
5West60
Show the solution

Use =SUMIF(A1:A5,"West",B1:B5)

Right — SUMIF sums only the rows where the condition matches.

Expected result in C1: 380

Try it in the live spreadsheet →
2

Sum Expenses Over a Threshold

Free

A1:A5 hold expense amounts. Write a formula in A6 that sums only the expenses over 100.

A
150
2150
380
4200
540
6?
Show the solution

Use =SUMIF(A1:A5,">100")

Good — when the criteria range and sum range are the same, the third argument can be omitted.

Expected result in A6: 350

Try it in the live spreadsheet →
3

Sum Orders From a Specific Customer

Free

A1:A5 hold customer names, B1:B5 hold order totals. Write a formula in C1 that sums all orders from 'Acme'.

ABC
1Acme300?
2Globex150
3Acme220
4Initech90
5Acme180
Show the solution

Use =SUMIF(A1:A5,"Acme",B1:B5)

Right — SUMIF filters to the matching customer before summing.

Expected result in C1: 700

Try it in the live spreadsheet →
5

Sum Hours for One Project

A1:A5 hold project names, B1:B5 hold hours logged. Write a formula in C1 that sums hours for 'Apollo' only.

ABC
1Apollo8?
2Titan5
3Apollo6
4Apollo4
5Titan7

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
7

Sum Refunds for One Reason Code

A1:A5 hold reason codes, B1:B5 hold refund amounts. Write a formula in C1 that sums refunds coded 'defective'.

ABC
1defective40?
2changed mind25
3defective60
4wrong size30
5defective20

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
8

Sum Points Scored at Home

A1:A5 hold game locations ('Home'/'Away'), B1:B5 hold points scored. Write a formula in C1 that sums points scored at Home games.

ABC
1Home21?
2Away14
3Home28
4Away17
5Home24

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
10

Sum Payments Made by Check

A1:A5 hold payment methods, B1:B5 hold amounts. Write a formula in C1 that sums payments made by 'check'.

ABC
1check500?
2card300
3check250
4cash100
5check400

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →