Note: These instructions will work for all versions of Excel from Excel 95 to Excel 2010.
Related Tutorial: Excel AND Function
The AND function is one of Excel’s Logical Functions. Like most logical functions, the output from the AND function is either the word TRUE or FALSE.
Example AND Function
Note: This example is typed in cell C1. See the image above for help on this example.
=AND (B1>100, B2>100, B3>100)
If all three of these cells (B1,B2, and B3) contain a value greater than 100, the output for the AND function in cell C1 will be TRUE. If any of these cells have numbers less than or equal to 100, the output for the AND function will be FALSE.
Combining the AND Function with the IF Function in Excel
By itself, the AND function has limited usefulness. By combining it with another function, such as the IF function, the AND function can increase the capabilities of your spreadsheet.
Example – Nesting the AND function inside the IF function
Assuming this function is located in cell C1, if all three of these cells (B1,B2, and B3) contains a value greater than 100, the IF function will show the statement Over Budget in cell C1. If any of these three cells contain a number less than or equal to 100, the IF function shows the statement Acceptable in cell C1.
Note: In Excel 2007 / 2010, the AND function can contain a maximum of 255 expressions. For earlier versions of Excel, the limit is 30 expressions.