ISLOGICAL function
Returns TRUE if a value is a logical value (TRUE or FALSE), and FALSE for numbers, text, blanks and errors.
Available in All versions of Excel, including Microsoft 365 and Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
ISLOGICAL(value)| Argument | What it means | |
|---|---|---|
value | Required | The value or cell to test. |
Returns: TRUE if value is TRUE or FALSE; otherwise FALSE.
How ISLOGICAL works
ISLOGICAL checks whether a cell contains a genuine Boolean value — the TRUE and FALSE that Excel produces from comparisons, checkboxes and functions such as AND. It returns FALSE for anything else, including the words "Yes" or "No", the numbers 1 and 0, and the text TRUE when it was imported as text.
That distinction matters for settings tables and imported data. A switch cell that someone typed as Yes will silently fail in a formula like =IF(B2, ...), which needs a real logical value, and a CSV export often brings TRUE/FALSE in as text. ISLOGICAL lets you validate such cells, for example with a data-validation rule or a warning next to the input.
Examples
1A real logical value
| A | B | C | |
|---|---|---|---|
| 1 | Setting | Value | |
| 2 | Include VAT | TRUE | TRUE |
| 3 | Send reminder | Yes |
Result: TRUE
B2 holds the logical value TRUE (as a checkbox or a typed TRUE would), so ISLOGICAL returns TRUE.
2The word Yes is not a logical value
| A | B | C | |
|---|---|---|---|
| 1 | Setting | Value | |
| 2 | Include VAT | TRUE | |
| 3 | Send reminder | Yes | Use TRUE or FALSE |
Result: Use TRUE or FALSE
B3 contains the text Yes. ISLOGICAL returns FALSE, so the warning appears and the settings table can be fixed before formulas depend on it.
Tips
- To convert imported text
"TRUE"/"FALSE"into real logical values, use=B2="TRUE". - Data validation with the custom rule
=ISLOGICAL(B2)stops people typing anything other than TRUE or FALSE.
Google Sheets
ISLOGICAL also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
ISLOGICAL in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | JE.LOGHODN |
| Danish | ER.LOGISK |
| Dutch | ISLOGISCH |
| Finnish | ONTOTUUS |
| French | ESTLOGIQUE |
| German | ISTLOG |
| Hungarian | LOGIKAI |
| Italian | VAL.LOGICO |
| Norwegian (Bokmål) | ERLOGISK |
| Polish | CZY.LOGICZNA |
| Portuguese (Brazil) | ÉLÓGICO |
| Portuguese (Portugal) | É.LÓGICO |
| Russian | ЕЛОГИЧ |
| Spanish | ESLOGICO |
| Swedish | ÄRLOGISK |
| Turkish | EMANTIKSALSA |