You generate cash flow on Excel by building a time-phased ledger, not a profit forecast: one row for every dated inflow or outflow, a running balance formula that subtracts what left from what arrived, and a separate forecast column pair for money you expect but haven't collected. The key condition is consistency — every row needs a real date and a signed amount, or the running balance drifts. Everything else, from conditional formatting to scenario tests, sits on top of that foundation. Microsoft's own guidance starts from the same premise: a cash flow tracker at its core needs only a handful of columns.

This guide walks through a manual build you can finish in about an hour, then the additions that make it a working forecasting tool rather than a static log.

What "Generating Cash Flow" Actually Means in a Spreadsheet

Cash flow in Excel isn't created by a formula; it's measured by one. The net cash flow for any period is simply inflows minus outflows, which answers the fundamental question of how much money is left. A spreadsheet can't manufacture cash — it can only tell you, accurately and repeatedly, where you stand and where you're headed.

That distinction matters because most broken cash flow sheets fail for the same reason: they mix accounting profit with cash timing. A $12,000 invoice sent in March isn't March cash if the client pays in May. Excel handles this well if you give every transaction a date, because then SUMIFS and a dated balance column recreate the timing exactly. The tool is flexible and adjustable even for people who don't consider themselves numbers people, but only when the underlying rows are clean.

So the practical goal is a single sheet that answers three questions at a glance: how much cash do I have today, what does the next eight or thirteen weeks look like, and which specific payments cause the tight spots. Every section below serves one of those.

Prerequisites Before You Type a Single Formula

Gather these before building, or you'll redo the structure:

A bank or checking statement covering at least the last three months, exported as CSV or PDF. A list of recurring obligations with due dates: rent or mortgage, payroll, loan payments, subscriptions, insurance, and taxes. Known incoming amounts: invoices already sent with expected payment dates, contracts, regular client retainers. A starting figure: the actual cleared balance in the account on your chosen start date, not the balance including uncleared checks. A decision on granularity. Weekly columns suit most small businesses; monthly suits longer horizons. Daily is rarely worth the maintenance.

One more choice belongs here: whether you're tracking one account or consolidating several. Consolidation is fine, but keep an "Account" column so you can filter, and remember that transfers between your own accounts must be excluded or you'll double-count.

Build the Core Transaction Ledger

The ledger is the engine. Everything downstream reads from it, so spend your effort here.

Step 1: Set up the columns

Create a sheet named Ledger with these headers in row 1, and convert it to an Excel Table (select the range, press Ctrl+T, check "My table has headers"). The table matters because formulas that reference it expand automatically as you add rows.

Column Header Example entry
A Date 2026-11-02
B Description November rent
C Category Fixed costs
D Account Operating checking
E Type Outflow
F Movement 2400
G Signed -2400
H Status Cleared / Forecast

Use real Excel dates in column A, formatted as you like. Text dates like "Nov 2" break SUMIFS ranges.

Step 2: Make the signed amount formula drive everything

In G2, enter:

=IF(E2="Outflow",-F2,F2)

Always enter amounts as positive numbers in F, and let the Type column decide the sign. This one rule prevents the most common cash flow sheet error — an outflow accidentally typed as a positive number, silently inflating the balance.

Step 3: Seed three months of history

Paste your statement transactions in, categorize them, and mark them Cleared. This history does two jobs: it validates your category structure against reality, and it gives you a baseline for average weekly spending that you'll use in forecasting.

Step 4: Add the cleared-versus-forecast flag carefully

Column H separates money that actually moved from money you expect. Your running balance should normally show cleared cash. Forecast rows exist so you can project, not so you can pretend a promised invoice already landed. Be strict here; a sheet that flatters you is worse than no sheet.

Success check: after entering history, the sum of column G for cleared rows, added to your opening balance, should match your actual bank balance on the same date. If it's off, you've missed a transaction or duplicated one — find it now, before adding forecasting complexity.

Create the Running Balance Column

The running balance is what makes the sheet a cash flow statement rather than a list. On a separate Dashboard sheet, or off to the right of your ledger, put your opening cash figure in a labeled cell, say Dashboard!B2.

Then, on the Ledger sheet, in a column after H, add:

=Dashboard!$B$2 + SUMIFS(Ledger[Signed], Ledger[Date], "<="&[@Date], Ledger[Status], "Cleared")

This computes, for each row, opening cash plus every cleared movement dated on or before that row. It's preferable to a simple cumulative SUM because it stays correct if you sort the table by date, add backdated entries, or filter rows.

Two practical cautions. First, if two transactions share the same date, each row shows the same end-of-day balance — that's correct behavior, not a bug. Second, if you want the balance to reflect only the cleared world, keep forecast rows out of this formula, as shown. Many people run a second column with "Forecast" in the status criterion and both statuses accepted, producing a projected closing balance; label it clearly so the two never get confused.

Success check: the last cleared row's running balance equals your bank balance today. Freeze the header row and add a filter on Status so you can toggle between views.

Turn History Into a Weekly or Monthly Forecast

A ledger looks backward; a forecast is what you actually need. The standard structure, reflected in Microsoft's cash flow forecast templates, is a timeline across columns with opening balance, income, expenses, and a closing balance at the end.

Build a Forecast sheet with dates down the left and categories across the top, then pull actuals from the ledger with SUMIFS. For example, for a weekly period starting in cell A5:

=SUMIFS(Ledger[Signed], Ledger[Date], ">="&$A5, Ledger[Date], "<"&$A5+7, Ledger[Status], "Cleared")

Copy that across categories by swapping the category criterion, and add a parallel set of rows for forecast status to project expected items. Then chain the balances: opening for week one is today's cash; closing for each week is opening plus net movement, and the next week's opening equals the prior closing. That chain is the heart of the sheet — it's what shows you the week your balance dips.

