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. SUM, AVERAGE and COUNT

COUNT, COUNTA and COUNTBLANK practice: count orders, names and blanks

  • Débutant
  • ~4 min
  • SUM, AVERAGE and COUNT

Énoncé en anglais

A CRM export lists 80 customers with their company, contact name, email, the number of orders placed in 2026 and the last order date. The export is not clean: some contact names are missing and a few order counts came through as the text "n/a". Sales operations wants three quick numbers for the Monday report: how many customers have a usable order count, how many contacts are on file, and how many contact names are missing.

Ce que vous devez faire

  1. 1Click I2 and write a COUNT formula over the Orders column E2:E81. COUNT only counts cells that hold numbers, so the "n/a" entries are skipped.
  2. 2Click I3 and write a COUNTA formula over the Contact name column C2:C81. COUNTA counts every non-empty cell, text included.
  3. 3Click I4 and write a COUNTBLANK formula over the same column C2:C81 to count the empty cells.
  4. 4Press Enter after each formula and check that I3 + I4 equals the number of customers.

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, use COUNT to count how many customers have a numeric value in Orders (2026) (E2:E81).
  2. Non vérifiéIn I3, use COUNTA to count how many contact names are on file (C2:C81).
  3. Non vérifiéIn I4, use COUNTBLANK to count how many contact names are missing (C2:C81).

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 80 lignes sur une feuille, 3 cellules de réponse, environ 4 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=COUNT(E2:E81)
  • I3=COUNTA(C2:C81)
  • I4=COUNTBLANK(C2:C81)

The three functions differ only in what they count. COUNT looks at E2:E81 and counts the 75 cells that contain numbers, skipping the 5 cells with the text "n/a". COUNTA counts every cell in C2:C81 that is not empty (71), and COUNTBLANK counts the 9 empty ones, which is why I3 and I4 add up to 80.

Pitfall 1: COUNT ignores text that merely looks like a number ("12" stored as text), so a column imported from a CSV can return a smaller count than you expect; use VALUE or Paste Special → Multiply by 1 to convert first. Pitfall 2: a cell containing a formula that returns "" is counted by COUNTA and also by COUNTBLANK, so the two can add up to more than the row count after you add helper formulas. Alternatives: COUNTIF(E2:E81,"<>n/a") counts the numeric rows when you know the text marker; SUMPRODUCT(--ISNUMBER(E2:E81)) is the array-style equivalent of COUNT and survives being nested in bigger formulas. Performance: all three are O(n) and fine on hundreds of thousands of rows; never wrap them in volatile functions like INDIRECT when the ranges can be whole columns instead.

Autres méthodes valables

  • =COUNTIF(E2:E81,"<>n/a") — same result as COUNT here because the only non-numbers are the "n/a" cells
  • =SUMPRODUCT(--ISNUMBER(E2:E81)) — array-style equivalent of COUNT
  • =ROWS(C2:C81)-COUNTA(C2:C81) — same as COUNTBLANK

Erreurs fréquentes

Writing =COUNT(C2:C81) for the contact names. Names are text, so COUNT returns 0 — the function for "how many cells are filled" is COUNTA.

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 15 novembre 2026. Auteur : GridBelt team.

Dans ces programmes

  • Excel test in 7 days, Plan de niveau 1Jour 4
  • Excel for Administrative AssistantsJour 2
  • Learn Excel From ScratchJour 4

Exercices associés

  • Total revenue with SUMDébutant, ~3 min
  • AVERAGE, MIN and MAX of exam scoresDébutant, ~4 min
  • Top 3 and bottom 3 reps with LARGE and SMALLDébutant, ~5 min
  • Filter one region and count visible rows with SUBTOTALDébutant, ~6 min

Référence de la fonction

Documentation officielle

Exercice suivant

Row totals with the fill handle