
Test multiple conditions and return the result for the first one that is TRUE.
The Excel IFS function checks multiple conditions and returns the result for the first condition that is TRUE. It is often easier to read than a long nested IF formula because the tests are written as a straight list of condition-and-result pairs.
IFS is useful when a value can fall into more than two categories, such as grading bands, performance tiers, status labels, or range-based messages. Instead of stacking several IF functions inside each other, you can keep the logic flatter and easier to follow.
IFS is helpful when the worksheet needs several ordered conditions instead of just one true/false split. It keeps multi-branch logic flatter and easier to read than a long chain of nested IF functions, especially in scoring, grading, and categorization rules.
Use IFS when one formula needs more than a simple TRUE/FALSE split.
IFS can return text, numbers, dates, blanks, or other formula results depending on the branch that matches first.
=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
IFS is built from pairs. Each logical test is followed by the result to return when that test is TRUE. Microsoft documents support for up to 127 tests, but in practice it is still best to keep the formula readable and ordered carefully.
If no test is TRUE, IFS returns #N/A. That is why many formulas end with TRUE, "Default" as a catch-all final branch.
These functions overlap, but each one fits a slightly different kind of problem.
| Function | Best For | Strength | Watch Out For |
|---|---|---|---|
IFS |
Multiple ordered conditions | Cleaner than long nested IF formulas | Needs careful rule order |
IF |
One decision with two outcomes | Simple and direct | Gets hard to read when deeply nested |
SWITCH |
Exact value mapping | Good for matching known codes or labels | Not as natural for range checks unless you use SWITCH(TRUE,...) |
If your tests depend on ranges like score bands or thresholds, IFS is often a better fit than SWITCH.
The most important rule with IFS is order. Because Excel returns the first TRUE branch, more specific or stricter tests usually need to come first. A score of 95 also meets the test >=80, so if that condition appears before >=90, the formula will stop too early and return the wrong category.
IFS becomes especially helpful when the formula would otherwise require several nested IF functions. A grading formula is a classic example: instead of opening and closing many parentheses, you can read the logic from left to right. That makes the formula easier to review and change later.
It is also a good habit to include a final catch-all branch when the input may fall outside your listed rules. A final pair such as TRUE,"Other" or TRUE,"F" helps keep the result controlled and prevents a surprise #N/A.
This is one of the most common IFS examples.
=IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",TRUE(),"F")
The formula checks the score from highest threshold to lowest. If B2 is 85, the first test fails, the second test is TRUE, and the result is "B".
In cell C2, assign a grade based on the score bands.
IFS can also map fixed codes to readable labels.
=IFS(B2=1,"Low",B2=2,"Med",B2=3,"High")
This works well for short lists, especially when the codes are not sequential enough for CHOOSE or when you want to keep the mapping inside one formula.
In cell C3, map the code to its matching label.
Threshold logic is another good fit for IFS.
=IFS(B2>100,"Error",B2>=0,"OK")
If B2 is above 100, the formula returns "Error". Otherwise, if it is still at least 0, it returns "OK". This is useful for validation ranges and simple alert rules.
In cell C4, return the alert label for the threshold check.
IFS works nicely when the thresholds live in cells instead of being typed into the formula.
=IFS(B2>=G2,"Gold",B2>=H2,"Silver",TRUE(),"Bronze")
This returns "Gold", "Silver", or "Bronze" based on the current target values. Because the benchmarks are stored separately, you can change them without editing the logic itself.
In cell C5, compare the score against the target bands.
IFS is helpful when one value can belong to several possible categories. In this lesson, it handled grades, code labels, ordered thresholds, and tiered target results.
The most important habit is putting the tests in the right order. Excel stops at the first TRUE result, so the sequence of the checks matters.
IFS returns the result for the first TRUE condition.TRUE,... branch when you want a default result.Tell your friends about this post