For expected-but-uncertain money, add a probability weighting. Put an expected amount in one column and a confidence percentage (say 80% for a reliable client, 40% for a shaky one) in the next, and multiply. Label the result clearly as a weighted forecast, because it understates individual payments by design.

Add a Minimum-Balance Flag and Shortfall Alerts

Numbers in a grid don't shout; conditional formatting does. Select your closing balance row and add a rule: format cells red where the value is below a floor you set in a labeled cell (for example, one month of fixed costs). Add amber for values within 20% above the floor. The formula-based rule looks like:

=B$14 < $B$3

where B14 is the first closing balance and B3 holds the floor.

This single feature converts the sheet from a record into an early-warning system: you see the problem week before it arrives, which is the entire point of forecasting. Pair it with a small summary block that names the lowest projected balance and its date — use MIN on the balance row and INDEX/MATCH to return the corresponding week label.

Test Scenarios Without Breaking Your Real Numbers

Scenario work is where Excel earns its keep for cash planning. There are three sound approaches, in increasing complexity:

1: Duplicate the forecast sheet for base, slow, and stress cases. Simple, but edits must be repeated. 2: A scenario switch cell with CHOOSE or IF formulas: put 1, 2, or 3 in a labeled cell and have collection-timing assumptions read from a small assumptions table depending on that value. 3: Data Table (What-If Analysis) on two inputs, such as average collection delay and monthly revenue change, producing a matrix of ending balances.

For most small operators, option two is the sweet spot. Model at least two realistic stresses: a major client paying 45 days late rather than 30, and revenue dropping 20% for two months while fixed costs stay put. If the sheet shows a shortfall, you now know the size and the week, which is the number you actually need.

For longer-term investment questions — whether a piece of equipment pays for itself — Excel's NPV and IRR functions apply the same cash flow rows with the time value of money. Note that NPV discounts are conventionally applied to end-of-period cash flows, so state your timing assumption; the difference between beginning-of-period and end-of-period discounting is small month to month but real over years.

A Worked Example You Can Reproduce

Assume a freelance design business with $18,000 in the bank on November 1, 2026, and these facts:

Fixed costs: $6,000 per month (rent, software, insurance, one contractor retainer), paid on the 1st. Two retainer clients pay $5,000 each on the 15th. A project invoice of $9,000 was sent October 20 with 30-day terms, so expected around November 19. Tax set-aside of $4,000 due December 15. Variable spending averages $2,500 per month, spread evenly.

Weekly net movement (using 4.33 weeks per month) runs roughly: outflows of about $1,962 per week from fixed and variable costs, plus inflows of about $2,309 per week from retainers, plus the $9,000 invoice in week three and the $4,000 tax in week seven. Closing balances land near $18,000 at the start, dip slightly in weeks one and two, jump to roughly $22,800 after the invoice clears, then fall to about $15,200 after taxes — provided both retainers and the invoice actually pay on time. Delay that invoice by three weeks and the November 19 figure drops to about $13,800, which is the kind of specific risk the sheet exists to surface. These figures are illustrative arithmetic, not a prediction for any real business.

Reproduce it in the Forecast sheet and check the chained closing balances against hand math for the first two weeks. If they match, the formula structure is sound and you can scale it.

Common Failures and How to Spot Them

Most broken sheets announce themselves through symptoms rather than errors. Match the symptom to the likely cause before rewriting anything, and start with the checks that cost nothing to reverse.

Balance doesn't match the bank. Usually a missing or duplicated transaction, or uncleared items counted as cleared. Check the cleared sum against the statement date by date.

Closing balances look impossibly smooth. Often caused by entering forecast income with no timing variation, or by a SUMIFS range that's picking up the whole column because the date criterion is text. Confirm the criteria reference actual date cells.

#VALUE! or #N/A in balance rows. Typically a text-formatted date or an amount stored as text. Use ISNUMBER on a sample cell; convert with DATEVALUE or re-enter the value.

Totals double after sorting. A classic symptom of a cumulative SUM formula without absolute anchoring, or of counting both sides of an internal transfer. Switch to the SUMIFS-with-date-criterion pattern shown above and exclude transfers.

Forecast drifts from ledger. The two sheets have diverged because someone edited a formula in one copy. Keep a single assumptions block and reference it everywhere.

If the discrepancies persist after these checks — particularly if your books, bank records, and spreadsheet disagree in ways you can't reconcile — that's the point where a bookkeeper or accountant should review the source records rather than the spreadsheet.

When to Move Beyond a Hand-Built Sheet

A carefully built Excel tracker serves most sole traders and small teams well. It becomes fragile when multiple people edit it simultaneously without version control, when you need bank feeds that reconcile automatically, or when the ledger exceeds a few thousand rows and manual review slows down. At that stage, accounting software with a cash flow report typically replaces the ledger sheet while Excel keeps the forecasting role — the two aren't mutually exclusive. The build above isn't wasted; knowing exactly how the numbers interlock makes you a far better reader of whatever software you adopt.

Questions That Come Up While Building

Should the running balance include forecast rows? Keep cleared cash and projected cash in separate columns, because blending them lets you mistake hope for balance. When you need a forward view, project on the Forecast sheet instead.

Weekly or monthly periods? Weekly for anything under about six months where payroll or rent timing matters; monthly for annual planning. The formula structure is identical — only the period length in the SUMIFS changes.

Can Excel itself create the template? Recent Microsoft 365 versions include Copilot in Excel, which can draft a simple tracker from described columns, and Excel also ships built-in and online cash flow templates. Either gives you a starting point, though a self-built sheet usually fits your categories better.

How much history is enough? Three months of cleared transactions is a workable minimum for spotting your real spending rhythm, since a full year overstates stability for younger businesses.