Excel function

ANDfunction

Returns TRUE if every condition is true, FALSE if any is false.

All versions
=AND(B2>=80, C2>=80)
A
B
C
D
E
1
2
3
4
5
6
7

Click a cell in the table to change row. Click Ava's row. Reading passes, but Math is 79, so the result is FALSE. Try breaking it on purpose to see the errors.

Result

TRUE

row
B2You can also click a cell in the table

The person (row) whose conditions are checked. Click another row in the table.

Reading minimum

Condition 1: is the Reading (column B) score at least this?

Math minimum

Condition 2: is the Math (column C) score at least this?

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

  1. 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.

  2. Example 2. With IF

    =IF(AND(B2>=80, C2>=80), "Excellent", "")

    Shows "Excellent" when both conditions hold, otherwise blank.

  3. Example 3. Within a range

    =AND(B2>=60, B2<=80)

    Two conditions on the same cell check "between 60 and 80".

Common mistakes

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.