
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.
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 F1, grade B2 as "A", "B", "C", or "F" using IFS.
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 F2, map B2 so 1 returns "Low", 2 returns "Med", and 3 returns "High".
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 F3, return "Error" if B2 is above 100, otherwise return "OK" if B2 is at least 0.
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 F4, return "Gold" if B2 meets G2, otherwise return "Silver" if B2 meets H2.
IFS returns the result for the first TRUE condition.TRUE,... branch when you want a default result.Tell your friends about this post