Spreadsheet Practice

Why does IFS return #N/A when no condition is met?

Formula (Excel and Google Sheets)

=IFS(B2<0,"Overdue",B2<=1,"Urgent",B2<=7,"This week",TRUE,"Later")

IFS has nothing to return when every test is FALSE. End it with TRUE and a default: =IFS(B2<0,"Overdue",B2<=1,"Urgent",B2<=7,"This week",TRUE,"Later").

Result on the example
one result per row in C2, filled down to C7
Works in
Excel 2019 and later, including Microsoft 365
Google Sheets
Same formula

See it work

The formula is already in C2, filled down to C7. Change any input and the result updates, or edit the formula to experiment.

How it works

IFS returns the result for the first test that is TRUE. When none is, it has nothing to return and gives #N/A, which is what happens to tasks more than 7 days out without the last pair. TRUE as the final test is always TRUE, so it works as the "else" for everything left.

=IFS(B2<0,"Overdue",B2<=1,"Urgent",B2<=7,"This week",TRUE,"Later")

Result"Urgent"

  1. B20

    The value in B2.

  2. B2<0FALSE

    The < operator tests less than.

  3. B2<=1TRUE

    The <= operator tests at most.

  4. B2<=7TRUE

    The <= operator tests at most.

  5. IFS(B2<0,"Overdue",B2<=1,"Urgent",B2<=7,"This week",TRUE,"Later")"Urgent"

    IFS: Returns the value for the first true test.

    • test1B2<0FALSE
    • value1"Overdue"
    • test2, value2B2<=1TRUE
    • test2"Urgent"
    • value2B2<=7TRUE
    • test3"This week"
    • value3TRUE
    • test4"Later"

In Google Sheets

The same formula works in Google Sheets: =IFS(B2<0,"Overdue",B2<=1,"Urgent",B2<=7,"This week",TRUE,"Later"). We ran it in Google Sheets mode on the same data and it returns the same results.

Other ways to do it

Each one was run on the same example sheet.

FormulaResultWhen to use it
=IF(B2<0,"Overdue",IF(B2<=1,"Urgent",IF(B2<=7,"This week","Later")))Urgent, This week, Later…Nested IFs always end with a FALSE result, so they can't run out of cases.
=IFNA(IFS(B2<0,"Overdue",B2<=1,"Urgent",B2<=7,"This week"),"Later")Urgent, This week, Later…Catches the #N/A instead of adding a default. It works, but TRUE is clearer.

Common mistakes

  • Put the TRUE pair last: any pair after it is never reached.
  • SWITCH has the same problem without a default. Add a final lone value: SWITCH(A2,"N","North","Other").

Try it yourself

Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.

Why does IFS return #N/A when no condition is met

In C2, label the task Overdue (below 0 days), Urgent (up to 1), This week (up to 7) or Later for everything else. Fill down to C7.

Questions

Is there an ELSE in IFS?

Not by name; TRUE,"Later" as the last pair does the job.

Does IFS work the same in Google Sheets?

Yes, including the #N/A when nothing matches.

Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.