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

SUMIFS practice: sales by region and product from 300 order lines

  • Intermediate
  • ~7 min
  • SUMIF and SUMIFS

The Q3 2026 order export has 300 order lines, each with a region (North, South, East, West), one of three products and the line amount. The sales director wants a region-by-product revenue table — the classic "pivot without a pivot" — built from formulas so it updates when the export is replaced. The grid is laid out in G1:J5: regions down column G, products across row 1. Fill it with a single formula.

What you need to do

  1. 1Click H2. This cell must add the amounts of the lines whose region is the label in G2 (North) and whose product is the label in H1 (Standing desk).
  2. 2Write SUMIFS with the sum range first — E2:E301 — followed by pairs of range, criterion: the Region column C2:C301 against G2, then the Product column D2:D301 against H1.
  3. 3Lock the references for copying: the three data ranges fully ($E$2:$E$301, $C$2:$C$301, $D$2:$D$301), the region label by column only ($G2) and the product label by row only (H$1). F4 / ⌘T cycles through the $ variants.
  4. 4Press Enter, then fill H2 right to J2 with the fill handle, then select H2:J5 and press Ctrl+D / ⌘D to fill the row down to row 5. The twelve cells must add up to the total of column E. Then click Check.

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 checkedFill H2:J5 with the total amount (E2:E301) per region (labels in G2:G5) and product (labels in H1:J1) using SUMIFS — one formula with mixed references, copied across the whole grid (SUMPRODUCT is accepted too).

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 300-row dataset on one sheet, one answer cell, about 7 minutes. Graded in your browser: the value and the formula behind it, with feedback that names the fix.

How to solve it

  • H2=SUMIFS($E$2:$E$301,$C$2:$C$301,$G2,$D$2:$D$301,H$1)

SUMIFS adds the cells of the sum range whose row satisfies every range/criterion pair — here region equals the row label and product equals the column label. Unlike SUMIF, the sum range comes first, which is what lets you add as many conditions as you need afterwards. Mixed references make one formula fit all twelve cells: $G2 follows the row, H$1 follows the column, and the three fully locked data ranges never move, so the grid reconciles to the total of column E.

Pitfall 1: SUMIFS is not SUMIF with more arguments — the argument order differs (sum range first), and mixing them up returns 0 or #VALUE!. Pitfall 2: locking the wrong half of a label reference (G$2 or $H1) produces a grid whose first row or first column is right and the rest wrong; check the bottom-right formula after filling. Pitfall 3: criteria ranges must be the same size as the sum range; $C$2:$C$301 against $E$2:$E$300 returns #VALUE!. Alternatives: SUMPRODUCT(($C$2:$C$301=$G2)*($D$2:$D$301=H$1)*$E$2:$E$301) is the array form and works in every version; a pivot table builds the same grid interactively but needs a refresh after each paste; in Excel 365, =SUMIFS($E$2:$E$301,$C$2:$C$301,G2:G5,$D$2:$D$301,H1:J1) spills the whole 4 × 3 grid from one cell. Performance: SUMIFS stops at the referenced range and is fast even on a hundred thousand lines; avoid whole-column references inside SUMPRODUCT, which would evaluate a million rows per cell.

Other ways that work

  • =SUMPRODUCT(($C$2:$C$301=$G2)*($D$2:$D$301=H$1)*$E$2:$E$301) — array form, same mixed references
  • =SUMIFS($E$2:$E$301,$D$2:$D$301,H$1,$C$2:$C$301,$G2) — the pairs in the other order
  • =SUMIFS($E$2:$E$301,$C$2:$C$301,G2:G5,$D$2:$D$301,H1:J1) in H2 — Excel 365 only; one spilling formula for the grid

Common mistakes

Filling =SUMIFS($E$2:$E$301,$C$2:$C$301,G2,$D$2:$D$301,H1) across without the mixed $: in I2 the labels slide to H2 (an answer cell) and I1, so the second column onwards adds the wrong lines or returns 0.

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 2 planDay 4
  • Excel for Data AnalystsDay 2
  • Excel for Sales and MarketingDay 3

Related exercises

  • Sales by region with SUMIFBeginner, ~5 min
  • Orders per region and month with COUNTIFSIntermediate, ~7 min
  • Average and largest deal per rep (AVERAGEIFS, MAXIFS)Intermediate, ~8 min

Function reference

Official documentation

Next exercise

Average and largest deal per rep (AVERAGEIFS, MAXIFS)