What is the AND function?
=AND(logical1, [logical2], ...)AND returns TRUE when every condition is true and FALSE when any is false. Use it to check several conditions at once, such as both Reading and Math being 80 or more.
It is usually placed in the condition of IF: =IF(AND(…), "Pass", "Retake") splits results by several conditions.
Arguments
- logical1
- The first condition that evaluates to TRUE or FALSE, for example B2>=80.
- logical2, ...
- Optional. Up to 255 conditions.
AND examples
Example 1. Both subjects 80 or more
=AND(B2>=80, C2>=80)Liam has Reading 85 and Math 92, both 80 or more, so TRUE. Ava has Math 79, so FALSE. This is how the sheet first opens.
Example 2. With IF
=IF(AND(B2>=80, C2>=80), "Excellent", "")Shows "Excellent" when both conditions hold, otherwise blank.
Example 3. Within a range
=AND(B2>=60, B2<=80)Two conditions on the same cell check "between 60 and 80".
Common mistakes
Chaining comparisons
=AND(60<=B2<=80) does not work as expected. Split it: =AND(B2>=60, B2<=80).
Mixing it up with OR
AND is TRUE only when all conditions are true. If one is enough, use OR.
Needing words instead of TRUE/FALSE
AND returns TRUE or FALSE. Wrap it in IF to show words such as "Pass".
FAQ
- How many conditions?
- Up to 255.
- Can I combine AND and OR?
- Yes, for example =AND(B2>=60, OR(C2>=90, D2>=90)).
- How is it different from COUNTIFS?
- AND tells you TRUE/FALSE for one row; COUNTIFS counts how many rows meet all conditions.