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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Years | Test | Shortlist |
| 2 | Ana | 5 | 80 | Yes |
| 3 | Ben | 2 | 90 | No |
| 4 | Cara | 3 | 75 | Yes |
| 5 | Dev | 6 | 70 | No |
| 6 | Eli | 4 | 88 | Yes |
=AND(B2>=3, C2>=75)Ana has 5 years and scored 80.
=AND(B3>=3, C3>=75)Ben's 90 is not enough on its own: he has only 2 years.
=AND(C5>=70, C5<80)Dev's 70 is at least 70 and under 80. Each limit is its own comparison.
=IF(AND(B4>=3, C4>=75), "Yes", "No")Cara is exactly on both limits, and >= includes them.
=IF(AND(B2>=3, C2>=75), "Yes", "No")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
=AND(B3>=3, C3>=75) shows FALSE. If the task asks for Yes or No, FALSE is a wrong value; wrap it in IF.
=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).
“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.
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.comTry 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.
