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

COUNTA.

Counts the number of cells in a range that are not empty.

Statistical & Analysis
ExcelExcel 365Excel 2021Excel 2019Google Sheets

Fonctionnement détaillé.

COUNTA est une fonction indispensable d'Excel. Counts the number of cells in a range that are not empty. Elle permet d'automatiser vos tableaux, fiabiliser vos calculs et gagner un temps précieux au quotidien dans vos feuilles de calcul.

Syntaxe.

Notation Standard Excel
=COUNTA(value1, [value2], ...)
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.

value1Obligatoire

First range or value to check.

Exemple : A2:A10

Exemple pas à pas.

Cas d'usage concret

Event Attendance - Active Roster Count

Count total registered attendees including text names.

Registered AttendeeTotal Checked In
Emma Watson—
Liam Smith—
——
Formule appliquée
=COUNTA(A2:A6)
Résultat attendu ::4

Evaluates COUNTA over the sample table cells, placing the verified output in cell B2.

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 number 4 based on sample evaluation criteria and active cell references.

Exemple produit ::4
Type de sortie ::Numeric

Bonnes Pratiques

  • Unlike COUNT (which only counts numbers), COUNTA counts text entries as well.

Erreurs à Éviter

  • Cells containing formula-generated empty text ("") or invisible spaces are counted as non-empty.
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 COUNTA 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: =COUNTA(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 COUNTA?↓

Cells containing formula-generated empty text ("") or invisible spaces are counted as non-empty.

Does COUNTA work identically in Google Sheets?↓

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