IF with AND and OR
Make IF check two or more conditions at once, with AND when all must be true and OR when one is enough.
In this lesson
=IF(AND(test1, test2), "Yes", "No"): Yes only when every test is TRUE.=IF(OR(test1, test2), "Yes", "No"): Yes when at least one test is TRUE, both included.- AND and OR take as many tests as you need, separated by commas.
Try a free lesson first
Delete repeated rows from a merged list, and choose which columns decide what counts as a duplicate.
Confident · 9 min · Free, with no sign-up
Do the free lesson on your computer.
Send yourself the link and open it on a laptop or desktop.
On your computer, go tolearnford.com/go/BV7C
This lesson is in the full Google Sheets course
US$149 once
Tax included. New lessons are added as they're written.
Get the full course, US$14930-day money-back guarantee if you've opened fewer than 10 paid lessons.
- All 215 Google Sheets lessons open today, and every new one as it's written.
- The Roadmap, Skills and all seven paths.
- A cheat sheet for every lesson you finish.
Where it sits in Logic
- IF: make a decision in a cell11 min
- IF with AND and ORThis lesson10 min
- Nested IF vs IFS10 min
- SWITCH9 min
- Hide errors with IFERROR and IFNA11 min
- Pass/fail and grading scales11 min
The steps
11 steps: 4 explanations, 5 Do this, 2 questions, then Your turn.
Try a free lesson first
Delete repeated rows from a merged list, and choose which columns decide what counts as a duplicate.
Confident · 9 min · Free, with no sign-up
Do the free lesson on your computer.
Send yourself the link and open it on a laptop or desktop.
On your computer, go tolearnford.com/go/BV7C