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.

Confident · 10 min · 11 steps

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

Remove duplicates

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/2R5R

This lesson is in the full Excel course

US$149 once

Tax included. New lessons are added as they're written.

Get the full course, US$149

30-day money-back guarantee if you've opened fewer than 10 paid lessons.

  • All 217 Excel lessons open today, and every new one as it's written.
  • The Roadmap, Skills and all eight paths.
  • A cheat sheet for every lesson you finish.

Already have the course? Sign in

Skill
Logic
Stage
Confident
Path
Excel test prep

Where it sits in Logic 7 lessons

And 1 more, up to Flag overdue items. See the whole skill

The steps

11 steps: 4 explanations, 5 Do this, 2 questions, then Your turn.

Try a free lesson first

Remove duplicates

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/2R5R