Ghost Sheet

IFS: many conditions without nesting

Is there a cleaner way to write a long nested IF?

This is the task for this topic. It is part of the plan; the level check before it is free.
D2Type a formula for D2, starting with =

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDE
1SupplierInvoiceDays overdueBucket
2Brightline ChemicalsINV-410137
3Fenwick ToolsINV-410259
4Brightline ChemicalsINV-41034
5Marlow PrintINV-410461
6Calder PaperINV-410519
7Fenwick ToolsINV-4106-5
8Calder PaperINV-410729
9Brightline ChemicalsINV-41087
10Tidewater FreightINV-410931
11Calder PaperINV-411049
12Brightline ChemicalsINV-411110
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
IFS takes pairs of condition and result and returns the result of the first true condition. It reads top to bottom with no closing brackets to count. End with TRUE as a catch-all. IFS needs Excel 2019 or later.
The shape of the formula
=IFS(test 1, result 1, test 2, result 2, TRUE, otherwise)
How to remember it
First true wins; TRUE at the end catches the rest.
The usual mistake
Forgetting the catch-all. A value that fits no condition returns #N/A.

Keep practicing

Updated