Excel function

ISLOGICALfunction

Checks whether a value is a logical value (TRUE or FALSE).

All versions
=ISLOGICAL(A5)
A
B
C
1
2
3
4
5
6
7
8
9
10

Click a cell in the table to change value. Only TRUE in A5 is a logical value. Try breaking it on purpose to see the errors.

Result

TRUE

value
A5You can also click a cell in the table

The cell to test. Click another value in column A.

What is the ISLOGICAL function?

=ISLOGICAL(value)

ISLOGICAL returns TRUE if a value is a logical value (TRUE or FALSE). It is most often used inside IF to treat values differently by kind.

Column A of the sheet mixes text, numbers, a blank, a logical value, errors and text that looks like a number; column B says what each is. Column C shows the same formula copied down.

ISLOGICAL confirms that a column linked to check boxes, or a "done" column collected from other sheets, really holds TRUE/FALSE. The text "TRUE" or the number 1 can look the same but are not logical values, and COUNTIF(range, TRUE) may not count them.

Arguments

value
The value or cell to test.

ISLOGICAL examples

  1. Example 1. Check for a logical value

    =ISLOGICAL(A5)

    TRUE, so TRUE.

  2. Example 2. The text "TRUE"

    =ISLOGICAL("TRUE")

    Text in quotes, so FALSE.

  3. Example 3. Result for each kind of value

    =ISLOGICAL(A2)

    Only the cell with the logical value TRUE is TRUE.

    Value in column A=ISLOGICAL(A2)
    AppleFALSE
    120FALSE
    (blank)FALSE
    TRUETRUE
    #N/AFALSE
    #DIV/0!FALSE
    "120" (text)FALSE

Common mistakes

FAQ

What about comparisons?
=ISLOGICAL(A3>100) is TRUE because a comparison returns a logical value.
Where is it used?
To check that an input came in as TRUE/FALSE.
How do I turn the text "TRUE" into a logical value?
Compare it: =A2="TRUE" returns a real TRUE or FALSE.