COUNT Function in ONLYOFFICE Spreadsheet Editor: Examples and Syntax
COUNT in ONLYOFFICE Spreadsheet Editor: count numeric cells while ignoring text and blanks with examples, advanced use, errors, troubleshooting and official sources.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
COUNT counts numeric cells in the selected data. It distinguishes a supplied numeric zero from a missing reading, and it excludes the ordinary text and blank cells in the examples below.
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 COUNT reference. Formula meanings and example outputs were independently checked; no native test of these cases was performed.
Syntax and scope
=COUNT(value1, [value2], ...)
The first value or reference is required; additional values or references are optional. The official COUNT entry describes counting cells containing numbers while ignoring empty cells and cells containing text. Square brackets mark optional arguments and are not typed into an ordinary formula.
These examples use English names and commas between arguments. Check the configured formula separator if entering a multi-argument formula fails.
Example: readings with a status and a missing value
Create ReadingCounts. Enter headers Record and Reading in A1:B1, then enter:
| Row | A: Record | B: Reading |
|---|---|---|
| 2 | A | 5 |
| 3 | B | pending |
| 4 | C | Leave B4 empty |
| 5 | D | 0 |
| 6 | E | 2 |
Enter the numbers as numeric values, pending as plain text, and nothing at all in B4. Put all results outside the source table:
| Cell | Formula | Expected result |
|---|---|---|
| E2 | =COUNT(B2:B6) |
3 |
| E3 | =COUNT(B2:B3) |
1 |
| E4 | =COUNTA(B2:B6) |
4 |
| E5 | =COUNTBLANK(B2:B6) |
1 |
The three numeric readings are 5, 0 and 2. A zero is not an empty cell. COUNTA also includes pending, while COUNTBLANK counts the one genuinely unused position.
In E7 enter =COUNT(B2:B6)/ROWS(B2:B6). The result is 0.6, or 60% formatted as a percentage. This is numeric-entry coverage across the five planned records. It does not test whether the readings are plausible, complete a separate approval process or count unique record IDs.
Add one extra reading without changing the first range
On ReadingCounts, enter the number 7 in C2. Enter =COUNT(B2:B6,C2) in E9. The expected result is 4: the original three numeric readings plus the additional numeric cell.
For an independent range check, put =COUNT(B2:B6)+COUNT(C2) in E10; expect 4 again. Keeping C2 separate prevents the extra reading from overwriting an original row.
To inspect a correction while preserving the original example, copy B2:B6 to G2:G6 and replace the copied text pending in G3 with the number 4. Put =COUNT(G2:G6) in I2 and =COUNTA(G2:G6) in I3. Both give 4. The numeric count rises because one text entry becomes numeric; the occupied-cell count stays the same.
Reproduce the official screenshot
On VendorCount, enter these cells without a header row:
| Row | A | B | C |
|---|---|---|---|
| 1 | Ann | 23 | 45 |
| 2 | John | 17 | 45 |
| 3 | Bill | 5 | 45 |
In E1 enter =COUNT(A1:C3). The expected result is 6, matching the vendor’s example: six numeric cells are counted, while the three names are not. This is a transcription of the vendor illustration, not a screenshot from a new native test.
Troubleshooting and boundaries
Check the underlying value rather than just its appearance. Formatting a cell as text and importing an actual text value are not the same operation in every workflow. The short COUNT entry does not give a complete distinction between direct numeric-text arguments, imported numeric strings, logical values, dates and every error case. The fixtures here avoid those ambiguities.
For a count that is too low, inspect range endpoints and cells holding statuses or missing values. For a plausible but wrong count, check that the selected column contains the intended readings. COUNT does not filter by a business condition or identify duplicates.
Related functions
- COUNTA for occupied cells, including ordinary text.
- COUNTBLANK for genuinely empty positions.
- COUNTIF for a chosen condition.
- AVERAGE for the mean of suitable numeric inputs.