Aller au contenu
GridBelt
  • Test Excel
  • Exercices
  • Programmes
  • Tarifs
Se connecter
Commencer le test gratuit
  • Test Excel
  • Exercices
  • Programmes
  • Tarifs
Se connecterCréer un compte
Commencer le test gratuit
GridBelt

Entraînez-vous sur Excel dans votre navigateur.

Test Excel

  • Niveau 1 : Débutant
  • Niveau 2 : Intermédiaire
  • Niveau 3 : Expert
  • Test Excel en 7 jours
  • Classement
  • Test Excel en entretien d’embauche
  • Évaluation Excel d’Indeed

Exercices

  • Tous les exercices
  • Programmes
  • Pour débutants

Guides

  • Formules Excel
  • Raccourcis Excel

Entreprise

  • À propos
  • Tarifs
  • Comment nous corrigeons

© GridBelt. Tous droits réservés.

  • Politique de confidentialité
  • Conditions d’utilisation
  • Politique de remboursement

Excel est une marque commerciale de Microsoft Corporation. Indeed, TestGorilla, SHL et les autres marques sont la propriété de leurs détenteurs respectifs. GridBelt est un site d’entraînement indépendant ; il n’est affilié ni à Microsoft, ni à TestGorilla, ni à SHL, ni à Indeed, et n’est ni cautionné ni sponsorisé par ces sociétés.

  1. Exercices
  2. /
  3. SUMIF and SUMIFS

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

  • Intermédiaire
  • ~7 min
  • SUMIF and SUMIFS

Énoncé en anglais

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.

Ce que vous devez faire

  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.

Cellules de réponse

Correction

Saisissez votre formule dans la grille, appuyez sur Enter, puis cliquez sur Vérifier. Nous corrigeons la valeur de chaque cellule de réponse et la formule qui la produit.

Tâches

  1. Non vérifiéFill 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).

Ordinateur recommandé pour les tâches dans la feuille de calcul. La feuille défile à l’intérieur de ce cadre.

StartInsertFormulasDataView
A1fxPréparation de votre classeur…
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

Saisissez votre formule dans la feuille, puis vérifiez.

À propos de cet exercice

Un jeu de données de 300 lignes sur une feuille, une cellule de réponse, environ 7 minutes. Corrigé dans votre navigateur : la valeur et la formule qui la produit, avec des indications sur la correction à apporter.

Comment le résoudre

  • 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.

Autres méthodes valables

  • =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

Erreurs fréquentes

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.

Comment nous corrigeons

Toute formule qui produit le bon résultat est acceptée, sauf si la tâche nomme une fonction : une autre fonction rapporte alors la moitié des points. Nous comparons les valeurs avec une petite tolérance et ignorons la casse et les espaces dans le texte. Un nombre correct saisi à la main au lieu d’une formule rapporte la moitié des points. Les tâches sur plusieurs cellules rapportent tous les points avec 100 % de cellules justes, la moitié à partir de 50 %. Lorsque c’est pertinent, nous modifions aussi une cellule d’entrée sur une copie de votre feuille et vérifions que votre formule suit.

Réponses calculées selon les règles d’Excel 365 et vérifiées dans notre correcteur le 16 novembre 2026. Auteur : GridBelt team.

Dans ces programmes

  • Excel test in 7 days, Plan de niveau 2Jour 4
  • Excel for Data AnalystsJour 2
  • Excel for Sales and MarketingJour 3

Exercices associés

  • Sales by region with SUMIFDébutant, ~5 min
  • Orders per region and month with COUNTIFSIntermédiaire, ~7 min
  • Average and largest deal per rep (AVERAGEIFS, MAXIFS)Intermédiaire, ~8 min

Référence de la fonction

Documentation officielle

Exercice suivant

Average and largest deal per rep (AVERAGEIFS, MAXIFS)