Practice by topic / Excel / Conditional Aggregation

SUMIFS 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 from a region above a value, sum revenue for a product above a quantity, sum hours for a project in a status.

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

1

Sum Sales From a Region Above a Value

Free

A1:A4 hold regions, B1:B4 hold amounts, C1:C4 hold sale totals to sum. Write a formula in D1 that sums C where region is West and amount is over 100.

ABCD
1West15010?
2West5020
3East20030
4West30015
Show the solution

Use =SUMIFS(C1:C4,A1:A4,"West",B1:B4,">100")

Right — SUMIFS requires all criteria pairs to match on the same row before including that row's value.

Expected result in D1: 25

Try it in the live spreadsheet →
2

Sum Revenue for a Product Above a Quantity

Free

A1:A4 hold products, B1:B4 hold quantities, C1:C4 hold revenue. Write a formula in D1 that sums revenue for 'Widget' orders with quantity over 5.

ABCD
1Widget10100?
2Widget330
3Gadget880
4Widget770
Show the solution

Use =SUMIFS(C1:C4,A1:A4,"Widget",B1:B4,">5")

Good — SUMIFS filters on both the product and quantity conditions together.

Expected result in D1: 170

Try it in the live spreadsheet →
3

Sum Hours for a Project in a Status

Free

A1:A4 hold projects, B1:B4 hold statuses, C1:C4 hold hours. Write a formula in D1 that sums hours for 'Apollo' tasks that are 'active'.

ABCD
1Apolloactive5?
2Apollodone3
3Titanactive4
4Apolloactive6
Show the solution

Use =SUMIFS(C1:C4,A1:A4,"Apollo",B1:B4,"active")

Right — both the project name and status must match for the row to count.

Expected result in D1: 11

Try it in the live spreadsheet →
4

Sum Spend by Category Under a Date-Like Sequence Number

A1:A4 hold categories, B1:B4 hold sequence numbers, C1:C4 hold spend. Write a formula in D1 that sums 'Travel' spend with sequence number under 100.

ABCD
1Travel50200?
2Travel150300
3Food2040
4Travel80120

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 →
5

Sum Commission for Reps Above a Quota

A1:A4 hold rep names, B1:B4 hold sales counts, C1:C4 hold commission amounts. Write a formula in D1 that sums commission for 'Sam' with sales counts of 10 or more.

ABCD
1Sam12100?
2Sam540
3Lee15120
4Sam20200

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 →
6

Sum Late Shipment Penalties for a Carrier

A1:A4 hold carriers, B1:B4 hold days late, C1:C4 hold penalty amounts. Write a formula in D1 that sums penalties for 'FastShip' shipments that were more than 2 days late.

ABCD
1FastShip320?
2FastShip15
3SlowCo530
4FastShip425

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 Bonuses for Ratings Above a Level in a Department

A1:A4 hold departments, B1:B4 hold ratings, C1:C4 hold bonus amounts. Write a formula in D1 that sums bonuses in 'Sales' with a rating above 3.

ABCD
1Sales4500?
2Sales2100
3Support5400
4Sales5600

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 Refunds for a Reason Under an Amount Cap

A1:A4 hold reasons, B1:B4 hold amounts, C1:C4 hold refund totals. Write a formula in D1 that sums refunds for 'defective' items with amount under 100.

ABCD
1defective5050?
2defective150150
3wrong size4040
4defective8080

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 →
9

Sum Attendance Fees for a Class Level

A1:A4 hold class levels, B1:B4 hold attendee counts, C1:C4 hold fees collected. Write a formula in D1 that sums fees for 'Beginner' classes with 10+ attendees.

ABCD
1Beginner12240?
2Beginner5100
3Advanced15450
4Beginner20400

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 Utility Costs for a Location Above a Usage Level

A1:A4 hold locations, B1:B4 hold usage units, C1:C4 hold costs. Write a formula in D1 that sums costs for 'Warehouse' with usage over 500.

ABCD
1Warehouse600300?
2Warehouse400200
3Office700350
4Warehouse800400

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 →