Skip to main content
← All functions

COUNTA function

Counts how many values are in the list of arguments

Counts cells containing any type of information, including error values and empty text ("") If you do not need to count logical values, text, or error values

Syntax

COUNTA(value1, [value2])

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
value1YesThe first number, cell reference, or range for which you want the average.A1:A20
value2No · repeatsAdditional numbers, cell references or ranges for which you want the average, up to a maximum of 255.B2:B10

Try COUNTA

Count nonempty labels

=COUNTA(B2:B6)

Count nonempty labels. The result is checked against a separately authored expected value for the supplied table. You can edit the data to explore the rule.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

COUNTA · top-level call

=COUNTA(B2:B6)

1 / 1 · value1

The first number, cell reference, or range for which you want the average.

COUNTA reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Practice a complete task

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.