Ghost Sheet

Days overdue from TODAY, with paid and future invoices

How do I count how many days an invoice is overdue?

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

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

ABCDE
1InvoiceCustomerDue datePaid onDays overdue
2SI-6801Sable Architects11/10/2026
3SI-6804Larch & Co11/16/2026
4SI-6807Kite Studio11/02/2026
5SI-6810Rowan Cafe11/04/2026
6SI-6813Copper Kettle Inn11/22/2026
7SI-6816Bluff Hardware10/30/2026
8SI-6819Bluff Hardware11/30/2026
9SI-6822Copper Kettle Inn12/07/2026
10SI-6825Rowan Cafe11/04/2026
11SI-6828Rowan Cafe10/18/2026
12SI-6831Quill Books10/20/2026
13
14
15
16
17
18
19
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
TODAY() minus the due date gives the days since it fell due. Paid invoices and ones not yet due must show 0: test the payment column first, then use MAX(0, …) so the count never goes negative. Comparing a text date with TODAY() quietly fails; subtracting converts it.
The shape of the formula
=IF(paid date filled in, 0, MAX(0, TODAY() - due date))
How to remember it
Subtract to compare dates: text dates convert, comparisons do not.
The usual mistake
Writing IF(C2<TODAY(), …) on dates imported as text. The comparison is always false, so every overdue invoice drops to 0.

Keep practicing

Updated