Syntax
| Parameter | Description |
|---|---|
| value | Parameter of the ISLOGICAL function. |
Examples
Check for boolean
=ISLOGICAL(A1)
Validate checkbox column
=IF(ISLOGICAL(B2), "Valid", "Not a boolean")
Type detection
=IF(ISLOGICAL(A1), "Boolean", IF(ISNUMBER(A1), "Number", IF(ISTEXT(A1), "Text", "Other")))
Common Errors
ISLOGICAL never errors — it always returns TRUE or FALSE.
Tips
ISLOGICAL(1) returns FALSE. Only the actual boolean values TRUE and FALSE return TRUE. The number 1 is a number, not a logical.
ISLOGICAL("TRUE") returns FALSE. The text string "TRUE" is text, not a boolean. Only unquoted TRUE/FALSE values are logical.
When building type detectors, check ISLOGICAL before ISNUMBER, because in some apps TRUE/FALSE are also considered numeric (1/0).
Try ISLOGICAL in Viztab
Import your data and use ISLOGICAL with 370+ other formulas. No signup required.
Open Viztab