Excel COUNTA function


The Excel COUNTA function is designed to count the number of cells that are not empty in a range, including cells containing numbers, text, logical values (TRUE/FALSE), error values, and formulas that return an empty string. It is highly useful for determining the extent of filled data within a dataset, enabling users to gauge the volume of entries for analysis, data validation, and inventory checks. Unlike the COUNT function, which only considers numeric values, COUNTA accounts for any type of data, making it versatile for various data assessment needs.
					=COUNTA(value1, [value2], ...)
  • value1: The first item, cell reference, or range to be counted
  • value2, …: [Optional] Additional items, cell references, or ranges to count, up to 255 arguments
Return value
The number of cells that are not empty.

How to use

To use the COUNTA function, simply specify the cell or range of cells you wish to evaluate. The function then counts all cells within this range that contain data, offering an easy method to quantify non-empty cells in a given dataset.


To Count Diverse Entries in a Column: Imagine cells A1 through A10 contain a mix of numbers and text, with some cells left blank.
If A1:A10 includes three numbers (5, 10, 15), four text strings (“Apple”, “Banana”, “Carrot”, “Date”), and three blanks, COUNTA returns 7, reflecting the seven non-empty cells.
COUNTA for Specified Values
Directly Counting a Variety of Entries: Including numbers, text, logical values, and an empty string in the function.
					=COUNTA("Apple", 100, "", TRUE, FALSE, "Orange")
This direct input method would yield a count of 5, as the empty string “” is not considered in the count, showcasing COUNTA’s ability to evaluate an array of different data types directly.
COUNTA for Multiple Ranges with Values
Comprehensive Count Across Ranges and Direct Entries: Combining a range with direct values to understand total non-empty entries.
					=COUNTA(A1:A5, "Text", 25)
Assuming A1:A5 has two numbers (1, 2), one text entry (“Excel”), and two blanks, adding “Text” and 25 to the formula brings the non-empty count to 5, illustrating how COUNTA tallies both range and direct inputs.
COUNTA for Mixed Data Types
Evaluating a Mix of Data Types in One Formula: Counting numbers, text, logical values, and an empty string.
					=COUNTA(1, "Apple", TRUE, FALSE, "", "Banana")
By including a variety of data types, this formula demonstrates COUNTA’s versatility, resulting in a count of 5 for the non-empty values, excluding the empty string from the tally.

Additional Notes

  • COUNTA is crucial for assessing the completeness of data in a given range, especially before conducting further analysis.
  • It will count cells with formulas that return an empty string (“”) as non-empty, a detail to be mindful of when preparing data.
  • For counting only specific types of data or based on certain conditions, other functions like COUNT (for numbers) or COUNTIF/COUNTIFS (for conditional counting) may be more appropriate.

Related Functions

Excel COUNTIFS function

The Excel COUNTIFS function counts cells meeting multiple criteria, essential for complex data categorization.

Excel COUNT function

The Excel COUNT function counts cells containing numbers, fundamental for quantifying data entries in a range.

Excel COUNTBLANK function

The Excel COUNTBLANK function counts empty cells in a specified range, useful for identifying gaps in data sets.

Excel COUNTIF function

The Excel COUNTIF function counts cells that meet a single condition, vital for targeted data quantification.

Content Navigation