SUMIF practice exercises (with answers)

Twelve SUMIF problems on an expense log—single criteria totals, wildcards, and the sum_range pitfall—plus links into live drills and SUMIFS.

SUMIF totals one criterion; SUMIFS handles many. Put expenses in A1:C10. Write answers in column E. Live drills: Intro to SUMIF, SUMIF & sum range, SUMIF practice. Related: SUMIFS practice problems, guide SUMIF.

The practice table

CategoryVendorAmount
TravelAcme Air220
SoftwareNotion48
TravelCity Cab36
MealsCafe Rio28
SoftwareFigma15
TravelAcme Air180
MealsDeli Co12
HardwareLogi65
SoftwareNotion48
MealsCafe Rio19

Refresher

=SUMIF(range, criteria, [sum_range])

If sum_range is omitted, Excel sums range. For text criteria on one column and amounts on another, pass both.

Exercise 1 — travel total

Sum Amount where Category is Travel.

Answer: =SUMIF($A$2:$A$11, "Travel", $C$2:$C$11) → 436

Exercise 2 — meals

Sum Meals.

Answer: =SUMIF($A$2:$A$11, "Meals", $C$2:$C$11) → 59

Exercise 3 — criteria cell

Put Software in G1. Sum that category.

Answer: =SUMIF($A$2:$A$11, G1, $C$2:$C$11) → 111

Exercise 4 — vendor

Sum Amount for Vendor Acme Air.

Answer: =SUMIF($B$2:$B$11, "Acme Air", $C$2:$C$11) → 400

Exercise 5 — wildcard

Sum Vendors starting with Cafe.

Answer: =SUMIF($B$2:$B$11, "Cafe*", $C$2:$C$11) → 47

Exercise 6 — greater than

Sum Amounts greater than 50 (criteria on the amount column).

Answer: =SUMIF($C$2:$C$11, ">50") → 465

Exercise 7 — sum_range trap

Someone writes =SUMIF($A$2:$A$11, "Travel") without sum_range. What happens?

Answer: Excel tries to sum the Category text column → 0. Always pass Amount as sum_range for labeled tables.

Exercise 8 — not equal

Sum everything except Software.

Answer: =SUMIF($A$2:$A$11, "<>Software", $C$2:$C$11) → 560

Exercise 9 — vs COUNTIF

How many Travel rows vs Travel dollars?

Answer: =COUNTIF($A$2:$A$11, "Travel") → 3; SUMIF → 436. See COUNTIF practice.

Exercise 10 — when to switch to SUMIFS

You need Travel and Acme Air. Why not two SUMIFs?

Answer: adding two SUMIFs double-counts. Use =SUMIFS($C$2:$C$11, $A$2:$A$11, "Travel", $B$2:$B$11, "Acme Air") → 400. Drill: SUMIFS practice.

Exercise 11 — fill-down report

Categories listed in E2:E4 as Travel, Meals, Software. In F2: =SUMIF($A$2:$A$11, E2, $C$2:$C$11) and fill down—lock the data ranges.

Exercise 12 — live check

Open SUMIF practice and the practice hub.

Check your work

  1. SUMIF guide
  2. SUMIFS guide
  3. Intro to SUMIF lesson

Excel practice hub · Free lessons · Blog