Perform logical operations by using the IFS() function
=IFS(B2>=100, "Bulk", B2>=20, "Large", B2>=5, "Medium", TRUE, "Small")Test the bands from the top down; the first test that is true decides the label. TRUE at the end catches everything else.
What the MO-211 task asks
IFS is the tidy answer to a banding task. In our MO-211 practice exams it reads like “band each patient by Sessions: 12 or more is Full course, 6 or more is Part course, anything else is Early stage”, or “the first condition that holds wins”. Several bands in order, and a fallback, is IFS.
The fallback is the part people miss. IFS has no else argument: “anything else” or “otherwise” is a last test that is always true, written TRUE, followed by its label.
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 | |
|---|---|---|---|
| 1 | Order | Units | Size |
| 2 | O-1 | 120 | Bulk |
| 3 | O-2 | 20 | Large |
| 4 | O-3 | 7 | Medium |
| 5 | O-4 | 3 | Small |
| 6 | O-5 | 45 | Large |
=IFS(B4>=100, "Bulk", B4>=20, "Large", B4>=5, "Medium", TRUE, "Small")7 fails the first two tests and passes the third, so IFS stops there.
=IFS(B5>=100, "Bulk", B5>=20, "Large", B5>=5, "Medium")3 units passes none of the tests, and IFS has nothing to return. TRUE, "Small" at the end fixes it.
=IFS(B3>100, "Bulk", B3>20, "Large", B3>5, "Medium", TRUE, "Small")Exactly 20 units is Large with >=, but Medium with >. “20 or more” means >=.
=IFS(B6>=100, 10%, B6>=20, 5%, TRUE, 0)IFS returns numbers as readily as text: 45 units earns the 5% rate. Format the cell as a percentage to show 5%.
=IFS(B2>=100, "Bulk", B2>=20, "Large", B2>=5, "Medium", TRUE, "Small")One formula, filled down, with TRUE catching the 3-unit order. 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
Without the catch-all, every row that fits no band shows #N/A. =IFS(B5>=100, "Bulk", B5>=20, "Large", B5>=5, "Medium") returns #N/A for 3 units.
=IFS(B2>=5, "Medium", B2>=20, "Large", B2>=100, "Bulk", TRUE, "Small") labels 120 units Medium, because 120 is also at least 5. Put the strictest test first.
=IFS(B3>100, "Bulk", B3>20, "Large", B3>5, "Medium", TRUE, "Small") calls 20 units Medium. A single boundary row fails the range.
IFS takes pairs: a test, then what to return. Leave a value out — =IFS(B2>=100, "Bulk", B2>=20) — and Excel will not accept the formula at all.
FAQ
Does IFS have an else?
Not as an argument. A last test of TRUE is always true, so =IFS(…, TRUE, "Small") acts as the else.
IFS or nested IF?
The same results either way; our grader reads the values. IFS keeps every band at one level, so it is easier to check before you fill it down.
Can IFS compare text?
Yes. =IFS(A2="O-1", "First", TRUE, "Later") returns First. For a list of exact text cases, SWITCH is shorter.
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 IFS 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.
