Excel & Google Sheets Function
AND, OR & NOT function in Excel (with interactive examples)
AND, OR, and NOT combine multiple logical tests inside IF formulas and Conditional Formatting rules.
Syntax
=AND(test1, test2, ...) | =OR(test1, test2, ...) | =NOT(test)Live Interactive Exercise — Try it nowNo login required
Interactive practice grid (AND, OR & NOT reference)
Try our live spreadsheet engine: total Q1 sales in cell B5 using =SUM(B2:B4).
B5fx
| A | B | |
|---|---|---|
| 1 | Month | Sales |
| 2 | Jan | $1,100.00 |
| 3 | Feb | $1,350.00 |
| 4 | Mar | $1,550.00 |
| 5 | Total | type here |
Insert:
Arguments explained
| test1 | Required | First condition (e.g. B2>=50). |
| test2 | Optional | Second condition (e.g. C2="Active"). |
Common errors & fixes
Writing IF(B2>10 AND C2>10): AND/OR are functions, not operators — write =IF(AND(B2>10, C2>10), "Yes", "No").
Excel vs Google Sheets
Identical in Excel and Google Sheets.
Practise AND, OR & NOT in a full 4-minute lesson
Every lesson is free to study — build real speed with instant feedback.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.