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

AVERAGEIFS and MAXIFS practice: average and largest won deal per rep (180 deals)

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

Énoncé en anglais

The CRM export holds 180 deals from April to September 2026 for five account executives, with the stage (Won, Lost or Open) and the deal amount. For the quarterly review the sales director wants two numbers per rep, counting won deals only: the average deal size and the largest deal closed. The rep names are already listed in H2:H6; fill the two columns next to them with formulas that read the stage, so open and lost deals never leak into the figures.

Ce que vous devez faire

  1. 1Click I2. The rep for this row is in H2; the deal amounts are in F2:F181, the reps in B2:B181 and the stages in E2:E181.
  2. 2Write AVERAGEIFS with the average range first (F2:F181), then two pairs of range, criterion: B2:B181 against H2 and E2:E181 against "Won". Lock the three ranges with $ (F4 on Windows, ⌘T on Mac).
  3. 3Click J2 and write MAXIFS with exactly the same arguments — max range first, then the same two pairs.
  4. 4Fill I2 down to I6 and J2 down to J6 (select I2:J6 and press Ctrl+D / ⌘D after filling the first row). Every average must be smaller than the largest deal on its row. 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 I2:I6, use AVERAGEIFS to show the average amount (F2:F181) of the deals whose rep in B2:B181 is the name in column H and whose stage in E2:E181 is "Won" — one formula in I2, filled down.
  2. Non vérifiéIn J2:J6, use MAXIFS with the same two conditions to show each rep's largest won deal — one formula in J2, 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 180 lignes sur une feuille, 2 cellules de réponse, environ 8 minutes. Corrigé dans votre navigateur : la valeur et la formule qui la produit, avec des indications sur la correction à apporter.

Comment le résoudre

  • I2=AVERAGEIFS($F$2:$F$181,$B$2:$B$181,H2,$E$2:$E$181,"Won")
  • J2=MAXIFS($F$2:$F$181,$B$2:$B$181,H2,$E$2:$E$181,"Won")

AVERAGEIFS and MAXIFS belong to the same family as SUMIFS: the range to summarise comes first, followed by pairs of range and criterion that every counted row must satisfy. Here the pairs are "rep equals the name in column H" and "stage equals Won", so lost and open deals are excluded from both the average and the maximum. With the data ranges locked and the rep reference left relative, one formula per column filled down covers all five reps.

Pitfall 1: AVERAGEIFS returns #DIV/0! when no row matches (a rep with no won deals yet); wrap it in IFERROR(…,0) or IFERROR(…,"–") on live dashboards. MAXIFS returns 0 in the same situation, which can look like a real value. Pitfall 2: averaging the whole pipeline (AVERAGEIF on the rep only) mixes open and lost deals into "average deal size" — the stage condition is what makes the metric meaningful. Pitfall 3: MAXIFS and MINIFS need Excel 2019 or 365; in Excel 2016 the equivalent is the array formula MAX(IF((B2:B181=H2)*(E2:E181="Won"),F2:F181)) entered with Ctrl+Shift+Enter, or AGGREGATE(14,6,F2:F181/((B2:B181=H2)*(E2:E181="Won")),1). Alternatives: SUMIFS(...)/COUNTIFS(...) reproduces the average and makes the deal count visible; LARGE(IF(...),1) is the general form for the second- or third-largest deal. Reading the result: the gap between average and largest deal shows how dependent a rep is on one big win — add COUNTIFS for the number of won deals to complete the review.

Autres méthodes valables

  • =SUMIFS($F$2:$F$181,$B$2:$B$181,H2,$E$2:$E$181,"Won")/COUNTIFS($B$2:$B$181,H2,$E$2:$E$181,"Won") — average as sum ÷ count
  • =AGGREGATE(14,6,$F$2:$F$181/(($B$2:$B$181=H2)*($E$2:$E$181="Won")),1) — largest value without MAXIFS (Excel 2010+)
  • =MAX(IF(($B$2:$B$181=H2)*($E$2:$E$181="Won"),$F$2:$F$181)) — array formula; Ctrl+Shift+Enter before Excel 365

Erreurs fréquentes

Leaving out the stage condition (AVERAGEIFS($F$2:$F$181,$B$2:$B$181,H2)): the figures include lost and open deals, so every average is off and the grader names the first rep whose numbers differ.

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 for Data AnalystsJour 2
  • Excel for Sales and MarketingJour 3

Exercices associés

  • Sales by region and product with SUMIFSIntermédiaire, ~7 min
  • Sales by region with SUMIFDébutant, ~5 min
  • Orders per region and month with COUNTIFSIntermédiaire, ~7 min

Référence de la fonction

Documentation officielle

Exercice suivant

Weighted average price with SUMPRODUCT