AND

The AND function returns the boolean value TRUE if all arguments are true, and the boolean value FALSE otherwise.

AND(test-expression, test-expression…)

test-expression: An expression. test-expression can contain anything as long as the expression can be evaluated as a boolean value. If the expression evaluates to a number, 0 is considered to be FALSE, and any other number is considered to be TRUE.

test-expression…: Optionally include one or more additional expressions.

Notes

Examples

=AND(TRUE,TRUE) returns TRUE because both arguments are true.

=AND(1, 0, 1, 1) returns FALSE because one of the arguments is a numeric 0, which is interpreted as FALSE.

=AND(A5>60, A5<=100) returns TRUE if cell A5 contains a number in the collection 61 to 100, otherwise FALSE.

The following two IF functions will return the same value:

=IF(A5>60, IF(A5<=100, TRUE, FALSE), FALSE) returns TRUE, assuming cell A5 contains 75, or any other value greater than 60 and less than or equal to 100.

=IF(AND(A5>60, A5<=100), TRUE, FALSE) also returns TRUE.

See also
IF
NOT
OR