Information function

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)
ArgumentWhat it means
valueRequiredThe 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

C2fx=ISLOGICAL(B2)
ABC
1SettingValue
2Include VATTRUETRUE
3Send reminderYes

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

C3fx=IF(ISLOGICAL(B3), "OK", "Use TRUE or FALSE")
ABC
1SettingValue
2Include VATTRUE
3Send reminderYesUse 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.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

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.

LanguageFunction name
CzechJE.LOGHODN
DanishER.LOGISK
DutchISLOGISCH
FinnishONTOTUUS
FrenchESTLOGIQUE
GermanISTLOG
HungarianLOGIKAI
ItalianVAL.LOGICO
Norwegian (Bokmål)ERLOGISK
PolishCZY.LOGICZNA
Portuguese (Brazil)ÉLÓGICO
Portuguese (Portugal)É.LÓGICO
RussianЕЛОГИЧ
SpanishESLOGICO
SwedishÄRLOGISK
TurkishEMANTIKSALSA