Contact

COUNTA Function in WPS Spreadsheet: Formula, Examples & Troubleshooting

Statistical Intermediate WPS Spreadsheet

Learn the COUNTA formula in WPS Spreadsheet: count cells containing values including text, with reproducible examples, expected answers and compatibility cautions.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: COUNTA counts supplied information, including text, numeric values, logical values and error values. The WPS lesson includes empty text ("") but excludes genuinely empty cells, so a visually blank formula result can still contribute to the count.

Availability and version history

  • Introduced: documented by 2019-05-31 in the official WPS lesson; original introduction is not established.
  • Availability: WPS Office for Windows Personal; no numeric release is stated in the lesson metadata.
  • Scope: current supported build limits remain unverified. The Windows lesson does not establish equivalent support in other WPS clients.
  • Checked: October 14, 2026. Function-specific documentation and independent calculations; no new native WPS test was performed.

Syntax and arguments

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

The first value or reference is required; additional arguments are optional. The 2019 Windows Personal lesson describes 1–30 arguments. This dated limit is not a verified maximum for every current WPS build.

Square brackets mark optional arguments and are not typed. Examples use English function names and comma separators. Keep numeric values distinct from numeric-looking text.

Prepare the original example

Enter the original dataset in A1:F9, including headings. The Row column below is explanatory, not an extra worksheet column. Amount and Units are numeric. Keep formula outputs outside the data.

Row A · Item B · Team C · Status D · Amount E · Units F · Agent
1 Item Team Status Amount Units Agent
2 Pen East Paid 120 12 Ana
3 Pad West Pending 75 5 Bo
4 Box East Paid 210 7 Ana
5 Tape North Paid 90 0 Cy
6 Folder West Paid 150 3 Bo
7 Pen East Pending 60 8 Dee
8 Pad West Paid 125 12 Ana
9 Box North Pending 80 4 Cy

Example 1: original control

=COUNTA(A2:A9)

Expected result: 8. All eight item cells contain text labels.

Example 2: original comparison

=COUNTA("East",23,"Closed")

Expected result: 3. Each of the three literal inputs is nonempty.

Example 3: headings and multiple columns change the count

=COUNTA(A1:A9)
=COUNTA(A2:F9)
=COUNTA(D2:D9)

Expected results are 9, 48 and 8. The first includes the Item heading. The second includes all six occupied cells on each of eight data rows. The third counts the eight numeric amount entries.

A result of 48 does not mean 48 orders. If a single required key column represents one record per row, count that column and state the completeness assumption rather than counting every field in the table.

Advanced example: visible emptiness is not physical emptiness

Create this separate control in K2:K8:

Cell Entry
K2 Number 0
K3 Text Pending
K4 =TRUE()
K5 Leave genuinely empty
K6 =""
K7 =" " containing one ordinary space
K8 =1/0 to create an actual error
=COUNTA(K2:K8)

Expected result: 6. Only K5 is genuinely empty. Zero, ordinary text, the logical result, zero-length text, a space and the actual error all carry information under the lesson’s rule.

Replacing the formula in K6 with a truly empty cell changes the count to 5. Merely hiding the formula result with formatting would not remove its stored content. The error’s precise displayed code is not needed for this classification control and is not newly certified here.

Advanced example: measure entered fields without claiming validity

A separate four-cell key field contains A101, A102, a genuinely empty cell and =" ":

=COUNTA(M2:M5)

Expected occupied count: 3. That does not prove three usable identifiers: the space is not a meaningful key. If every nonblank key is required to match a format, validate that rule separately.

Changing the fourth cell to the repeated identifier A101 still produces 3. COUNTA does not count unique identifiers or check duplicates. A correct occupied-cell count may coexist with missing, malformed or repeated keys.

Advanced check: compare numeric and nonnumeric information

On the original Item column:

=COUNTA(A2:A9)-COUNT(A2:A9)

Expected difference: 8, since the eight occupied item labels are text and none are numbers. On the original Amount column the analogous difference is 0, because all eight occupied values are numeric.

In the mixed K2:K8 control, COUNT has expected result 1 for numeric zero, while COUNTA gives 6. Their difference of 5 describes counted nonnumeric information in that explicitly defined fixture. It should not be presented as the number of invalid business records without additional validation rules.

Advanced example: avoid double-counting overlapping blocks

=COUNTA(A2:A5,A6:A9)
=COUNTA(A2:A6,A6:A9)

Expected results are 8 and 9. The second includes A6 in both arguments. Separate ranges are concatenated conceptually for counting; a repeated reference is not automatically deduplicated.

This distinction also matters when a report counts summary rows and underlying detail together. Make the included row boundaries explicit before interpreting a total.

Troubleshooting and limits

The source’s empty-text rule makes COUNTA unsuitable as a stand-alone test of whether a displayed form looks complete. Inspect formulas returning empty strings and whitespace, then apply the specific required-field policy.

Use COUNT when only numeric observations belong in the result, or COUNTIF for a documented criterion. This guide does not certify every nested error/coercion case, the current argument ceiling or differences among WPS clients.

Related guides already published for this function: Microsoft Excel | Google Sheets | LibreOffice Calc | Apache OpenOffice Calc | Gnumeric

Each comparison guide is researched separately; a shared function name does not establish identical platform availability or edge behavior.

Evidence level: The complete article was reviewed against function-specific official WPS evidence. Original worked formulas, title and publication date are preserved. Added outputs are independently calculated expectations, not native WPS test results.