Advanced Excel Logical - AND Function



Description

The AND function returns TRUE if all its arguments evaluate to TRUE and returns FALSE if one or more arguments evaluate to FALSE.

One common use of the AND Function is to expand the usefulness of other functions that perform logical tests. For example, the IF Function performs a logical test and then returns one value if the test evaluates to TRUE and another value if the test evaluates to FALSE. By using the AND Function as the logical_test argument of the IF Function, you can test many different conditions instead of just one.

Syntax

AND (logical1, [logical2] ...) 

Arguments

Argument Description Required/ Optional
logical1 The first condition that you want to test that can evaluate to either TRUE or FALSE. Required
logical2, ... Additional conditions that you want to test that can evaluate to either TRUE or FALSE, up to a maximum of 255 conditions. Optional

Notes

  • The arguments must evaluate to logical values, such as TRUE or FALSE, or the arguments must be arrays or references that contain logical values.

  • If an array or reference argument contains text or empty cells, those values are ignored.

  • If the specified range contains no logical values, the AND Function returns the #VALUE! error value.

Applicability

Excel 2007, Excel 2010, Excel 2013, Excel 2016

Example

AND Function
advanced_excel_logical_functions.htm
Advertisements