The COUNTA function returns the count of values in the list of supplied arguments. COUNTA takes multiple arguments in the form value1, value2, value3, etc. Arguments can be individual hardcoded values, cell references, or ranges up to a total of 255 arguments. All values are counted, including text, numbers, percentages, errors, dates, times, fractions, and formulas that return empty strings (""). Empty cells are ignored.

### Examples

In the example shown, COUNTA is set up to values in the range B5:B15: COUNTA returns 9, since there are 9 non-empty cells in the range B5:B15. The COUNTA function counts numbers and text: To count non-empty cells in the range A1:A10: To count non-empty cells in the range A1:A10 and the range C1:H2:

### Empty strings

Note that COUNTA includes empty strings ("") in the count, which can be returned by formulas. For example, the formula below will return “OK” when the value in A1 is at least 10, and an empty string ("") when the value is less than 10: The COUNTA function will count both results as non-empty. To ignore empty strings, this example provides a workaround.

### Invisible characters

Be aware that COUNTA will also count cells that look empty, but actually contain invisible characters or an empty string ("") returned by a formula. You can check which cells are blank using Go To > Special > Blanks:

### Functions for counting

To count numbers only, use the COUNT function. To count numbers and text, use the COUNTA function. To count with one condition, use the COUNTIF function To count with multiple conditions, use the COUNTIFS function. To count empty cells, use the COUNTBLANK function.

### Notes

COUNTA will count cells that contain numbers, text, logical values, error values, and empty text (""). To count numeric values only, use the COUNT function.

### Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.