Skip to content
GridBelt
  • Excel Test
  • Practice
  • Programs
  • Pricing
Sign in
Start the free test
  • Excel Test
  • Practice
  • Programs
  • Pricing
Sign inCreate account
Start the free test
GridBelt

Practice Excel in your browser.

Excel Test

  • Level 1: Beginner
  • Level 2: Intermediate
  • Level 3: Expert
  • Excel test in 7 days
  • Leaderboard
  • Excel test for interview
  • Indeed Excel assessment

Practice

  • All exercises
  • Programs
  • For beginners

Guides

  • Excel formulas
  • Excel shortcuts

Company

  • About
  • Pricing
  • How we grade

© GridBelt. All rights reserved.

  • Privacy Policy
  • Terms of Use
  • Refund Policy

Excel is a trademark of Microsoft Corporation. Indeed, TestGorilla, SHL and other marks are the property of their owners. GridBelt is an independent practice site and is not affiliated with, endorsed by or sponsored by Microsoft, TestGorilla, SHL or Indeed.

  1. Practice
  2. /
  3. SUMIF and SUMIFS

SUMIF practice: total sales by region from 150 invoices

  • Beginner
  • ~5 min
  • SUMIF and SUMIFS

Finance exported the 150 invoices of Q3 2026: one row per invoice with the region (North, South, East, West), the rep and the amount. The regional directors want their quarter's total on a small summary block, and the block must survive the next export without being rebuilt. The four region names are already typed in G2:G5; put each region's total sales next to it.

What you need to do

  1. 1Click H2. The region for this summary row is in G2 (North); the invoice regions are in C2:C151 and the amounts in E2:E151.
  2. 2Write SUMIF with three arguments: the range to test (C2:C151), the criterion (the cell G2) and the range to add (E2:E151). Lock both ranges with $ (select each and press F4 on Windows, ⌘T on Mac).
  3. 3Press Enter and fill H2 down to H5 (drag the fill handle, or select H2:H5 and press Ctrl+D / ⌘D).
  4. 4The four totals must add up to the sum of column E (select E2:E151 and read the status bar). Then click Check (Ctrl+Enter / ⌘+Return).

Answer cells

Feedback

Type your formula in the grid, press Enter, then Check. We grade the value in each answer cell and the formula behind it.

Tasks

  1. Not checkedIn H2:H5, use SUMIF to total the amounts in E2:E151 for the region named in column G of the same row — one formula in H2, filled down.

Desktop recommended for spreadsheet tasks. The sheet scrolls inside this box.

StartInsertFormulasDataView
A1fxPreparing your workbook…
A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sheet1

Enter your formula in the sheet, then check.

About this exercise

A 150-row dataset on one sheet, one answer cell, about 5 minutes. Graded in your browser: the value and the formula behind it, with feedback that names the fix.

How to solve it

  • H2=SUMIF($C$2:$C$151,G2,$E$2:$E$151)

SUMIF(range, criterion, sum_range) looks down the first range, and wherever a cell matches the criterion it adds the cell in the same row of the sum range. Here the region column is tested against the label in G2 and the amounts in E2:E151 are added, so one formula filled down gives all four regional totals. The $ signs keep both ranges fixed while the criterion cell moves from G2 to G5.

Pitfall 1: filling =SUMIF(C2:C151,G2,E2:E151) down without $ shifts both ranges by a row per copy; the totals look plausible but no longer add up to the grand total — always reconcile the block against SUM(E2:E151). Pitfall 2: a sum range of a different size or offset from the test range (C2:C151 against E3:E152) silently adds the wrong rows; keep both ranges aligned row for row. Pitfall 3: "North " with a trailing space or "north-east" in the export will not match "North"; SUMIF matching is case-insensitive but otherwise exact unless you use wildcards ("North*"). Alternatives: SUMIFS($E$2:$E$151,$C$2:$C$151,G2) puts the sum range first and scales to more conditions (region and product, two exercises on); SUMPRODUCT(($C$2:$C$151=G2)*$E$2:$E$151) is the array form; a pivot table gives the same four numbers but needs a manual refresh after each export. Reporting tip: add =H2/SUM($H$2:$H$5) next to the block for each region's share — the percentage exercise in the Basics track.

Other ways that work

  • =SUMIFS($E$2:$E$151,$C$2:$C$151,G2) — SUMIFS with one condition; note the sum range comes first (not accepted here, because this task asks for SUMIF)
  • =SUMPRODUCT(($C$2:$C$151=G2)*$E$2:$E$151) — array form
  • =SUMIF(C:C,G2,E:E) — whole-column references; acceptable while the columns hold nothing else

Common mistakes

Filling =SUMIF(C2:C151,G2,E2:E151) down without locking the ranges: H3 tests C3:C152 and adds E3:E152, so the second to fourth totals drift and the block no longer reconciles with the grand total.

How we grade

Any formula that produces the right result is accepted, unless the task names a function: then another function earns half credit. We compare values with a small tolerance and ignore case and spaces in text. A correct number typed by hand instead of a formula earns half credit. Multi-cell tasks earn full credit at 100% of cells, half credit from 50%. Where it matters, we also change an input cell on a copy of your sheet and check that your formula follows.

Answers computed with Excel 365 rules and checked in our grading engine on November 16, 2026. Author: GridBelt team.

In these programs

  • Excel test in 7 days, Level 1 planDay 4
  • Excel for Administrative AssistantsDay 4
  • Excel for Sales and MarketingDay 1

Related exercises

  • Total of orders above $500Beginner, ~4 min
  • Sales by region and product with SUMIFSIntermediate, ~7 min
  • Orders per status with COUNTIFBeginner, ~5 min

Function reference

Official documentation

Next exercise

Total of orders above $500