IF
Supported, behaves as documentedCategory: Logical · Last tested 2026-08-06
Real, executed compatibility results for the IF function across Microsoft Excel, Google Sheets, and LibreOffice Calc — verified by actually running it. Syntax and links to each vendor’s official documentation are below.
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel | Yes | Not yet | n/a |
| Google Sheets | Yes | Not yet | n/a |
| LibreOffice Calc | Yes | Yes (25.8.7.3, 2026-08-06) | Supported, behaves as documented |
LibreOffice version history
We executed the same test cases under each LibreOffice release to show exactly when IF’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 24.2.0.3 | Supported, behaves as documented | 2026-07-19 |
| 24.8.7.2 | Supported, behaves as documented | 2026-07-19 |
| 25.2.0.3 | Supported, behaves as documented | 2026-07-24 |
| 25.8.7.3 | Supported, behaves as documented | 2026-08-06 |
Executed test cases
LibreOffice Calc 25.8.7.3 (tested 2026-08-06)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =IF(5>3,"yes","no") | Condition true returns value_if_true | yes | yes | Matched |
| =IF(1>3,"yes","no") | Condition false returns value_if_false | no | no | Matched |
| =IF(2>1,10,20) | Numeric branch values | 10 | 10 | Matched |
Docs & syntax
- Excel: official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Related how-to recipes
- How to compare two columns row by row
- How to concatenate cells that meet a condition (TEXTJOIN IF)
- How to convert Yes/No (or TRUE/FALSE) to 1 and 0
- How to fill blank cells with the value above
- How to find duplicate values in a column
- How to flag overdue dates
- How to use the IF function
- How to test if a value is between two numbers
- How to check if a cell contains specific text
- How to write an IF with multiple conditions (AND / OR)
- How to write nested IF statements
- How to make a formula return blank instead of zero
- How to truncate text with an ellipsis