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 AND() function

=IF(AND(B2>=3, C2>=75), "Yes", "No")

Shortlist an applicant only when they have at least 3 years and a test score of at least 75. AND decides; IF turns its TRUE or FALSE into the words the task wants.

What the MO-211 task asks

AND turns up inside a label task with two conditions: “show Discharge review when Sessions is at least 12 and Pain Score is 2 or less (both must be true); otherwise show Continue”. “Both must be true” is AND, and the labels mean it sits inside IF.

On its own AND returns TRUE or FALSE. A task that wants Yes and No, or any other words, needs the IF around it, with each comparison written from the task's own words: “at least” is >=, “2 or less” is <=.

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.

Applicants (the video fills D2:D6)
ABCD
1NameYearsTestShortlist
2Ana580Yes
3Ben290No
4Cara375Yes
5Dev670No
6Eli488Yes
Both tests true
=AND(B2>=3, C2>=75)
Returns TRUE

Ana has 5 years and scored 80.

One test false
=AND(B3>=3, C3>=75)
Returns FALSE

Ben's 90 is not enough on its own: he has only 2 years.

A range between two limits
=AND(C5>=70, C5<80)
Returns TRUE

Dev's 70 is at least 70 and under 80. Each limit is its own comparison.

Inside IF, for words
=IF(AND(B4>=3, C4>=75), "Yes", "No")
Returns Yes

Cara is exactly on both limits, and >= includes them.

Filled down a column
=IF(AND(B2>=3, C2>=75), "Yes", "No")
Returns Yes, No, Yes, No, Yes in D2:D6

Each row tests its own years and score. 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

Leaving AND's TRUE or FALSE as the answer

=AND(B3>=3, C3>=75) shows FALSE. If the task asks for Yes or No, FALSE is a wrong value; wrap it in IF.

A between test written as one comparison

=AND(70<=C5<80) returns FALSE for Dev's 70. Excel works out 70<=C5 first, gets TRUE, then compares TRUE with 80. Write the two limits separately: =AND(C5>=70, C5<80).

AND where the task means either

“Years of 5 or more, or a score of 90 or more” is OR. =AND(B3>=5, C3>=90) returns FALSE for Ben, who meets the score half.

Boundaries

Cara sits exactly on both limits. With > instead of >=, =IF(AND(B4>3, C4>75), "Yes", "No") returns No, and the range fails on her row.

FAQ

How many conditions can AND take?

As many as the task needs, separated by commas: =AND(B2>=3, C2>=75, A2<>"Ben") returns TRUE.

AND or COUNTIFS?

AND tests one row at a time and feeds IF. COUNTIFS counts how many rows meet every condition at once.

Does AND compare text case-sensitively?

No. =AND(A2="ana", B2>=3) returns TRUE.

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 AND 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.