Skip to content
getgriddy.ai/blog/how-to-use-ifs-in-excel
Excel

How to Use IFS in Excel

IFS checks multiple conditions in order and returns the first matching result. Here's the syntax, a realistic status example, and the mistakes that cause the wrong label to appear.

·5 min read

Reviewed by Griddy

Updated for current Excel and Google Sheets workflows, with examples chosen to map back to real spreadsheet tasks rather than abstract formula syntax.

IFS is Excel's cleaner alternative to stacking nested IF statements when you need multiple possible outcomes. Use it when one condition is not enough and the formula needs to test several rules in sequence.

That makes it useful for status labels, grading bands, review flags, approval logic, and any other sheet where one row can fall into several categories.

The syntax

fx
=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
  • logical_test1 — the first condition Excel should check
  • value_if_true1 — what to return if that condition is true
  • Add more test/result pairs for additional branches

IFS returns the value from the first condition that evaluates to true.

Basic example

If D2 contains days until a deadline, you could classify the row like this:

fx
=IFS(D2<0, "Late", D2=0, "Due today", D2<=3, "Due soon", D2>3, "On track")

Excel checks each condition from left to right and stops at the first match.

That is why order matters.

Step-by-step project status example

Say C2 contains percent complete and D2 contains days until due date.

You want to label the work item as:

  • Blocked if percent complete is 0 and the due date has passed
  • At risk if the due date is within 3 days and progress is under 80%
  • On track if progress is at least 80%
  • In progress for everything else

One way to write that is:

fx
=IFS(AND(C2=0,D2<0), "Blocked", AND(D2<=3,C2<0.8), "At risk", C2>=0.8, "On track", TRUE, "In progress")

Step 1. Put the highest-priority condition first.

Step 2. Put more general conditions later.

Step 3. Use TRUE as the final catch-all when you need a default result.

That pattern works well in a project tracker template, OKR tracker, or any execution sheet that needs consistent labels.

IFS vs nested IF

Nested IF works, but it gets hard to read fast:

fx
=IF(D2<0, "Late", IF(D2=0, "Due today", IF(D2<=3, "Due soon", "On track")))

IFS expresses the same branching logic more directly:

fx
=IFS(D2<0, "Late", D2=0, "Due today", D2<=3, "Due soon", TRUE, "On track")

The main advantage is readability, especially once the formula grows beyond two branches.

Common mistakes with IFS

MistakeWhat happensFix
Putting broad logic firstSpecific cases never fireOrder the most restrictive or highest-priority tests first
Forgetting a fallbackExcel returns #N/A when nothing matchesEnd with TRUE, "Default" if you need a catch-all
Mixing percent values and whole numbersLabels are wrongBe consistent: 0.8 means 80% when the cell stores a true percentage
Using IFS for only two outcomesFormula is longer than neededUse plain IF when there are only two branches

WATCH OUT

IFS does not keep checking once it finds a true condition. If an early test is too broad, the rest of the formula becomes irrelevant.

When to use IFS

IFS is strongest when the sheet needs more than a yes/no answer. Common uses:

  • turning dates into urgency labels
  • assigning score bands or performance tiers
  • mapping project health into status text
  • classifying rows before a dashboard or filtered view

If the workbook only needs one binary outcome, standard IF is usually better.

The Griddy way

IFS formulas often break because the condition order is wrong, the fallback is missing, or the logic mixes text, numbers, and percentages in inconsistent ways.

"Label each task as Blocked, At risk, On track, or In progress based on percent complete and days until due date"

Griddy can write the IFS formula in the right order and fit it to the actual columns in your sheet.

Skip the manual work

Describe it. Griddy does it.

Instead of writing this formula yourself, just tell Griddy what you need in plain English. Works in Excel and Google Sheets.

Use this on real templates

Apply branching logic to status-heavy trackers

IFS is useful when project and operations sheets need clean labels for urgency, health, or workflow status based on multiple conditions.

Project Management