ExcelFormulas logoExcelFormulas.
Demander à l'IA
Statistical & AnalysisVérifié par QA

NB.SI.ENS (COUNTIFS).

Compte le nombre de cellules dans plusieurs plages répondant à plusieurs critères.

Statistical & Analysis
ExcelExcel 365Excel 2021Excel 2019Google Sheets

Fonctionnement détaillé.

NB.SI.ENS est une fonction indispensable d'Excel. Compte le nombre de cellules dans plusieurs plages répondant à plusieurs critères. Elle permet d'automatiser vos tableaux, fiabiliser vos calculs et gagner un temps précieux au quotidien dans vos feuilles de calcul.

💡 En résumé simple.

Counts how many cells in one or more ranges meet specific conditions.

Analogie du quotidien

"Think of this like counting toys. It counts only the toys that match your description (like counting only red blocks, ignoring blue cars and red balls)."

Syntaxe.

Notation Standard Excel
=NB.SI.ENS(plage_critères1; critères1; [plage_critères2; critères2]; ...)
Conseil : Les arguments entre crochets [comme_ceci] sont facultatifs ; tous les autres sont obligatoires.

Arguments.

Détail de l'ensemble des paramètres acceptés par cette fonction.

criteria_range1Obligatoire

The first range to apply the first condition against.

Exemple : A2:A6
criteria1Obligatoire

The condition to check in criteria_range1.

Exemple : "Pending"
criteria_range2Facultatif

The second range to evaluate.

Exemple : B2:B6
criteria2Facultatif

The condition to check in criteria_range2.

Exemple : ">100"

Exemple pas à pas.

Cas d'usage concret

Filtered Survey Counts

Count how many high-spending customers gave a positive response.

CustomerPurchase SizeFeedback Yes/NoMin PurchaseQualified Count
John120Yes>=100—
Sarah45Yes——
Mike250No——
Formule appliquée
=COUNTIFS(B2:B6, ">=100", C2:C6, "Yes")
Résultat attendu ::Calculated output

Evaluates COUNTIFS over the sample table cells, placing the verified output in cell E2.

Générateur de formule.

Ouvrir l'assistant complet

Personnalisez les champs ci-dessous pour générer une formule prête à être copiée dans votre classeur.

Generated FormulaPrête à copier

Nature du résultat produit.

Returns "Calculated output" based on sample evaluation criteria and active cell references.

Exemple produit ::Calculated output
Type de sortie ::Text

Bonnes Pratiques

  • Use wildcards like "?" (matches single char) and "*" (matches any sequence) to count partial text matches.
  • Use COUNTIFS to count blanks using double quotes: "" or non-blanks using "<>".

Erreurs à Éviter

  • Just like SUMIFS, all criteria ranges must be the exact same height and width, or the function fails with a #VALUE! error.
Matrice de Compatibilité

Compatibilité par logiciel et version.

Vérification effectuée selon les moteurs de calcul officiels de Microsoft et Google.

Excel✓
Pris en charge
Excel 365✓
Pris en charge
Excel 2021✓
Pris en charge
Excel 2019✓
Pris en charge
Google Sheets✓
Pris en charge
Historique des versions Excel

Core standard function supported across all modern and legacy Microsoft Excel versions (365, 2021, 2019, 2016, 2013, 2010), as well as Excel for the Web and Mac.

Notes de compatibilité Google Sheets

100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.

Questions fréquentes.

Questions Techniques
Can I use COUNTIFS across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =COUNTIFS(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in COUNTIFS?↓

Just like SUMIFS, all criteria ranges must be the exact same height and width, or the function fails with a #VALUE! error.

Does COUNTIFS work identically in Google Sheets?↓

Yes, COUNTIFS is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.