Maintenance Notification: We are upgrading our servers today so you may experience intermediate outages. Thank you for your patience.
Perform logical operations in formulas
MO-211

Perform logical operations by using the OR() function

=IF(OR(B2="Yes", C2>65), "Delicate", "Standard")

A parcel is Delicate when it is marked fragile or is over 65 cm long; otherwise Standard. One true test is enough for OR.

What the MO-211 task asks

OR is the “either” condition. In our MO-211 practice exams it shows up as “Delicate when Fragile is Yes OR the Stem Length is over 65”, often inside a longer rule where the first condition that holds wins.

Like AND, OR returns TRUE or FALSE, so a task that wants words needs IF around it. Read each comparison from the task: “over 65” is >65, and a length of exactly 65 is not over it.

Our grader checks the value in every cell of the target range. It reads the values, not the function, so any formula that produces them earns the points — but one wrong cell fails the whole range.

Worked examples

Type these into a blank sheet to follow along. Every result below is what Excel showed.

Parcels (the video fills D2:D6)
ABCD
1ParcelFragileLengthClass
2P-1No40Standard
3P-2Yes30Delicate
4P-3No70Delicate
5P-4No65Standard
6P-5Yes80Delicate
One test is enough
=OR(B3="Yes", C3>65)
Returns TRUE

P-2 is fragile; its length does not matter.

Neither test true
=OR(B5="Yes", C5>65)
Returns FALSE

P-4 is not fragile, and 65 is not over 65.

One cell, several values
=OR(A2="P-1", A2="P-3")
Returns TRUE

Each value needs its own comparison with the cell.

Inside IF, for words
=IF(OR(B4="Yes", C4>65), "Delicate", "Standard")
Returns Delicate

P-3 is not fragile but is 70 cm long.

Filled down a column
=IF(OR(B2="Yes", C2>65), "Delicate", "Standard")
Returns Standard, Delicate, Delicate, Standard, Delicate in D2:D6

Each row tests its own parcel. This is what the video below builds.

Watch it done in Excel

The last example above, recorded in real Excel on the same grid.

Exam traps

Listing values without repeating the cell

=OR(A4="P-1", "P-3") returns FALSE for P-3 itself: the second argument is only the text P-3, which OR ignores, not a test of A4. Write A4="P-3" in full.

OR where the task means both

“Both must hold” is AND. =IF(OR(B4="Yes", C4>65), …) calls P-3 Delicate though it is not fragile — right for this task, wrong for a both-conditions one.

“Over” written as at least

=IF(OR(B5="Yes", C5>=65), "Delicate", "Standard") calls P-4 Delicate on exactly 65 cm. “Over 65” is >65.

Leaving OR's TRUE or FALSE as the answer

=OR(B2="Yes", C2>65) shows FALSE for P-1. A task that names labels wants the labels, so wrap it in IF.

FAQ

Can OR and AND go in the same formula?

Yes. =IF(AND(OR(B6="Yes", C6>65), C6<100), "Delicate", "Standard") returns Delicate for P-5: fragile, and under 100 cm.

Does OR compare text case-sensitively?

No. =OR(B3="yes", C3>65) returns TRUE.

OR or two COUNTIFS?

OR tests one row and feeds IF. To count the rows that meet either condition, add COUNTIFS together — taking care not to count a row twice.

New to this function?

This page covers what the exam asks. For the full how-to — every argument, more examples and a practice workbook — read our guide on dfwexcel.com.

The OR function, explained — dfwexcel.com

Try it under exam conditions

Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.

No credit card needed.