Cumulative Cash and Peak Funding Need in Excel

The annual plan shows the business generating 130,000 of cash next year. The CFO signs off and the bank facility is left at its current size. In December, after two months of inventory build and a slow collection month, the bank account goes below the minimum the business needs to run payroll, and there is no undrawn facility left to cover it.

Annual cash flow tells you where the year ends. It does not tell you how low cash goes on the way. This post builds the monthly running cash balance in Excel 2021 or 365, finds the low point and the funding it implies, adds a rolling twelve-month look-ahead, and models a revolver that draws and repays automatically. The example is in thousands, with a July fiscal year.

The running balance

Start from monthly net cash flow, the bottom line of the cash flow forecast. Cumulative cash is opening cash plus the running total:

=Opening + SUM($C$10:C10)

With opening cash of 350 and twelve months of flows that net to +130:

MonthNet flowCumulative cash
Jul 2026-80270
Aug 2026-120150
Nov 2026-150100
Dec 2026-210-110
Jan 202730-80
Mar 2027240250
Jun 2027190480

The year ends at 480, up 130. In December, before any funding, the business is 110 overdrawn.

The funding need

The business also needs a minimum cash balance: payroll, a supplier run, a buffer for forecast error. Say 200. The peak funding need is how far cumulative cash falls below that minimum at its lowest point:

=MAX(0, MinCash - MIN(C11:N11))

That is 200 – (-110) = 310, in December. Find the month with:

=INDEX(C$4:N$4, MATCH(MIN(C11:N11), C11:N11, 0))

This is the number to bring to the treasury conversation: not “we generate 130 this year” but “we need 310 of facility in December, and we are back above the minimum by March.”

Look ahead twelve months from every month

A static low point answers the question once. In a monthly forecast that rolls forward, the useful view is the lowest balance in the next twelve months, from each month. MINIFS with a date window does it without OFFSET:

=MINIFS($C11:$Z11, $C$4:$Z$4, ">="&C$4, $C$4:$Z$4, "<="&EOMONTH(C$4,11))

C4 is the month-end header. Each column shows the trough in the year ahead. When that number dips below the minimum, the funding conversation needs to start now, not in the month it happens. It is the same date-window idea as rolling 12-month totals, applied forward and with MIN instead of SUM.

The forecast must run twelve months past the last column you show, or the look-ahead quietly shortens at the end of the sheet.

Model the revolver

Once the facility exists, the model should draw on it when cash falls below the minimum and repay it when there is surplus. Three lines, in order:

Cash before revolver:  =PriorCash + NetFlow
Draw:                  =MAX(0, MinCash - CashBefore)
Repay:                 =MIN(PriorRevolver, MAX(0, CashBefore - MinCash))

Revolver balance is prior balance plus draw less repay, and closing cash is cash before revolver plus draw less repay. In the example, the revolver draws 50 in August, 100 in November and 210 in December, peaking at 310. Surplus from January repays it in full by March. A draw of 10 in April is repaid in May, and the year ends with no revolver and cash at 480.

Add a limit: =MIN(Limit - PriorRevolver, MAX(0, MinCash - CashBefore)). Then a check that flags any month where cash after the revolver is still below the minimum. That flag is the forecast telling you the facility is too small.

Interest and the circularity trap

Interest on the revolver is a cash outflow, which changes cash before revolver, which changes the draw. Calculate interest on the opening revolver balance and the loop disappears; at monthly granularity the error is small. The circular references post covers when that is not good enough.

Size the facility for the forecast you do not have

The forecast is a point estimate. The facility needs to cover a reasonable bad case. Two quick stress tests:

  • Delay collections a month. Shift the receipts row one column right and see how far the trough moves. For a business with seasonal sales, one slow month after the peak is the classic shortfall. The working capital post covers why the simple DSO formula hides this.
  • Take 10% off revenue from the peak onward, holding costs. Many costs are committed months ahead.

Size the facility to cover the worse of the two with headroom, and note the bank’s covenant tests (often a minimum liquidity or a leverage ratio) next to the trough. A facility that is large enough but breaches a covenant at the low point is not large enough.

Where it breaks

Month-end only. Cash is lowest inside the month, usually just after payroll and before the big customer receipts. A month-end forecast understates the true trough. For tight months, a 13-week cash forecast by week shows what the monthly view hides.

Opening cash that is not available. Restricted cash, cash in a foreign subsidiary that cannot be repatriated quickly, and float in transit all inflate opening cash. Use available cash.

Flows that are not net. Debt repayments, dividends and tax payments are easy to leave out of a cash forecast built from the P&L. Build the forecast from the full cash flow statement.

The free 5-Year Cash Flow Model includes a revolving credit line, a minimum-cash input and a check that flags every period where cash falls below the floor.

Similar Posts