Excel Case Take the free check

Debt schedule in Excel: a cash sweep, with a practice file

By Excel Case · Updated

Pay a term loan down from spare cash, stop at zero, keep the minimum cash, and avoid the circular reference that average-balance interest creates.

Download the practice file Excel file. Free, no email.

Want it marked for you? Take the free 10-minute check, a short general finance case in your browser. It needs a laptop or desktop. On a phone? Email yourself this page.

In short: A debt schedule tracks a loan year by year: beginning balance, interest, mandatory repayment, a cash sweep of spare cash, and ending balance. Sweep with =MIN(MAX(cash available,0),debt left) so you never repay more than you owe or borrow when cash is short. Work out interest on the beginning balance to avoid a circular reference. In this 20-minute practice the loan is repaid in 2028 and cash ends 2030 at 681. Without the cap, debt goes negative in 2028.

What this practices

A debt schedule is the part of a banking or leveraged finance model that most often breaks. It shows up in investment banking modeling tests, from a short timed template to a take-home LBO case. The Excel is simple. The traps are paying off more than you owe, letting cash fall below the minimum, and a circular reference.

This page covers one term loan with mandatory repayment and a 100% cash sweep. It doesn't cover several tranches, a revolver or a full LBO.

The practice brief

Dana, Associate: "Can you finish the debt schedule? The term loan pays 8% on the beginning balance and 100 a year is mandatory. Everything left over above minimum cash goes to paying the loan down early. When is it repaid?"

Give yourself 20 minutes. The file has the inputs in B3:B7 (starting debt 600, rate 8%, mandatory repayment 100, starting cash 80, minimum cash 50), free cash flow for 2026 to 2030, and an analyst's cash sweep row to check. All names and numbers are made up.

Worked answers

Try the file first. Other methods are fine if they give the same results. You can also download the solved workbook.

1. Build the schedule

Put these in column B for 2026 and fill right to column F. The first year reads from the inputs. Every later year links to the year before.

Row2026 (B)2027 on (C)
13: Beginning debt=$B$3=B20
14: Interest=B13*$B$4
15: Mandatory repayment=MIN($B$5,B13)
16: Beginning cash=$B$6=B21
17: Cash available for sweep=B16+B12-B14-B15-$B$7
18: Cash sweep=MIN(MAX(B17,0),B13-B15)
19: Total repayment=B15+B18
20: Ending debt=B13-B19
21: Ending cash=B16+B12-B14-B19
22: Check=AND(B20>=0,B21>=$B$7)

Where the 2027 column is blank, the 2026 formula fills right unchanged. The MIN in row 15 matters too: in the last year you can't repay 100 of a loan with 40 left.

2. Fix the cash sweep

The analyst's row 18 is =B17: sweep all the cash available. It works for two years. In 2028 there is 142 available but only 121 of debt left after the mandatory payment, so ending debt becomes -21. From then on the loan "earns" interest, the mandatory repayment goes negative and debt reaches -658 by 2030, while cash stays at exactly 50.

MIN(…,B13-B15) caps the sweep at the debt left. MAX(B17,0) stops a negative sweep in a weak year, which would quietly borrow more.

Correct schedule
20262027202820292030
Beginning debt60041822100
Interest48331800
Mandatory repayment10010010000
Cash sweep829712100
Ending debt418221000
Ending cash505071361681

3. Why beginning balance, not average

Interest on the average balance, =AVERAGE(B13,B20)*$B$4, is more accurate. But ending debt depends on the sweep, the sweep depends on cash after interest, and interest now depends on ending debt. That's a circular reference. Excel warns, or loops if iterative calculation is on, and a model with a loop can blow up into errors that are hard to undo.

In a timed test, use the beginning balance unless the brief says otherwise, and say so. If you need average interest, add a switch cell that turns it off, so you can break the loop when it breaks.

4. Say what happened

A good answer: "The term loan is fully repaid in 2028: 300 of mandatory payments and 300 of cash sweep. Total interest is 99. After that cash builds up, reaching 681 at the end of 2030."

5. Raise the minimum cash

Change B7 to 100. Less cash goes to the sweep, so 37 of the loan is still left at the end of 2028 and it's repaid in 2029. Cash at the end of 2030 is 670, which is 11 lower, because of the extra interest. Every check should still say TRUE. If anything doesn't move, look for a 50 typed into a formula.

Check your work before you send it

Test soon? Follow the one-evening plan.

Questions people ask

What is a debt schedule in Excel?

A table that tracks a loan year by year: beginning balance, interest, repayments and ending balance. Each year starts from the last year's ending balance. In a model it feeds interest to the income statement and debt to the balance sheet.

What is a cash sweep?

Using spare cash to repay debt early. Cash above a minimum balance, after interest and mandatory repayments, goes to the loan. In Excel, cap it with MIN so the sweep never repays more than the debt left, and floor it with MAX so it never goes negative.

How do you avoid a circular reference in a debt schedule?

Work out interest on the beginning balance. Interest on the average balance depends on ending debt, which depends on the cash sweep, which depends on interest, so it loops. If you need average interest, turn on iterative calculation and add a switch cell that can break the loop.

Is a debt schedule part of investment banking modeling tests?

Often, yes. Three-statement and LBO tests usually include one, and a timed template test may give you a half-built one to finish. The same checks apply: debt never below zero, cash never below the minimum, and every year linked to the one before.

Now try one that marks itself

This page was practice you mark yourself. The free check gives you an email, a messy export and 10 minutes. It re-runs your formulas on data you haven't seen and shows what broke.

Start the free check

More free practice files