AND Function

Returns TRUE only when every condition is TRUE.

Category

Logical

Available in

All versions, Microsoft 365

Returns

TRUE or FALSE

Taught hands-on in Level 2: Essential Formulas & Everyday Logic - Logical Functions module

Overview

AND checks two or more conditions and returns TRUE only if all of them pass. One failure is enough to make it FALSE.

On its own it gives TRUE/FALSE; inside IF it lets one decision depend on several rules at once.

Syntax

=AND(logical1, [logical2], …)

Arguments

ArgumentRequired?What it does
logical1YesThe first condition to test.
logical2, …OptionalUp to 255 more conditions.

Examples

Example 1 — Two rules for a bonus

A rep qualifies with sales of 500+ and a customer rating of at least 4.

D2fx=AND(B2>=500, C2>=4)
ABCD
1RepSalesRatingQualifies
2Ana6204.5TRUE
3Ben4804.8FALSE
4Cara5003.9FALSE
5Dev7104.2TRUE
=AND(B2>=500, C2>=4) Explain

Ben has the rating but not the sales; Cara has the sales but not the rating — both FALSE.

Example 2 — AND inside IF

Turn TRUE/FALSE into a friendlier label.

=IF(AND(B2>=500, C2>=4), "Bonus", "") Explain

Example 3 — A value between two limits

Check an order quantity is between 10 and 100.

=AND(B2>=10, B2<=100) Explain
Excel can't read 10<=B2<=100 the way you'd write it on paper — split it into two tests inside AND.

Common mistakes

  • Using AND across a spilled range. =AND(B2:B5>=500) returns one answer for the whole range, not one per row. Use MAP or write the comparison per row.
  • #VALUE! errors. None of the arguments could be read as TRUE/FALSE — for example, they're all text.

Notes

  • Blank cells in a range argument are ignored.
  • Related functions: OR, NOT, XOR, IF, IFS.
Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.