AND function

Prev Next

This article describes how to use the AND function, the syntax around it, and some examples.

Description

Tests to see if all conditions are met.

Syntax for AND function

logical1 AND logical2...

Return type

Boolean (TRUE or FALSE)

Example

Case

Returns

Return Type

x > 1000 AND y > 1000

TRUE if both x and y are above 1000, FALSE otherwise

boolean

TRUE AND TRUE

TRUE

boolean

TRUE AND FALSE

FALSE

boolean

True AND Blank

Blank

boolean

Blank AND FALSE

Blank

boolean

Blank AND TRUE

Blank

boolean

Example in a Complete Formula

Here’s how you would use AND in a complete formula:

IF(Country = Country."France" AND Revenue > 1000, "Wow this is crazy good!")

For more information on how the IF function works, see IF.

Excel equivalent: AND(logical1, [logical2], ...)

See also: OR, NOT, TRUE, FALSE