AND checks several conditions and returns TRUE only if all of them are true. If even one is false, the result is FALSE. On its own it just gives TRUE or FALSE, so it is almost always used inside IF, which turns that answer into a result: =IF(AND(B2>=18, C2="Yes"), "Eligible", "Not eligible").
The arguments
Each argument is a condition: a comparison such as B2>=18 or A2<>"", a cell or formula that returns TRUE or FALSE, or a range of such values. You can give up to 255.
- A number is treated as TRUE unless it is zero.
- Text and empty cells inside a range argument are ignored. If every argument is text or empty, AND returns
#VALUE!. - Text typed directly as an argument, other than "TRUE" and "FALSE", returns
#VALUE!. - If any argument is an error, AND returns that error.
AND with ranges
=AND(B2:B6>0) tests every cell in the range at once and returns TRUE only if all five are above zero. In Microsoft 365 and Excel 2021 or later this works as a normal formula. In older versions it needs to be entered as an array formula, with Ctrl+Shift+Enter.
AND does not work row by row
A common surprise is using AND over a column and expecting a column of answers. It always returns a single TRUE or FALSE. To get one result per row, write the test on each row (=AND(B2>=18, C2="Yes") filled down), or multiply the conditions inside a single array formula: =(B2:B9>=18)*(C2:C9="Yes") returns 1 or 0 for each row. AND is also not a short-circuit: it evaluates every argument even after finding a false one, so an error in a later argument still shows.
AND with other logical functions
- OR returns TRUE when any condition is true. Combine them:
=AND(A2="East", OR(B2>1000, C2="Key")). - NOT reverses a result:
=AND(B2>0, NOT(ISBLANK(C2))). - For a range check such as "between 10 and 20",
=AND(B2>=10, B2<=20) is the standard form. Excel doesn't accept 10<=B2<=20.
SUMIFS and COUNTIFS as alternatives
When the goal is to count or total rows that meet several conditions, SUMIFS and COUNTIFS do that directly, without a helper column of ANDs. Use AND when you need a TRUE/FALSE flag per row, or when you are making a decision with IF.
Readability
If a formula strings together more than three or four conditions, put each one in its own helper column or move the thresholds into cells with labels. A formula such as AND(B2>=18, B2<=65, C2="Yes", D2<>"Blocked") is fine. One with ten conditions is a maintenance risk.