Aged debtors in Excel: days overdue, ageing bands and totals
An aged debtors report (aged receivables) shows who owes you money and how late it is. Work out each invoice's days overdue at a report date held in a cell, =MAX(0,$B$1-B4), put it in a band with XLOOKUP, and total each band with SUMIFS. The bands here are Current, 1 to 30, 31 to 60, 61 to 90 and Over 90 days. XLOOKUP is in Excel for Microsoft 365 on Windows and Mac, Excel 2021 and 2024, and Excel for the web; older versions use VLOOKUP, shown below.
Aged debtors formulas at a glance
| You want | Formula | What you get |
|---|---|---|
| Days overdue at the report date | =MAX(0,$B$1-B4) | 45 for an invoice due 16 October, at 30 November |
| The band | =XLOOKUP(D4,$F$4:$F$8,$G$4:$G$8,,-1) | 31 to 60, from a table of each band's first day |
| The band in older Excel | =VLOOKUP(D4,$F$4:$G$8,2,TRUE) | The same bands |
| The total in each band | =SUMIFS($B$2:$B$7,$C$2:$C$7,E2) | £925.20 over 90 days |
| One customer's total in each band | =SUMIFS(Invoices!$B$2:$B$7,Invoices!$A$2:$A$7,$A2,Invoices!$C$2:$C$7,B$1) | The whole report, one row per customer |
The band table lists the first day of each band: 0 for Current, then 1, 31, 61 and 91 for Over 90. Each formula is worked through below.
A worked example
The report is for 30 November 2026. Each invoice has a due date, and the days overdue is the report date minus the due date.
- Due 16 October: 15 days to the end of October, plus 30 in November, is 45 days overdue. That's in the 31 to 60 band.
- Due 31 August: 91 days overdue, so it's Over 90.
- Due 15 December: not due yet. 30 November minus 15 December is −15, so count it as 0. That's Current.
The amounts are what the customer owes, VAT included, as on the invoice.
Days overdue and the band
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Report date | 30/11/2026 | |||||
| 2 | |||||||
| 3 | Customer | Due | Amount | Days overdue | Band | From | Band |
| 4 | Ashby Joinery | 15/12/2026 | £1,240.00 | 0 | Current | 0 | Current |
| 5 | Brook Farm | 31/10/2026 | £386.40 | 30 | 1 to 30 | 1 | 1 to 30 |
| 6 | Ashby Joinery | 16/10/2026 | £912.00 | 45 | 31 to 60 | 31 | 31 to 60 |
| 7 | Dene Lettings | 30/09/2026 | £2,160.00 | 61 | 61 to 90 | 61 | 61 to 90 |
| 8 | Brook Farm | 31/08/2026 | £145.20 | 91 | Over 90 | 91 | Over 90 |
| 9 | Ennis & Co | 12/07/2026 | £780.00 | 141 | Over 90 |
$B$1-B4is the report date minus the due date: the days overdue. Subtracting one date from another gives the days between them (more in days between dates).MAX(0, …)turns a minus number, an invoice not due yet, into 0.- The band table holds the lowest number of days in each band, smallest first: 0, 1, 31, 61, 91.
- The
-1at the end of XLOOKUP means "an exact match, or else the next smaller one". 45 isn't in the table, so it takes 31 and gives 31 to 60.
Keep the report date in a cell rather than using TODAY(). TODAY() changes every day, so last month's report would quietly change too. With the date in B1, change it once and every line updates. The date shortcut types a date that stays put: see inserting today's date.
In older Excel without XLOOKUP, =VLOOKUP(D4,$F$4:$G$8,2,TRUE) does the same job. More on bands in grade boundaries, which works the same way.
Totals by band and by customer
SUMIFS adds up the amounts in each band. With the bands typed in E2:E6:
=SUMIFS($B$2:$B$7,$C$2:$C$7,E2)
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Customer | Amount | Band | Band | Total | % of total | |
| 2 | Ashby Joinery | £1,240.00 | Current | Current | £1,240.00 | 22% | |
| 3 | Brook Farm | £386.40 | 1 to 30 | 1 to 30 | £386.40 | 6.9% | |
| 4 | Ashby Joinery | £912.00 | 31 to 60 | 31 to 60 | £912.00 | 16.2% | |
| 5 | Dene Lettings | £2,160.00 | 61 to 90 | 61 to 90 | £2,160.00 | 38.4% | |
| 6 | Brook Farm | £145.20 | Over 90 | Over 90 | £925.20 | 16.5% | |
| 7 | Ennis & Co | £780.00 | Over 90 | Total | £5,623.60 | 100% |
The report: one row per customer
For one customer's total in one band, SUMIFS needs a second condition. Keep the invoices on their own sheet, put the customers down column A and the bands across row 1, and one formula fills the whole grid. Ashby Joinery has £1,240.00 current and £912.00 in 31 to 60, so its total is £2,152.00.
=SUMIFS(Invoices!$B$2:$B$7,Invoices!$A$2:$A$7,$A2,Invoices!$C$2:$C$7,B$1)
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Customer | Current | 1 to 30 | 31 to 60 | 61 to 90 | Over 90 | Total |
| 2 | Ashby Joinery | £1,240.00 | £0.00 | £912.00 | £0.00 | £0.00 | £2,152.00 |
| 3 | Brook Farm | £0.00 | £386.40 | £0.00 | £0.00 | £145.20 | £531.60 |
| 4 | Dene Lettings | £0.00 | £0.00 | £0.00 | £2,160.00 | £0.00 | £2,160.00 |
| 5 | Ennis & Co | £0.00 | £0.00 | £0.00 | £0.00 | £780.00 | £780.00 |
| 6 | Total | £1,240.00 | £386.40 | £912.00 | £2,160.00 | £925.20 | £5,623.60 |
The $ signs do the work here. $A2 always looks in column A for the customer, and B$1 always looks in row 1 for the band, so the same formula is right in every cell. There's more on mixed references in $ and F4: F4 adds them as you type, and on a Mac it's Cmd+T.
A PivotTable with Customer in Rows, Band in Columns and Amount in Values gives the same report without formulas. On Windows and Mac it's Insert › PivotTable; see PivotTables: rows, columns and more. Formulas are easier to keep in a fixed layout from month to month.
Common mistakes
Every band says #N/A
XLOOKUP is looking for an exact match. Add the -1 as the fifth part, with nothing in the fourth: ,,-1.
Invoices land in the wrong band
The table has the top of each band (30, 60, 90) instead of the bottom (1, 31, 61), or it isn't smallest first.
Aged from the wrong date
Some firms age from the invoice date ("days old") and others from the due date ("days overdue"). Both are fine, but say which at the top of the report. An invoice raised 45 days ago on 30-day terms is 45 days old but only 15 days overdue, so it lands in a different band on each.
Part payments
Age what's still owed. Add a Paid column and band the Amount minus Paid, so a £900 invoice with £600 paid shows £300 outstanding. Payments that have reached the bank before they're in the ledger turn up in a bank reconciliation, so do that first.
Bands that miss the boundaries
With IFS instead of a table, test the biggest band first and use >, as in D2>90. With >= the boundaries slip: 30 days lands in 31 to 60. A band table with XLOOKUP avoids that, and it's easier to change.
Try it now
In E2, look up the band for the days overdue in D2, from the band table in G1:H6. Your formula will be copied down to E9.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Invoice | Customer | Amount | Days overdue | Band | From | Band | |
| 2 | INV-4120 | Ashby Joinery | £1,560.00 | 0 | 0 | Current | ||
| 3 | INV-4093 | Calder Dental | £428.50 | 30 | 1 | 1 to 30 | ||
| 4 | INV-4088 | Brook Farm Shop | £96.00 | 31 | 31 | 31 to 60 | ||
| 5 | INV-4071 | Ashby Joinery | £2,304.00 | 45 | 61 | 61 to 90 | ||
| 6 | INV-4052 | Dene Lettings | £715.20 | 61 | 91 | Over 90 | ||
| 7 | INV-4040 | Calder Dental | £1,188.00 | 90 | ||||
| 8 | INV-4026 | Ennis & Co | £354.00 | 91 | ||||
| 9 | INV-3998 | Brook Farm Shop | £62.40 | 141 |
Open this in Try a formula: the same sheet with the answer filled in, to change or share by link.
Part of Excel for finance and bookkeeping: every lesson on the topic, with a project in Excel.
Questions
How do I calculate days overdue in Excel?
Subtract the due date from the report date: =$B$1-B4, with the report date in B1 and the due date in B4. Subtracting one date from another gives the days between them. Wrap it in MAX so invoices not due yet show 0 instead of a minus number: =MAX(0,$B$1-B4). Lock B1 with $ so every row uses the same report date when the formula is copied down.
How do I create ageing buckets in Excel?
Make a small table with the first day of each bucket, smallest first: 0 for Current, then 1, 31, 61 and 91, with the bucket names next to them. Then look up each invoice's days overdue with =XLOOKUP(D4,$F$4:$F$8,$G$4:$G$8,,-1). The -1 takes the next smaller number, so 45 days finds 31 and gives 31 to 60. In older Excel, =VLOOKUP(D4,$F$4:$G$8,2,TRUE) does the same.
Should an aged debtors report use the invoice date or the due date?
Either, as long as the report says which. Ageing from the invoice date shows how old each debt is. Ageing from the due date shows how late it is, which is what most credit control teams chase. An invoice raised 45 days ago on 30-day terms is 45 days old but only 15 days overdue, so it lands in a different band on each. Pick one and use it every month.
How do I make an aged debtors report update automatically?
Keep the report date in one cell and point every days overdue formula at it with $B$1. Change that one date each month and every band and total updates. You can put =TODAY() in the cell instead, but then last month's saved report quietly changes when it's opened again. For a fixed report, type the date, or press Ctrl+; (Control+; on a Mac) to enter today's date as a value.