Contact

COUNTIF Function in Collabora Office Calc: Formula, Examples & Troubleshooting

Statistical Intermediate Collabora Office Calc

Learn the COUNTIF formula in Collabora Office Calc: count records matching one criterion, 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 COUNTIF to count cells that satisfy one explicit condition. 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

=COUNTIF(range;criterion)

range contains the cells to test. criterion may be a number, text or a comparison expression. Quote literal expressions such as ">=100"; to use a threshold cell, join the quoted operator to that reference. The result counts qualifying positions rather than adding their values or counting distinct labels.

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

=COUNTIF(B2:B9;"East")

Expected result: 3. East appears in rows 2, 4, and 7.

Example 2: retain the second original control

=COUNTIF(D2:D9;">=100")

Expected result: 4. Amounts 120, 210, 150, and 125 meet the threshold.

Advanced example: use an editable numeric threshold

Put numeric 150 in H2, then enter:

=COUNTIF(D2:D9;">="&H2)

Expected result: 2, for the amounts 210 and 150. Changing H2 to numeric 100 gives 4. The comparison is built from the operator and the cell’s value; ">=H2" is not an equivalent way to write a reference.

The original East count is 3 even though two East records share the Item label Pen. COUNTIF counts selected cells, not distinct Item names. A repeated source record should only be excluded if the data policy says it is a duplicate error.

Advanced example: distinguish whole-cell from partial text matching

Create a separate J2:J5 range containing East, NorthEast, East Office and West. With whole-cell matching enabled and pattern evaluation disabled, =COUNTIF(J2:J5;"East") has expected count 1.

With partial matching selected instead, the same plain criterion can match the substring in NorthEast and East Office as well, giving expected count 3. All compared letters use compatible casing in this control; it does not establish a full case-collation matrix.

A workbook option can therefore change the meaning of a familiar-looking formula. Record the matching policy before comparing totals from different deployments.

Advanced example: make a regular-expression prefix explicit

For this separate experiment, enable regular expressions in formulas and keep whole-cell matching enabled. With the same J2:J5 input:

=COUNTIF(J2:J5;"East.*")

Expected count: 2, selecting East and East Office. NorthEast does not start with East, so it does not satisfy the full expression. This expression is regular-expression syntax; do not treat it as a portable wildcard formula under every calculation setting.

The vendor also warns that a criterion may first be interpreted numerically, depending on locale. The simple alphabetical prefix avoids that ambiguity. Do not switch calculation options in an established workbook merely to make one formula work without checking its other formulas.

Advanced check: numeric zero and a physically empty cell

In L2:L4 enter numeric 0, leave L3 genuinely empty, and enter numeric 5 in L4. Then =COUNTIF(L2:L4;"=0") has documented expected count 1. The reference expressly states that this zero comparison does not match empty cells.

This control is narrower than an exhaustive empty-text or special blank-valued formula matrix. A blank criterion cell is also documented as being interpreted as numeric zero, which is a separate issue from a blank cell inside the tested range.

Troubleshooting

Inspect quotes, the criterion’s stored type, range boundaries and matching settings in that order. Use COUNTIFS when more than one condition must hold at corresponding positions. COUNTIF does not automatically combine conditions from other columns simply because their labels appear in the same table.

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.

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.