AND Function - Excel


Overview


The AND function in Excel is a useful tool for checking multiple conditions in a formula. You can test up to 255 unique conditions using this function and it checks if all the specified conditions are met, returning TRUE if they are, and FALSE if any condition fails. This function can also be nested within other functions.

An example of the ADD function in Excel

Example:

=AND(C2>10, D2=“Hello”)

Syntax:

=AND(logical1, logical2, ...)


TRUE Example


In this example, the AND function gives a TRUE result because both conditions are fulfilled. The first condition checks if C2 is greater than 10, and since C2 is 10, this condition is true. The second condition checks if D2 contains the word "Hello" and since it does, this condition is also true. Since both conditions are true, the function returns TRUE.

An example of the ADD function in Excel where we get a TRUE result

FALSE Example


In this example, the AND function gives a FALSE result because both conditions are not fulfilled. The first condition checks if C2 is greater than 10, and since C2 is 5, this condition is not true. The second condition checks if D2 contains the word "Hello" and since it does, this condition is true. Since both conditions are not true, the function returns FALSE.

An example of the ADD function in Excel where we get a FALSE result

Nested Example


In this example, I'll demonstrate how the AND function can be used within another function. We included the AND function in our IF function. So, if the AND function is TRUE, our IF function will show "Yes". However, if the AND function is FALSE, our IF function will show "No".

An example of the ADD function in Excel where we nest it into another function

Interactive GSheet