
What are AND and OR in Excel?
The AND function returns TRUE only when all supplied conditions are TRUE. The OR function returns TRUE when at least one condition is TRUE. These functions help you decide whether employees meet eligibility rules, invoices need attention, or a student qualifies for an award.
AND and OR syntax
=AND(logical1,[logical2],...)
=OR(logical1,[logical2],...)
Both functions return TRUE or FALSE. To display a readable result such as Eligible/Not eligible, place them inside an IF formula.
Example 1: AND checks two student requirements
Suppose B2 contains a score of 78 and C2 an attendance percentage of 92%. A student passes only with marks at least 50 and attendance at least 75%:
=AND(B2>=50,C2>=75%)
Result: TRUE. If attendance falls to 70%, the result becomes FALSE even when marks are high.
Example 2: Make AND return a label using IF
=IF(AND(B2>=50,C2>=75%),"Eligible","Not eligible")
Result: Eligible for 78 marks and 92% attendance. This is clearer than showing TRUE/FALSE in a staff-facing report.
Example 3: OR checks either of two conditions
An invoice should be reviewed if it is overdue or its amount is over ₹50,000. With a due date in A2, an amount in B2, and a payment status in C2:
=IF(OR(AND(A2<TODAY(),C2="Unpaid"),B2>50000),"Review","No review")
The outer OR is TRUE if either an unpaid invoice has passed its due date or its amount exceeds ₹50,000. Check that A2 is a real date.
Example 4: OR with text choices
To mark a sales region as Priority if D2 is either East or West:
=IF(OR(D2="East",D2="West"),"Priority","Standard")
If D2 contains West, the result is Priority. Text comparisons in these formulas are not case-sensitive.
Example 5: Combine AND and OR
Suppose a candidate qualifies if their score in B2 is at least 70 and they have either a certificate marked Yes in C2 or at least two years of experience in D2:
=IF(AND(B2>=70,OR(C2="Yes",D2>=2)),"Qualified","Not qualified")
This shows why parentheses matter: the OR handles alternative credentials, while AND requires the score threshold and one valid credential.
Example 6: Use AND to check a date range
To test whether a date in A2 falls within November 2026:
=AND(A2>=DATE(2026,11,1),A2<DATE(2026,12,1))
Result: TRUE for a valid November date. The exclusive December boundary also works for cells that include a time of day.
AND vs OR comparison
| Condition A | Condition B | AND | OR |
|---|---|---|---|
| TRUE | TRUE | TRUE | TRUE |
| TRUE | FALSE | FALSE | TRUE |
| FALSE | TRUE | FALSE | TRUE |
| FALSE | FALSE | FALSE | FALSE |
Common mistakes
- Using AND where OR is needed: choose whether every rule or any rule must pass.
- Writing one comparison across two cells: use
AND(A2>10,B2>10), not an ambiguous chained comparison. - Incorrect grouping: check parentheses when mixing AND, OR and IF.
- Text dates: make sure Excel can compare date serial values correctly.
- Blank cells: add explicit checks when empty inputs should have their own outcome.
Frequently asked questions
Do AND and OR return numbers?
They normally return the logical values TRUE or FALSE. Use IF if you need text or a calculated amount.
Can AND and OR be used together?
Yes. Nest OR inside AND (or vice versa) for business rules that mix mandatory and alternative requirements.
How many conditions can I supply?
Modern Excel versions support up to 255 logical arguments for each function.
Practice exercise
Create a staff table with Performance Score, Attendance, and Training Complete. Mark a staff member Eligible if performance is at least 80 and either attendance is at least 90% or training is marked Yes.
Related Excel tutorials
Continue learning with Module 3: Excel Functions, IFERROR examples, or explore related conditions and lookup functions across the Excel tutorial library.
Official reference
For exact syntax and version-specific information, consult Microsoft Excel Support.
