
π This article includes 1 downloadable practice file β
In this article
AND returns TRUE when every condition is TRUE. It is almost always used inside IF.
Syntax
=AND(logical1, [logical2], ...)
| Argument | What it means |
|---|---|
logical1β¦ |
Conditions to test (up to 255). |
Examples
Example 1
=AND(B2>=18, B2<=60)
Age within a range.
Example 2
=IF(AND(C2="Paid", D2<=E2), "On time", "Late")
Paid by the due date.
AND in practice
Where you will use it
- Eligibility: marks above 40 AND attendance above 75%
- Approve a claim only if amount is within limit AND bills attached
- Flag invoices that are overdue AND above Rs 1 lakh
Worked example
| Student | Marks | Attendance | Formula | Result |
|---|---|---|---|---|
| Aarav | 78 | 0.82 | =AND(B2>=40,C2>=0.75) | TRUE |
| Kabir | 45 | 0.7 | =AND(B3>=40,C3>=0.75) | FALSE |
| Meera | 38 | 0.91 | =AND(B4>=40,C4>=0.75) | FALSE |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Typing =A2>40 AND B2>75% | Excel has no AND operator; use AND(A2>40,B2>=75%) or (A2>40)*(B2>=75%) |
| Text numbers in the data | AND compares text '45' oddly; convert with VALUE |
Related functions
OR Β· NOT Β· IF
π Part of the free Excel course: Beginner β Expert Β· Try it in the Formula Lab or ask the AI Helper.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
π Practice files for this article
- πPractice workbook: Logic, LET & LAMBDA17 tasks on realistic sales data β type your formula, the Check column turns green when it is right. Answers sheet included.β¬ XLSX Β· 35 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βBuild this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.