Case 5: 13-week cash flow forecast
A profitable business can still run short of cash when money moves at the wrong time. The 13-week forecast shows week by week when things get tight, and you build it from a plain list of payments.
In short: receipts per week with SUMIFS on three conditions (date from Monday, date before the next Monday, amount above 0), payments the same with "<0", closing = opening + receipts − payments, and each week opens with the previous closing balance. The summary uses defined names instead of cell references.
The situation
Mid-November. Before renewing the credit line, the bank wants to see a cash forecast to mid-February, and management wants to know whether cash gets tight over the year end. Accounts has put every known and expected payment for the coming weeks into a list: customer receipts by due date, supplier invoices, salaries, rent, taxes and the loan installment. The bank balance on Monday 16 Nov 2026 is 64,000. Internally, the business keeps a minimum cash balance of 25,000.
The workbook sheet by sheet
- Payments: date, category and amount, receipts positive, payments negative. One payment already falls after the forecast period.
- Cash: opening balance and minimum cash at the top, then 13 rows with the Monday of each week and the columns opening, receipts, payments, closing and flag.
- Summary (task 2): one page for management with the key figures.
Task 1: the weekly plan
Task 13-week cash flow forecast from Monday 16 Nov 2026. B4 takes the opening balance from B1; from B5 on, each week opens with the previous week's closing balance. C4:C16 adds up the week's receipts: positive amounts from the Payments sheet dated on or after the Monday in column A and before the next Monday. D4:D16 are the week's payments as a positive number. E4:E16 is the closing balance, and F4:F16 shows "below minimum" when it is under the minimum cash in D1, otherwise "ok".
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Opening balance | 64000 | Minimum cash | 25000 | |||
| 2 | |||||||
| 3 | Week from | Opening | Receipts | Payments | Closing | Flag | |
| 4 | 16 Nov 2026 | ||||||
| 5 | 23 Nov 2026 | ||||||
| 6 | 30 Nov 2026 | ||||||
| 7 | 7 Dec 2026 | ||||||
| 8 | 14 Dec 2026 | ||||||
| 9 | 21 Dec 2026 | ||||||
| 10 | 28 Dec 2026 | ||||||
| 11 | 4 Jan 2027 | ||||||
| 12 | 11 Jan 2027 | ||||||
| 13 | 18 Jan 2027 | ||||||
| 14 | 25 Jan 2027 | ||||||
| 15 | 1 Feb 2027 | ||||||
| 16 | 8 Feb 2027 | ||||||
| 17 | |||||||
| 18 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Category | Amount | |
| 2 | 17 Nov 2026 | Customers | 42000 | |
| 3 | 19 Nov 2026 | Suppliers | -38500 | |
| 4 | 20 Nov 2026 | Customers | 18500 | |
| 5 | 25 Nov 2026 | Customers | 51200 | |
| 6 | 26 Nov 2026 | Suppliers | -27400 | |
| 7 | 27 Nov 2026 | Salaries | -68000 | |
| 8 | 1 Dec 2026 | Rent | -12500 | |
| 9 | 3 Dec 2026 | Customers | 36800 | |
| 10 | 4 Dec 2026 | Taxes | -21900 | |
| 11 | 9 Dec 2026 | Customers | 29400 | |
| 12 | 10 Dec 2026 | Suppliers | -44100 | |
| 13 | 15 Dec 2026 | Customers | 47600 | |
| 14 | 17 Dec 2026 | Loan | -8000 | |
| 15 | 22 Dec 2026 | Customers | 22300 | |
| 16 | 23 Dec 2026 | Salaries | -71500 | |
| 17 | 29 Dec 2026 | Suppliers | -31200 | |
| 18 | 30 Dec 2026 | Customers | 15900 | |
| 19 | 4 Jan 2027 | Rent | -12500 | |
| 20 | 6 Jan 2027 | Customers | 39700 | |
| 21 | 8 Jan 2027 | Taxes | -26300 | |
| 22 | 12 Jan 2027 | Customers | 64100 | |
| 23 | 14 Jan 2027 | Suppliers | -40800 | |
| 24 | 19 Jan 2027 | Customers | 53600 | |
| 25 | 21 Jan 2027 | Suppliers | -29900 | |
| 26 | 27 Jan 2027 | Salaries | -68000 | |
| 27 | 28 Jan 2027 | Customers | 61500 | |
| 28 | 1 Feb 2027 | Rent | -12500 | |
| 29 | 3 Feb 2027 | Customers | 56900 | |
| 30 | 5 Feb 2027 | Suppliers | -36700 | |
| 31 | 10 Feb 2027 | Taxes | -19800 | |
| 32 | 11 Feb 2027 | Customers | 39200 | |
| 33 | 16 Feb 2027 | Customers | 52000 | |
| 34 | ||||
| 35 |
Step 1: roll the balance forward
B4 is =B1. From B5 on it is =E4: each week opens with the previous week's closing balance. Those are two different formulas, so they are two separate targets.
Step 2: receipts and payments per week
A week is a period: from the Monday in A4 up to, but not including, the next Monday. As criteria that reads ">="&A4 and "<"&A4+7. The third condition separates receipts from payments by sign:
=SUMIFS(Payments!$C$2:$C$33,Payments!$A$2:$A$33,">="&A4,Payments!$A$2:$A$33,"<"&A4+7,Payments!$C$2:$C$33,">0")
Payments use the same formula with "<0" and a minus in front, so they show as positive numbers. Using "<" rather than "<=" stops the next Monday from counting twice.
Step 3: closing balance and flag
E4 = B4 + C4 − D4. F4 compares with minimum cash: =IF(E4<$D$1,"below minimum","ok"). In a real file you would also shade the row with conditional formatting.
Task 2: summary with defined names
For management, four numbers matter: the low point, when it happens, how many weeks fall below minimum cash and how much money is missing. In this workbook the ranges are defined names: ClosingCash, WeekNo and MinCash. A formula like =COUNTIF(ClosingCash,"<"&MinCash) then makes sense even to someone who did not build the file.
Task You sum up the 13-week plan on one page for management. The workbook has the defined names ClosingCash, WeekNo and MinCash (Cash sheet); use them instead of cell references. B1: lowest closing balance, B2: the number of the week it happens in, B3: number of weeks below minimum cash, B4: the first week below minimum cash, B5: the extra funds needed so that even the lowest point reaches minimum cash (never negative).
| A | B | C | |
|---|---|---|---|
| 1 | Lowest closing balance | ||
| 2 | In week no. | ||
| 3 | Weeks below minimum | ||
| 4 | First week below minimum | ||
| 5 | Funding need | ||
| 6 | |||
| 7 |
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Week | Closing balance | Week from | Minimum cash | 25000 | ||
| 2 | 1 | 86000 | 16 Nov 2026 | ||||
| 3 | 2 | 41800 | 23 Nov 2026 | ||||
| 4 | 3 | 44200 | 30 Nov 2026 | ||||
| 5 | 4 | 29500 | 7 Dec 2026 | ||||
| 6 | 5 | 69100 | 14 Dec 2026 | ||||
| 7 | 6 | 19900 | 21 Dec 2026 | ||||
| 8 | 7 | 4600 | 28 Dec 2026 | ||||
| 9 | 8 | 5500 | 4 Jan 2027 | ||||
| 10 | 9 | 28800 | 11 Jan 2027 | ||||
| 11 | 10 | 52500 | 18 Jan 2027 | ||||
| 12 | 11 | 46000 | 25 Jan 2027 | ||||
| 13 | 12 | 53700 | 1 Feb 2027 | ||||
| 14 | 13 | 73100 | 8 Feb 2027 | ||||
| 15 | |||||||
| 16 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
The first week below minimum comes from MINIFS: the smallest week number whose closing balance meets the condition. The funding need is =MAX(0,MinCash-B1). MAX with 0 prevents a negative number when everything is fine.
Common mistakes
Week boundaries counted twice or not at all
With "<="&A4+7, a Monday payment lands in two weeks. With "<"&A4+6, Sunday payments go missing. The half-open period, from Monday and before the next Monday, never leaves a gap.
Payments outside the period
The payment on 16 Feb 2027 falls after week 13. A total over the whole list without a date limit would pull it into the last week.
Missing sign
Without the minus in front of the payments formula, column D holds negative payments, and B4+C4-D4 adds them instead of subtracting.
Check your result
- Week 1 closes at 86,000, the low point is 4,600 in week 7 (from 28 Dec 2026), and week 13 closes at 73,100.
- Control: opening balance plus all receipts minus all payments over the 13 weeks must equal the last closing balance. Payments up to 14 Feb 2027 count; the one on 16 Feb does not.
- Task 2: low point 4,600 in week 7, three weeks below minimum, the first being week 6, funding need 20,400.
The functions in German Excel
| English | German |
|---|---|
| SUMIFS | SUMMEWENNS |
| IF | WENN |
| COUNTIF | ZÄHLENWENN |
| MINIFS | MINWENNS |
| XLOOKUP | XVERWEIS |
| MIN, MAX | MIN, MAX |
In German, this plan is called 13-Wochen-Liquiditätsplanung, and minimum cash Mindestbestand.
Excel versions
According to Microsoft, MINIFS is available in Excel 2019 and later and in Microsoft 365, and XLOOKUP in Excel 2021 and later and in Microsoft 365. In older versions, use =INDEX(WeekNo,MATCH(B1,ClosingCash,0)) for the week of the low point and a helper column with IF for the first week below minimum. Everything in task 1 works in every current version. For a ready-made monthly plan, see the cash flow template.
Back to the course overview.