IF Function in Collabora Office Calc: Formula, Examples & Troubleshooting
Learn the IF formula in Collabora Office Calc: choose between two outcomes using a logical test, 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: IF chooses between two outcomes according to a logical test. In the sample table, an amount of at least 100 returns Review and a lower amount returns OK.
Availability and version history
- Introduced: the original Collabora release and launch date are not established by the sources reviewed.
- Availability: documented in the Collabora Office 26.04 IF reference; this is the desktop-help release scope.
- Platform scope: online and mobile deployment behavior is not inferred from desktop documentation. Check the installed client and its formula settings.
- Checked: October 14, 2026. Product-specific documentation and independent example calculations; no native Collabora execution was performed.
Syntax and arguments
=IF(test; [then_value]; [otherwise_value])
The test is required. Collabora documents the outcome arguments as optional, but the main examples supply both explicitly. Optional brackets describe the syntax, not characters to type; an empty argument position is also different from the text value “”.
Examples use English function names and semicolon separators. Adjust argument separators for the target locale; quoted text and comparison operators retain their intended meaning.
Prepare the original example inputs
Enter this fictional table in A1:F9; the displayed Row column identifies worksheet rows and is not an extra data column. Keep outputs outside A1:F9. Amount and Units are numeric, while the other columns are text.
| 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 |
Example 1: original control
=IF(D2>=100;"Review";"OK")
Expected result: Review. Cell D2 holds 120, meeting the >=100 rule.
Example 2: original comparison
=IF(D3>=100;"Review";"OK")
Expected result: OK. Cell D3 holds 75, below the threshold.
Example 3: check the threshold and every sample row
In H2 enter and fill down through H9:
=IF(D2>=100;"Review";"OK")
Expected H2:H9: Review, OK, Review, OK, Review, OK, Review, OK. The result is a label; it does not move or change the original record.
For otherwise identical numeric inputs 99, 100 and 101, the same rule returns OK, Review, Review. With a strict >100 test, the middle result would become OK. Always test the exact threshold rather than relying only on clearly high and low examples.
Example 4: an explicitly empty branch is zero
Collabora’s reference includes empty argument positions. Compare:
=IF(6>5;;"Too small")
=IF(5>5;100;)
=IF(5>5;100;"")
Expected results: 0, 0, and empty text. In the first formula, the selected true branch is an empty parameter. In the second, the selected false branch is an empty parameter. The third instead supplies an explicit empty string.
An empty-looking formula result is not a physical deletion of the cell or its formula. Choose numeric zero only when it represents the intended value; use a visible status when missing data needs attention. This guide does not extrapolate every omitted-argument variant from these explicit controls.
Advanced example: combine requirements
To label only Paid records with amount≥100:
=IF(AND(D2>=100;C2="Paid");"Review paid";"Other")
Expected results through the sample table: Review paid, Other, Review paid, Other, Review paid, Other, Review paid, Other. AND supplies one Boolean test assembled from the two requirements.
The labels should describe the actual rule. A paid record below the amount threshold becomes Other, so the false label should not be Unpaid. One false branch can represent more than one way of failing the condition.
Advanced example: use ordered thresholds
For three bands, test the highest threshold first:
=IF(D2>=200;"High";IF(D2>=100;"Review";"OK"))
Expected results down the table: Review, OK, High, OK, Review, OK, Review, OK. A 210 amount reaches High before the lower threshold is considered.
If you reverse the tests to check >=100 first and return Review immediately, 210 receives Review instead. That is a rule-order error rather than an arithmetic error. Boundary controls 99, 100, 199 and 200 should produce OK, Review, Review, High for the intended formula.
These examples describe the selected outcomes. They do not establish a general native short-circuit guarantee for every array expression, external function or error-producing unselected branch.
Advanced example: keep numeric and reporting outputs separate
A presentation formula may return a numeric amount for selected rows and a text label for others:
=IF(C2="Paid";D2;"Pending")
The first two results are the number 120 and the text Pending. Such mixed output can be useful in a report, but downstream calculations need a clear policy for nonnumeric rows. Retain the original amount column rather than replacing it with labels.
If the aim is a Boolean classification, using the comparison directly may be simpler than wrapping it in IF with TRUE and FALSE. NOT and OR can express related rules without unnecessary nesting.
Troubleshooting
Check straight quotation marks around text labels, the separator required by your locale and the exact row references. A formula using the wrong row can return a perfectly valid-looking label for another record.
When nested logic grows, put key conditions in helper columns and test representative cases before combining them. Review all branches, including equality boundaries and unexpected source labels. IF chooses according to the condition you wrote, not the business intent you had in mind.
Cross-program references and verification
Related guides already published for this function: Microsoft Excel | Google Sheets | WPS Spreadsheet | LibreOffice Calc | Apache OpenOffice Calc
These links are separate guides, not evidence that every version or platform handles all edge cases identically.
Evidence level: Full article reviewed against the function-specific Collabora help section. Original data and formulas were retained, with new outputs independently checked. No native execution or borrowed lifecycle claim is asserted.