COUNTA in Zoho Sheet: Syntax, Worked Examples, and Troubleshooting
Count filled cells of any data type; learn the verified help syntax, sample formulas, independent expected results and common pitfalls.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =COUNTA(A2:A9) returns 8 for the eight populated order IDs below. The eight agent cells also count as eight, even though some agent names repeat.
Availability and version history
- Introduced: The original introduction version and date are not established by the checked sources.
- Availability: Currently documented in Zoho Sheet’s rolling web-service help; no numbered release or retirement endpoint is established.
- Scope: English-language web-service documentation. Mobile and offline-client parity is outside the verified scope.
- Checked: October 14, 2026, against the official COUNTA reference. Documentation and independent typed-count checks; no native Zoho Sheet test.
Syntax and what occupancy means
=COUNTA(value; [value1]; ...)
The first value or range is required; extra inputs are optional. The Zoho reference defines COUNTA as a count of nonempty cells or supplied values. Omit the optional-argument brackets when entering a formula and use Zoho’s documented semicolon separators.
A populated cell need not contain a valid ID, an approved status or a unique label. Keep those questions separate from the occupied-cell count. A numeric zero is still a supplied value.
Complete eight-order practice data
Create a blank sheet named Orders. Enter these headers in A1:F1 and all eight records in A2:F9. Keep Amount and Units numeric; the other columns contain text.
| Row | A: Order ID | B: Region | C: Status | D: Amount | E: Agent | F: Units |
|---|---|---|---|---|---|---|
| 2 | O-101 | East | Paid | 120 | Ana | 12 |
| 3 | O-102 | West | Pending | 75 | Bo | 5 |
| 4 | O-103 | East | Paid | 210 | Ana | 7 |
| 5 | O-104 | North | Paid | 90 | Cy | 0 |
| 6 | O-105 | West | Paid | 150 | Bo | 3 |
| 7 | O-106 | East | Pending | 60 | Dana | 8 |
| 8 | O-107 | West | Paid | 125 | Ana | 12 |
| 9 | O-108 | North | Pending | 80 | Cy | 4 |
Alternatively, download the same eight-order CSV and import it into a new blank sheet at A1, retaining its header row and comma-delimited columns. The download contains only the six input columns, not formulas or native test results. The result columns below start at H so they cannot overwrite A:F.
Reproduce the original counts
Enter the following formulas in H:
| Cell | Formula | Expected result |
|---|---|---|
| H2 | =COUNTA(A2:A9) |
8 |
| H3 | =COUNTA(E2:E9) |
8 |
| H4 | =COUNTA(A2:A9)-COUNT(D2:D9) |
0 |
| H5 | =COUNTA(F2:F9) |
8 |
| H6 | =COUNT(A2:A9) |
0 |
| H7 | =COUNTA(A2:A5;A6:A9) |
8 |
| H8 | =COUNTA(A1:A9) |
9 |
| H10 | =COUNTA("East";23;"Closed") |
3 |
H8 includes the Order ID header, so it is one higher than the number of data records. H7 combines two disjoint groups of IDs. H10 supplies three values directly; it does not count rows in Orders.
The distinct agents are Ana, Bo, Cy and Dana: four names across eight occupied cells. COUNTA counts each cell, including repeated names; it does not perform a UNIQUE operation.
Inspect one missing agent in a separate copy
Copy E2:E9 to J2:J9 and put Agent copy in J1. Clear J4 completely, leaving the copied O-103 record without an agent. Preserve the original E column.
| Cell | Formula | Expected result |
|---|---|---|
| L2 | =COUNTA(J2:J9) |
7 |
| L3 | =COUNTBLANK(J2:J9) |
1 |
| L4 | =COUNTA(J2:J9)/COUNTA(A2:A9) |
0.875 |
| L5 | =COUNTA(A2:A9;J2:J9) |
15 |
L4 is 87.5% occupied agent positions in this eight-record fixture. L5 counts populated cells across two columns; it is not a count of fifteen orders. The ratio relies on one valid, populated ID for each planned row, which the supplied dataset provides.
In N2 enter =COUNTIF(C2:C9;"Paid"); expect 5. In N3 enter =COUNTA(C2:C9); expect 8. In N4 enter =N2/N3; expect 0.625, or 62.5% paid. All status cells are occupied, but only five match the required status.
Advanced: equal totals can hide different missing records
Create a separate sheet named MisalignedCompleteness. Put Order ID and Amount in A1:B1. Enter O-201 in A2, leave B2 genuinely empty, leave A3 genuinely empty and enter numeric 200 in B3.
In D2 enter =COUNTA(A2:A3); expect 1. In D3 enter =COUNT(B2:B3); expect 1. In D4 enter =D2-D3; expect 0, even though neither row is a complete ID-and-amount pair.
Put Row check in C1. Enter this formula in C2 and fill to C3:
=IF(COUNTA(A2)=1;IF(COUNT(B2)=1;"Numeric amount";"Check amount");"No ID")
Expected text is Check amount in C2 and No ID in C3. The explicit IF branches evaluate corresponding cells instead of allowing unrelated totals to cancel.
This is why the zero difference in the original H4 is useful only alongside its clean input assumptions. An aggregate equality is a diagnostic, not a proof of record-level completeness or uniqueness.
Blank-looking formulas and limits
Zoho’s COUNTBLANK reference explicitly says spaces and zero-length text are not empty for COUNTBLANK. COUNTA’s short entry does not separately enumerate every formula-generated empty-string, error-value or import case, so do not transfer a classification from another application without checking it.
Use disjoint ranges for separate planned positions; the source does not document automatic deduplication of repeated cell addresses. Inspect whitespace, headers and endpoints when an occupied-cell count seems high. A generic possible-errors list does not establish the exact native response to every malformed value.
COUNT measures numeric content, COUNTBLANK measures genuinely empty positions, and COUNTIF applies a chosen criterion. Keep data-type, occupancy and approval checks visible as separate outputs.