WorkbookLogic
FunctionLogicalintermediateIFSIF

IFS Function

By WorkbookLogic

The Excel IFS function evaluates ordered logical tests and returns the value paired with the first TRUE result.

ExcelLast reviewed Sep 11, 2026
ifs-function-v1.0.0.xlsx
Excel IFS Function
IFS returns the value paired with the first TRUE condition in an ordered list.
Source cases, editableIFS examples
ScenarioScoreContextData noteExpected bandExampleFormula syntaxResult
High score92Quarterly reviewAbove A thresholdAHigh score=IFS(B12>=$B$20,"A",B12>=$B$21,"B",B12>=$B$22,"C",B12>=$B$23,"D",TRUE,"F")A
Middle score82Quarterly reviewAbove B thresholdBMiddle score=IFS(B13>=$B$20,"A",B13>=$B$21,"B",B13>=$B$22,"C",B13>=$B$23,"D",TRUE,"F")B
Boundary score70Quarterly reviewExactly C thresholdCBoundary score=IFS(B14>=$B$20,"A",B14>=$B$21,"B",B14>=$B$22,"C",B14>=$B$23,"D",TRUE,"F")C
Lower score64Quarterly reviewAbove D thresholdDLower score=IFS(B15>=$B$20,"A",B15>=$B$21,"B",B15>=$B$22,"C",B15>=$B$23,"D",TRUE,"F")D
Below threshold48Quarterly reviewUses TRUE fallbackFBelow threshold=IFS(B16>=$B$20,"A",B16>=$B$21,"B",B16>=$B$22,"C",B16>=$B$23,"D",TRUE,"F")F
Grade thresholds, editableHow IFS behaves
BandMinimumIFS tests conditions from left to right and stops at the first TRUE result.
A90Descending thresholds prevent a high score from being captured by a lower band first.
B80A final TRUE condition supplies an explicit catch-all for values below every threshold.
C70
D60
Reliability checks
A score of 92 returns grade AOK
The exact 70 boundary returns grade COK

Overview

The Excel IFS function replaces many nested IF formulas with an ordered list of test-result pairs. The first test that evaluates to TRUE determines the returned value.

Quick reference

Syntax: =IFS(logical_test1, value_if_true1, [logical_test2], [value_if_true2], ...)

Returns: The value associated with the first logical test that evaluates to TRUE. (any)

Arguments:

  • logical_test1 (required) — The first expression evaluated as TRUE or FALSE.
  • value_if_true1 (required) — The result returned when logical_test1 is TRUE.
  • logical_test2 (optional) — An additional logical expression; more test and result pairs may follow.
  • value_if_true2 (optional) — The result returned when logical_test2 is the first TRUE condition.

Additional logical-test and result pairs are optional. Tests run from left to right, and the value paired with the first TRUE test is returned.

Common uses

  • Assign grades, ratings, tiers, or risk bands.
  • Map numeric thresholds to descriptive labels.
  • Return messages for several distinct business conditions.
  • Replace a short chain of nested IF functions.

Calculations

IFS evaluates tests in the order written and returns the value paired with the first TRUE result. When conditions overlap, ordering controls the classification. A descending grade scale should therefore test the highest threshold first.

IFS has no dedicated default argument. Add TRUE as the final test and pair it with a catch-all result. Without a TRUE test, a value that satisfies no condition returns #N/A.

IFS supports up to 127 test-result pairs. It can be easier to read than deeply nested IF, but long rule sets are often better maintained in a lookup table.

Function behavior

Situation

Behavior

Several tests are TRUE

Returns the value paired with the first TRUE test.

No test is TRUE

Returns #N/A unless a final TRUE fallback is included.

Overlapping thresholds

Order determines the result.

Exact boundary

Controlled by operators such as >= versus >.

Many conditions

Supports up to 127 test-result pairs.

Complex branch calculations

Keep formulas simple; large branching logic can be hard to audit and may evaluate more work than expected.

Common errors

Putting the broadest condition first

What happens:
It becomes TRUE before more specific conditions are reached, so later branches never determine the result.

Better approach:
Order overlapping tests from most restrictive to least restrictive.

Omitting a catch-all

What happens:
Unrecognized or out-of-range inputs return #N/A.

Better approach:
Add TRUE, default_value as the final pair when a default is appropriate.

Building an unmaintainable rule chain

What happens:
Thresholds and labels are repeated inside a long formula that is difficult to update.

Better approach:
Move stable banding rules to a lookup table when the list grows.

Example

Example 1 — Grade a High Score

=IFS(B12>=$B$20,"A",B12>=$B$21,"B",B12>=$B$22,"C",B12>=$B$23,"D",TRUE,"F")

A score of 92 passes the first threshold and returns A.

Example 2 — Return the First Passing Band

=IFS(B13>=$B$20,"A",B13>=$B$21,"B",B13>=$B$22,"C",B13>=$B$23,"D",TRUE,"F")

A score of 82 fails the A test, passes the B test, and returns B.

Example 3 — Handle an Exact Boundary

=IFS(B14>=$B$20,"A",B14>=$B$21,"B",B14>=$B$22,"C",B14>=$B$23,"D",TRUE,"F")

The boundary score 70 enters the C band because the comparison uses >=.

Example workbook

The workbook contains an IFS Example sheet with five editable scores and visible grade thresholds. Live formulas test thresholds from highest to lowest, and two checks confirm the A result for 92 and the C boundary at 70. A Notes sheet explains first-TRUE behavior and the TRUE catch-all.

Key takeaway

Order overlapping tests deliberately because the first TRUE result wins, and add a final TRUE pair when the formula needs a default.