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.
"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]; ...)Arguments.
Détail de l'ensemble des paramètres acceptés par cette fonction.
The first range to apply the first condition against.
Exemple :A2:A6The condition to check in criteria_range1.
Exemple :"Pending"The second range to evaluate.
Exemple :B2:B6The condition to check in criteria_range2.
Exemple :">100"Exemple pas à pas.
Cas d'usage concretFiltered Survey Counts
Count how many high-spending customers gave a positive response.
| Customer | Purchase Size | Feedback Yes/No | Min Purchase | Qualified Count |
|---|---|---|---|---|
| John | 120 | Yes | >=100 | — |
| Sarah | 45 | Yes | — | — |
| Mike | 250 | No | — | — |
=COUNTIFS(B2:B6, ">=100", C2:C6, "Yes")Evaluates COUNTIFS over the sample table cells, placing the verified output in cell E2.
Générateur de formule.
Ouvrir l'assistant completPersonnalisez les champs ci-dessous pour générer une formule prête à être copiée dans votre classeur.
=NB.SI.ENS()Nature du résultat produit.
Returns "Calculated output" based on sample evaluation criteria and active cell references.
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.
Compatibilité par logiciel et version.
Vérification effectuée selon les moteurs de calcul officiels de Microsoft et Google.
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.
100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.
Questions fréquentes.
Questions TechniquesCan 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.