COUNTIFS Function in Collabora Office Calc: Formula, Examples & Troubleshooting
Learn the COUNTIFS formula in Collabora Office Calc: count rows meeting multiple aligned conditions, 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: Use COUNTIFS to count corresponding rows for which all supplied conditions hold. The source table and formulas below make the selected records and expected result explicit.
Availability and version history
- Introduced: original Collabora release and launch date are not established by the reviewed sources.
- Availability: documented in Collabora Office 26.04 help, scoped to the desktop-help release.
- Platform scope: online and mobile deployments are not inferred from desktop documentation.
- Checked: October 14, 2026. Direct function documentation and independently modeled examples; no native Collabora test was performed.
Syntax and argument roles
=COUNTIFS(criteria_range1;criterion1;[criteria_range2;criterion2];...)
The first range/criterion pair is required and later pairs are optional. Collabora documents up to 127 pairs. The criteria ranges must have matching dimensions; the documented mismatch error is err:502. Conditions combine with AND at corresponding positions, not by adding their separate counts.
Prepare the original practice table
Use English function names and semicolon argument separators, adapting separators to the target file if needed. Enter the following data in A1:F9 with headings in row 1. Amount and Units must be numeric. Keep output cells outside that source range.
| 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 |
For the plain text controls, use whole-cell matching and no automatic wildcard/regular-expression evaluation. Collabora’s calculation options govern those choices; the formulas should not inherit an assumed Excel matching policy. No setting is changed by this guide.
Example 1: retain the original control
=COUNTIFS(B2:B9;"East";C2:C9;"Paid")
Expected result: 2. Rows 2 and 4 are both East and Paid.
Example 2: retain the second original control
=COUNTIFS(B2:B9;"West";D2:D9;">=100")
Expected result: 2. Two West orders have amounts at least 100: rows 6 and 8.
Advanced example: count values in a half-open interval
=COUNTIFS(D2:D9;">=100";D2:D9;"<150")
Expected count: 2, for 120 and 125. The value 150 is excluded by the strict upper comparison. Repeating a range is useful when the same value must satisfy both a lower and an upper bound.
With H2=100 and H3=150, =COUNTIFS(D2:D9;">="&H2;D2:D9;"<"&H3) has the same expected result. Keep threshold cells numeric and distinguish an included boundary from an excluded one in the report specification.
Advanced example: show why OR needs different counting
The original table contains 3 East records, 5 Paid records, and 2 records in both groups. The union count is:
=COUNTIF(B2:B9;"East")+COUNTIF(C2:C9;"Paid")-COUNTIFS(B2:B9;"East";C2:C9;"Paid")
Expected result: 6, from 3+5−2. Adding the first two counts alone gives 8 and double-counts the overlap. The eight is not a valid union total merely because this table happens to contain eight records.
For exact Team labels East OR West, the groups are disjoint and the count is 3+3=6. Multiple simultaneous criteria inside one COUNTIFS call are not an OR replacement.
Advanced example: combine a status with a positive-quantity rule
=COUNTIFS(C2:C9;"Paid";E2:E9;">0")
Expected count: 4. The Paid rows are 2, 4, 5, 6 and 8, but row 5 has zero units. A separate criterion makes the intended positive-quantity requirement visible.
A record having status Paid does not prove its numeric fields are valid or that the status was independently verified. The formula only tests the supplied cell values.
Advanced check: alignment matters even for same-sized ranges
In separate J2:J3 enter East, West and in K2:K3 enter Paid, Pending. The count for East AND Paid is 1. If the status cells alone are swapped, the same criterion count becomes 0, although both selected ranges still contain two rows.
This controlled change illustrates why a range-size check is necessary but not sufficient. Sort complete records and retain row identifiers rather than aligning unrelated columns by position after an import.
Product-specific criteria and error scope
The direct reference describes TRUE as 1 and FALSE as 0 and supplies setting-dependent pattern matching. The principal examples use clearly typed numeric values and exact plain text labels; they do not establish every imported-text, blank or error comparison.
The help’s explanatory prose includes a generic reference to a calculation range, but COUNTIFS has no separate sum or average range in its signature. Each successful row contributes one count. Use SUMIFS to total a measure over selected rows and AVERAGEIFS to calculate a mean.
Matching settings and evidence scope
The function-specific reference permits wildcard or regular-expression criteria when the relevant calculation option is enabled. Whole-cell versus partial text matching is separately configurable. A pattern is therefore not automatically portable merely because another spreadsheet accepts the same characters.
The help also notes locale-sensitive numeric interpretation of criteria. Keep numeric thresholds as numbers and avoid treating a number-like expression as a guaranteed regular expression. The controls here deliberately state their input types and matching assumptions; they are not a full native case-collation or coercion matrix.
Related program guides
References and verification
The complete older guide and all original worked formulas were reviewed. Expected numeric and selection results are independently calculated models, with any documented errors identified separately. No target-application execution or cross-deployment certification is claimed.