# COUNTA

## Content

This function returns the number of cells that contain numbers, text, or logical values.

## Syntax

`COUNTA(value1, [value2], ...)`

## Arguments

This function has these arguments:

| Argument | Description |
| -------- | ----------- |
| *value1* | [Required] The first argument representing the values that you want to count. |
| *value2, ...* | [Optional] Additional arguments representing the values that you want to count, up to a maximum of 255 arguments. |

## Remarks

This function counts the number of non-empty cells in the specified cell range.
This function differs from [COUNT](/document-solutions/dot-net-excel-api/docs/online/formula-reference/statistical-functions/count) because it includes text or logical values as well as numbers.

## Examples

`COUNTA(B2,D2,E4,E5,E6)`
`COUNTA(A1:G5)`
`COUNTA(R6C3:R9C4)`