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

SUMIF practice: total sales by region from 150 invoices

  • Débutant
  • ~5 min
  • SUMIF and SUMIFS

Énoncé en anglais

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.

Ce que vous devez faire

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

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éIn 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.

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 150 lignes sur une feuille, une cellule de réponse, environ 5 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=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.

Autres méthodes valables

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

Erreurs fréquentes

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.

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 1Jour 4
  • Excel for Administrative AssistantsJour 4
  • Excel for Sales and MarketingJour 1

Exercices associés

  • Total of orders above $500Débutant, ~4 min
  • Sales by region and product with SUMIFSIntermédiaire, ~7 min
  • Orders per status with COUNTIFDébutant, ~5 min

Référence de la fonction

Documentation officielle

Exercice suivant

Total of orders above $500