Sub topic 10
Debt Repayment Limited by Cash and Balance
This chapter assumes you can use relative and absolute cell references, copy formulas across periods, and read a forecast with time periods in columns. You should also know basic terms such as cash flow and debt balance.
A debt repayment formula should answer two questions:
- How much cash is available for repayment?
- How much debt remains to be repaid?
The repayment must not exceed either amount. If available cash is negative, repayment should be zero. If available cash is greater than the debt balance, repayment should stop at the balance.
The debt sweep rule
A debt sweep is a model rule that uses excess cash to repay debt. Suppose the forecast has these rows:
| Row | Item | Example in period F |
|---|---|---|
| 38 | Cash available for repayment | 75 |
| 41 | Opening debt balance | 50 |
| 42 | Debt repayment | Formula |
The repayment should be 50. The business has 75 of cash, but only 50 of debt remains. Paying more would create a negative closing debt balance.
If cash available is 25 and opening debt is 50, repayment should be 25. If cash available is -10, repayment should be zero.
Use MAX for the cash floor
The MAX function returns the largest value in a list. It can create a floor, which is a minimum allowed value.
=MAX(0,F38)This formula returns the cash available in F38 when it is positive. It returns zero when F38 is negative.
The formula is equivalent to this conditional logic:
=IF(F38>0,F38,0)The MAX version is compact and makes the floor visible. In a financial model, a zero cash floor prevents a negative cash amount from becoming a negative repayment.
Use MIN for the debt limit
The MIN function returns the smallest value in a list. It can create a cap, which is a maximum allowed value.
=MIN(F41,MAX(0,F38))The inner MAX first applies the zero floor to available cash. The outer MIN then compares that result with the opening debt balance.
The formula works in three cases:
| Cash available | Opening debt | Repayment |
|---|---|---|
| 75 | 50 | 50 |
| 25 | 50 | 25 |
| -10 | 50 | 0 |
This is compact IF logic. A longer version could use nested IF functions, but nested conditions are easier to misread and maintain.
Copy the formula across periods
Place the formula in the repayment row for the first forecast period, then copy it across the timeline:
=MIN(F41,MAX(0,F38))The column references move from F to G, H, and so on. This is correct when each period's cash and opening debt are in the same column.
The opening balance should usually link to the prior period's closing balance. For example:
=E43If row 43 contains closing debt, the next period's opening debt can use the prior period's closing amount. The closing balance then becomes:
=F41-F42A simple debt roll-forward is therefore:
Opening debt + new borrowing - repayment = closing debtCheck that repayment is subtracted only once. A common error is to subtract repayment in both the cash flow and debt schedule without a matching offset.
Audit the debt sweep
Review the formula across every forecast period.
- Confirm that cash available and opening debt use the intended rows.
- Check that the zero floor is present.
- Check that repayment cannot exceed opening debt.
- Confirm that the closing balance never becomes negative.
- Trace the repayment into both the cash flow and debt schedule.
- Avoid hard-coded amounts such as
50or0.1when the value should come from an input or formula. - Test periods with negative cash, cash below debt, and cash above debt.
A useful check is:
=IF(F43<0,"Error","OK")Here, F43 is the closing debt balance. The check does not fix the schedule. It highlights an unintended result so you can find the cause.
Exercise
In period G, cash available for repayment is 30 and opening debt is 20. What does =MIN(G41,MAX(0,G38)) return, and why?
Show answer
It returns 20. MAX(0,G38) returns 30, and MIN(G41,30) limits repayment to the 20 opening debt balance.