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

Order sizes (the video fills C2:C6)
ABC
1OrderUnitsSize
2O-1120Bulk
3O-220Large
4O-37Medium
5O-43Small
6O-545Large
The first true test wins
=IFS(B4>=100, "Bulk", B4>=20, "Large", B4>=5, "Medium", TRUE, "Small")
Returns Medium

7 fails the first two tests and passes the third, so IFS stops there.

Without a catch-all
=IFS(B5>=100, "Bulk", B5>=20, "Large", B5>=5, "Medium")
Returns #N/A

3 units passes none of the tests, and IFS has nothing to return. TRUE, "Small" at the end fixes it.

A boundary value
=IFS(B3>100, "Bulk", B3>20, "Large", B3>5, "Medium", TRUE, "Small")
Returns Medium

Exactly 20 units is Large with >=, but Medium with >. “20 or more” means >=.

Numbers as results
=IFS(B6>=100, 10%, B6>=20, 5%, TRUE, 0)
Returns 0.05

IFS returns numbers as readily as text: 45 units earns the 5% rate. Format the cell as a percentage to show 5%.

Filled down a column
=IFS(B2>=100, "Bulk", B2>=20, "Large", B2>=5, "Medium", TRUE, "Small")
Returns Bulk, Large, Medium, Small, Large in C2:C6

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

No TRUE at the end

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.

Bands in the wrong order

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

> where the task says “or more”

=IFS(B3>100, "Bulk", B3>20, "Large", B3>5, "Medium", TRUE, "Small") calls 20 units Medium. A single boundary row fails the range.

A test without its value

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