Confident CellsExcel practice Start free

Aged debtors in Excel: days overdue, ageing bands and totals

Updated 26 November 2026 · 4 min read

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 wantFormulaWhat 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.

The amounts are what the customer owes, VAT included, as on the invoice.

Days overdue and the band

ABCDEFG
1Report date30/11/2026
2
3CustomerDueAmountDays overdueBandFromBand
4Ashby Joinery15/12/2026£1,240.000Current0Current
5Brook Farm31/10/2026£386.40301 to 3011 to 30
6Ashby Joinery16/10/2026£912.004531 to 603131 to 60
7Dene Lettings30/09/2026£2,160.006161 to 906161 to 90
8Brook Farm31/08/2026£145.2091Over 9091Over 90
9Ennis & Co12/07/2026£780.00141Over 90
D4 holds =MAX(0,$B$1-B4) and E4 holds =XLOOKUP(D4,$F$4:$F$8,$G$4:$G$8,,-1), both copied down.

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)
ABCDEFG
1CustomerAmountBandBandTotal% of total
2Ashby Joinery£1,240.00CurrentCurrent£1,240.0022%
3Brook Farm£386.401 to 301 to 30£386.406.9%
4Ashby Joinery£912.0031 to 6031 to 60£912.0016.2%
5Dene Lettings£2,160.0061 to 9061 to 90£2,160.0038.4%
6Brook Farm£145.20Over 90Over 90£925.2016.5%
7Ennis & Co£780.00Over 90Total£5,623.60100%
F2 holds =SUMIFS($B$2:$B$7,$C$2:$C$7,E2), copied down. Over 90 is £145.20 + £780.00 = £925.20, 16% of what's owed.

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)
ABCDEFG
1CustomerCurrent1 to 3031 to 6061 to 90Over 90Total
2Ashby Joinery£1,240.00£0.00£912.00£0.00£0.00£2,152.00
3Brook Farm£0.00£386.40£0.00£0.00£145.20£531.60
4Dene Lettings£0.00£0.00£0.00£2,160.00£0.00£2,160.00
5Ennis & Co£0.00£0.00£0.00£0.00£780.00£780.00
6Total£1,240.00£386.40£912.00£2,160.00£925.20£5,623.60
B2 holds =SUMIFS(Invoices!$B$2:$B$7,Invoices!$A$2:$A$7,$A2,Invoices!$C$2:$C$7,B$1), copied across and down. $A2 keeps the customer column and B$1 the band row. G6 is everything owed: £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

Your turn

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.

ABCDEFGH
1InvoiceCustomerAmountDays overdueBandFromBand
2INV-4120Ashby Joinery£1,560.0000Current
3INV-4093Calder Dental£428.503011 to 30
4INV-4088Brook Farm Shop£96.00313131 to 60
5INV-4071Ashby Joinery£2,304.00456161 to 90
6INV-4052Dene Lettings£715.206191Over 90
7INV-4040Calder Dental£1,188.0090
8INV-4026Ennis & Co£354.0091
9INV-3998Brook Farm Shop£62.40141

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.