COUNTIF
Supported, behaves as documentedCategory: Statistical · Last tested 2026-08-06
Real, executed compatibility results for the COUNTIF 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 COUNTIF’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 |
|---|---|---|---|---|
| =COUNTIF(A1:A5,">20") | Count of cells greater than 20 | 3 | 3 | Matched |
| =COUNTIF(A1:A3,"a*") | Wildcard text criteria | 2 | 2 | Matched |
| =COUNTIF(A1:A3,"APPLE") | Text comparisons in COUNTIF are case-insensitive | 2 | 2 Both 'apple' and 'Apple' match the literal 'APPLE' criteria regardless of case |
Matched |
| =COUNTIF(A1:A5,">"&C1) | Dynamic criteria built by concatenating an operator with a cell reference | 3 | 3 Criteria becomes the text ">25"; matches 30,40,50 |
Matched |
| =COUNTIF(A1:A3,">100") | No matches -> 0 | 0 | 0 | Matched |
Docs & syntax
- Excel: official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Related how-to recipes
- How to check if a value exists in a list
- How to count cells that contain specific text
- How to count cells greater than a value
- How to count cells above the average
- How to count cells not equal to a value
- How to count checked checkboxes
- How to count how many times a value appears in a range
- How to COUNTIF across multiple columns
- How to find duplicate values in a column
- How to find the most common text value (mode for text)
- How to find values that appear in both of two lists
- How to use the COUNTIF function
- How to rank values without ties
- How to get a running count of occurrences