What is IFS in Google Sheets?

IFS runs several condition-result pairs in order and returns the result for the first condition that is TRUE. It replaces long nested IF trees for tiered scoring, bonus bands, and SLA buckets where each step tests a comparison.

When to use it

Use IFS when rules are inequalities or compound tests evaluated top to bottom, such as A2>=90 returns A, A2>=80 returns B.

When to skip it

Skip IFS for simple exact code maps. SWITCH or XLOOKUP on a table may read cleaner.

How it works

  1. 1

    List condition1, value1, condition2, value2, and so on in pairs.

  2. 2

    Put the strictest or highest-priority conditions first when ranges overlap.

  3. 3

    End with TRUE, catch-all as last condition to avoid #N/A if desired.

  4. 4

    Keep conditions mutually exclusive when possible to avoid logic surprises.

  5. 5

    Use LET to name repeated subexpressions inside long IFS bodies.

  6. 6

    Test boundary values like exactly 80 after changing thresholds.

Examples in Google Sheets

Letter grades

=IFS(E2>=90, "A", E2>=80, "B", E2>=70, "C", E2>=60, "D", TRUE, "F") assigns grade bands.

Shipping SLA

=IFS(G2<=1, "Next day", G2<=3, "Standard", TRUE, "Delayed") labels fulfillment speed.

Discount tier

=IFS(H2>=10000, 0.15, H2>=5000, 0.1, H2>=1000, 0.05, TRUE, 0) sets discount rate by order size.

Build this without starting from a blank cell

Use a Better Sheets tool for IFS, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Overlapping ranges with wrong order so everyone gets the first band only.
  • No final TRUE catch-all, returning #N/A on edge cases.
  • Comparing text numbers to real numbers in conditions.
  • IFS with too many branches instead of a lookup table.
  • Forgetting IFS stops at first TRUE, skipping later valid rules.

Frequently asked questions

IFS vs nested IF?
IFS is flatter and easier to read for many branches.
IFS vs SWITCH?
IFS allows comparisons like greater than. SWITCH matches exact values.
Why #N/A?
No condition matched and no final TRUE default was provided.
IFS order matters?
Yes. First TRUE wins. Put specific rules before general ones.
IFS with AND inside?
Each condition can be a full expression like AND(A2>0, B2="Yes").
IFS array spill?
Conditions on ranges can spill results down the column.
IFS vs LET?
LET names intermediates. IFS chooses outputs by conditional logic.

Related Tutorials

Watch how IFS works

Browse more tutorials
5 Ways to use IF() Formula to Create Magic in Your Sheets

5 Ways to use IF() Formula to Create Magic in Your Sheets

We're going to create some magic here. Some if magic, sprinkle a little ...
Learn Google Sheet Formulas The Hard Way

Learn Google Sheet Formulas The Hard Way

One weird way to learn more about what Google Sheets can do. https://bet...

Related blog posts

Guides that explain IFS in more depth.

Browse the blog

Related glossary terms

Done reading about IFS?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.