The Excel ISLOGICAL function returns TRUE when a cell contains the logical values TRUE or FALSE, and returns FALSE for cells that contain any other value, including empty cells.
Syntax:= ISLOGICAL (value)
The ISLOGICAL function syntax has the following arguments:
- Value (required argument) – This is the value we wish to test as logical or not. Value can be a blank (empty cell), error, logical, text, number, or reference value, or a name referring to any of these, that we want to test.
Example: Let’s look at some Excel ISLOGICAL function examples and explore how to use the ISLOGICAL function as a worksheet function in Microsoft Excel:
Based on the Excel spreadsheet above, the following ISLOGICAL examples would return:
Use the ISLOGICAL function to check if a value is logical. ISLOGICAL will return TRUE when a value is TRUE or FALSE.
For example, =ISERROR(A1) will return TRUE if A1 contains either TRUE or FALSE.
Note that 1 and 0 (zero) are not evaluated as TRUE and FALSE. However, you can use the AND function to evaluate 1 and 0 and TRUE and FALSE.
Normally, value is supplied as a cell address.
ISLOGICAL is part of a group of functions called the IS functions, which are often used to test the result of formulas for errors.