The ISLOGICAL function takes one argument, value, which can be a cell reference, a formula, or a hardcoded value. When value is TRUE or FALSE, the ISLOGICAL function will return TRUE. If value is any other value, ISLOGICAL will return FALSE.

Examples

The ISLOGICAL function returns TRUE if value is TRUE or FALSE: If value is a formula, ISLOGICAL checks the result of the formula: Note that 1 and 0 (zero) are not evaluated as TRUE and FALSE.

Count logicals

To count cells in a range that contain logicals, you can use the SUMPRODUCT function like this: The double negative coerces the TRUE and FALSE results from ISLOGICAL into 1s and 0s and SUMPRODUCT sums the result.

Notes

Only the logical values TRUE and FALSE return TRUE

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.