COUNTA Function in ONLYOFFICE Spreadsheet Editor: Formula, Examples & Troubleshooting
Learn the COUNTA formula in ONLYOFFICE Spreadsheet Editor: 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
COUNTA counts cells containing values, including ordinary text. Use it for an occupied-cell check, while keeping completeness, approval and duplicate detection as separate questions.
Availability and version history
- Introduced: The original introduction release and date are not established by the checked sources.
- Availability: Currently documented in ONLYOFFICE’s rolling function help; no final supported-version endpoint is established.
- Scope: Shared Spreadsheet Editor documentation. Exact historical availability and parity across individual Docs, Desktop and mobile builds remain unverified.
- Checked: October 14, 2026, against the official COUNTA reference. Formula meanings and example outputs were independently checked; no native test of these cases was performed.
Syntax
=COUNTA(value1, [value2], ...)
The first input is required; further values or ranges are optional. The official COUNTA reference defines the function as a count of cells that are not empty. Omit the syntax brackets when typing a formula. English examples below use commas.
Use COUNT when the question is specifically about numeric entries. COUNTA does not require an item name to be unique or a status to be approved.
Example: eight order records
Create OrderEntries with the following table in A1:F9. The first row holds the six headers; Amount and Units contain numbers, while the other columns contain text.
| Row | A: Item | B: Team | C: Status | D: Amount | E: Units | F: 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 |
Put these results in H, outside the table:
| Cell | Formula | Expected result |
|---|---|---|
| H2 | =COUNTA(A2:A9) |
8 |
| H3 | =COUNT(A2:A9) |
0 |
| H4 | =COUNTA(D2:D9) |
8 |
| H5 | =COUNT(D2:D9) |
8 |
| H6 | =COUNTA(E2:E9) |
8 |
| H7 | =COUNTBLANK(A2:A9) |
0 |
All eight item cells contain text, so COUNTA counts them while COUNT does not. Every amount is numeric. The zero in E5 remains an occupied unit entry.
There are only five distinct item labels in this table: Pen, Pad, Box, Tape and Folder. COUNTA returns eight because it counts cells, not unique labels.
Compare occupancy with a status condition
On OrderEntries, put =COUNTIF(C2:C9,"Paid") in H9; expect 5. In H10 enter =COUNTA(C2:C9); expect 8. In H11 enter =H9/8; expect 0.625, or 62.5% of the eight listed orders.
All statuses are present, but only five meet the Paid criterion. A fully populated column is not automatically a completed payment or approval workflow.
Inspect a missing agent without overwriting the original data
Copy F2:F9 to J2:J9 and put Agent copy in J1. Clear J4 completely, leaving the copied Box order without an agent. Keep F2:F9 unchanged.
| Cell | Formula | Expected result |
|---|---|---|
| L2 | =COUNTA(J2:J9) |
7 |
| L3 | =COUNTBLANK(J2:J9) |
1 |
| L4 | =L2/8 |
0.875 |
| L5 | =COUNTA(A2:A9,J2:J9) |
15 |
L4 is 87.5% occupied agent positions for these eight records. L5 counts populated cells across two disjoint eight-cell columns; it is not a count of 15 orders or proof that every order is complete.
Direct values and the vendor illustration
On a separate sheet named LiteralEntries, put =COUNTA("East",23,"Closed") in B2. The expected result is 3: the two text literals and one number are all values.
For the vendor screenshot, create VendorCountA without headers. Enter Apples, Oranges and Bananas in A1:A3; enter 45, 6 and 8 in B1:B3; leave C1:C3 genuinely empty. In E1 enter =COUNTA(A1:C3). The result is 6, matching the six occupied cells in the official illustration.
Troubleshooting and limits
Inspect a cell’s contents when its displayed appearance suggests a different count. Whitespace or a formula can look empty without being an unused cell. The short reference does not fully specify empty-text formula classification, all error-cell behavior or every import conversion, so these examples use explicit ordinary text, numbers and truly empty cells.
Check headers and endpoints when comparing record counts. Including the Item header would add another occupied cell; selecting a wider rectangle would count fields, rather than just records. Distinct IDs, valid values and completed statuses require their own checks.
Related guides
- COUNT for numeric entries.
- COUNTBLANK for empty cells.
- COUNTIF for a status criterion.
- COUNTIFS for several conditions together.