TYPE
Quirk foundCategory: Information · Last tested 2026-07-04
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel | Yes | Not yet | n/a |
| Google Sheets | Yes | Not yet | n/a |
| LibreOffice Calc | Yes | Yes (24.2.7.2, 2026-07-04) | Quirk found |
Discovered quirks
- =TYPE(TRUE) on LibreOffice Calc returned 1, but the documented/expected result is 4. MISMATCH vs expected: expected 4, got 1
- =TYPE(A1:A3) on LibreOffice Calc returned 1, but the documented/expected result is 64. MISMATCH vs expected: expected 64, got 1
Executed test cases
LibreOffice Calc 24.2.7.2 (tested 2026-07-04)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =TYPE(A1) | A number -> code 1 | 1 | 1 | Matched |
| =TYPE(A1) | Text -> code 2 | 2 | 2 | Matched |
| =TYPE(TRUE) | A logical/boolean value -> code 4 | 1 | 4 | Mismatch |
| =TYPE(1/0) | An error value -> code 16. TYPE classifies the error's TYPE rather than propagating the error itself, matching ISERROR-style special-casing | 16 | 16 Full 5-code table (1/2/4/16/64) confirmed via https://support.microsoft.com/en-us/office/type-function-45b4e688-4bc3-48b3-a105-ffa892995899 |
Matched |
| =TYPE(A1:A3) | A multi-cell array/range reference -> code 64 | 1 | 64 | Mismatch |
Docs & syntax
- Excel: official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation