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 toC7 - 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"
B20The value in B2.
B2<0FALSEThe < operator tests less than.
B2<=1TRUEThe <= operator tests at most.
B2<=7TRUEThe <= operator tests at most.
IFS(B2<0,"Overdue",B2<=1,"Urgent",B2<=7,"This week",TRUE,"Later")"Urgent"IFS: Returns the value for the first true test.- test1
B2<0FALSE - value1
"Overdue" - test2, value2
B2<=1TRUE - test2
"Urgent" - value2
B2<=7TRUE - test3
"This week" - value3
TRUE - test4
"Later"
- test1
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.
| Formula | Result | When 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
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.