John Serra
Back to Blog
AnalyticsBusiness OperationsData AuditData QualityreportingSmall Business AnalyticsSpreadsheet Managementspreadsheets

Build a 13-Week Cash Forecast in Google Sheets and Excel

Build a 13-week cash forecast from dated receipts and payments using SUMIFS, chained weekly openings, and daily lows. Catch midweek dips, tie out gross flows, and roll forward every Monday without rebuilding.

To build a 13-week cash forecast in Google Sheets or Excel, list each expected receipt and payment on the date it should reach the bank. Type a Monday start date and your cleared bank balance, then use SUMIFS to total the events into 13 weekly rows, with each week’s ending cash opening the next week. Track daily lows along with week-end balances, because a week can end fine and still run short midweek.

In the example below, the quarter ends at $26,000.00, above a $20,000.00 minimum buffer. Two shortfalls still need attention. Week 9 ends at $14,000.00, below the buffer. On the Tuesday of Week 5, cash falls to $10,000.00 before a Friday collection lifts the week back to $28,000.00. A forecast that only checks week-end balances catches the first problem and misses the second.

If you only need a quick grid where you type weekly totals by hand, How to Build a Cash Flow Tracker in Google Sheets covers that. This version builds the weekly totals from dated events. Rolling it forward each Monday means changing a date and a balance and checking last week’s items against the bank, instead of rebuilding columns.

My preferred tool is Google Sheets because a spreadsheet should be shareable and make collaboration easy. Every formula below also works in Excel for the web, and both tools come with the office suites most small teams already use. The results below come from a test of this exact workbook in Google Sheets and Excel for the web, both in US English.

The 20-Event Cash Register and the 13-Week Result

Below is the 20-event cash register I made up for this article. It sits on one worksheet named Cash_Forecast, with headings in A1:M1 and events in rows 2 to 21. Columns A to F are typed inputs (download the 20-event CSV to import A1:F21 without retyping). Columns G to M are helper formulas, explained in Steps 1 and 2. Column I shows the forecast week each event falls in.

Excel for the web view of Cash_Forecast!A1:M21 showing 20 dated cash events CF-01 through CF-20 with CF-01 flagged PRIOR, 18 in-window events across Weeks 1 through 13 including Week 5 Tuesday projected low of $10,000.00 in Day_Low_Cash_USD, CF-17 Equipment Loan Principal and CF-19 Quarterly Owner Draw, and CF-20 flagged BEYOND_13W, with Row_Check returning OK and Event_ID_Freq returning 1 on every row.
In Excel for the web, Cash_Forecast!A1:M21 validates all 20 events, excludes PRIOR and BEYOND_13W rows from the 13-week window, and tracks the $10,000.00 Tuesday low in Week 5. Open full-size image.

Three settings are typed into the audit block on the right: the start Monday, April 6, 2026, in Z2, the cleared opening bank balance, $36,000.00, in Z3, and the minimum cash buffer, $20,000.00, in Z4. The forecast runs 91 days, from Monday, April 6, through Sunday, July 5.

Here is the 13-week schedule in O1:W15:

Excel for the web view of Cash_Forecast!O1:W15 showing 13 chained weekly rows from 2026-04-06 through 2026-07-05 starting at $36,000.00 with $81,000.00 cash in, $91,000.00 cash out, -$10,000.00 net cash, and $26,000.00 ending cash in Total_13W with TIED_TO_W13, highlighting Week 5 INTRA_WEEK_DIP, Week 9 BELOW_BUFFER at $14,000.00, and Week 10 INTRA_WEEK_DIP.
In Excel for the web, Cash_Forecast!O1:W15 chains each week’s ending balance into the next week’s opening, flags Weeks 5, 9, and 10, and ties Total_13W to Week 13 at $26,000.00. Open full-size image.

The 18 events inside the window bring in $81,000.00 and pay out $91,000.00, leaving three weeks flagged across two distinct shortfalls:

  • Week 5 (INTRA_WEEK_DIP): Ends above the buffer at $28,000.00, but dips to $10,000.00 on Tuesday before Friday’s collection arrives.
  • Week 9 (BELOW_BUFFER): The only week that closes below the $20,000.00 minimum, dropping to $14,000.00 when June rent and a $6,000.00 loan payment land with no collections.
  • Week 10 (INTRA_WEEK_DIP): Opens Monday at $14,000.00—carrying Week 9’s shortfall over the weekend—until Tuesday’s $16,000.00 collection restores the cushion.

The audit block in Y1:AB20 checks all of this and returns:

RECONCILED: 13-WEEK INTERNAL TIE-OUT (START 2026-04-06; W13 END $26000.00; MIN WEEK-END $14000.00; PROJ LOW $10000.00; 1 BELOW-BUFFER WK; 2 INTRA-WEEK DIP WKS; $0.00 GAP)

To build along, set up the worksheet before you try any of the changes below. The layout and labels are in “How to Set Up the Worksheet” near the end, and the formulas follow in the Copy-Paste Formula Reference.

Step 1: Log Each Cash Event by the Date It Reaches the Bank

Enter one row per expected receipt or payment. The date in column D is the day the money should reach or leave your bank account, not the invoice date or the date a bill arrives. Card sales go in on the day you expect the payout to post to your bank. A processor can send funds before the bank posts them. A customer invoice goes in on the day you expect the payment to clear.

Those collection dates are only as good as your follow-up. I like to set up accounts receivable so someone is sending reminders and talking to customers. That way, the business knows ahead of time which payments might lag, and the aim is to keep balances from going past 60 days. If you need to see which invoices are already late, an accounts receivable aging schedule shows what’s open by days past due.

Column G returns OK or CHECK ROW for each event. A row passes when:

  • All six inputs are filled, with text in A, B, C, and E, and numbers in D and F.
  • The event ID is CF- plus 2 to 4 digits, in capitals, with no spaces.
  • The description has no leading, trailing, or double spaces.
  • The flow type in column E matches an allowed category in column C:
    • INFLOW: AR_COLLECTION, CARD_SALES, or OTHER_IN
    • OUTFLOW: PAYROLL, RENT_UTILITIES, VENDORS, LOAN_PRINCIPAL, or OWNER_DRAW
  • The date is a whole date, and the amount is positive, in whole cents.

Column H counts how often each event ID appears so a duplicate ID stops the model. The row check is intentionally strict: subtle formatting issues—like a full-width look-alike character in an ID (CF-12) or an accidental double space in a description ("April Office Rent")—will trigger CHECK ROW in column G until you fix them.

Type a static Monday and your cleared bank balance

Z2 holds the first Monday of the forecast as a static, typed date (for example, 2026-04-06). Don’t use =TODAY(). It shifts with the calendar, returns a Monday only one day a week, and makes it impossible to compare this week’s forecast against last week’s. To keep the start date locked, Z20 triggers a STOP if Z2 contains any formula at all, even a fixed one like =DATE(2026,4,6).

Z2 must also fall on a Monday, verified with WEEKDAY(Z2, 2) (which returns 1 for Monday in both Google Sheets and Excel). If you accidentally enter a Tuesday (2026-04-07) or a plain number without dashes (20260406), Z20 halts the model cleanly instead of throwing a #NUM! error, because the sheet checks that Z2 is a whole date between 2000 and 2100 before calling WEEKDAY.

Z3 is the cleared balance in your bank account on Monday morning. Use the bank’s figure, not the balance in your accounting software, because the forecast starts from cash you actually have. Z4 is the lowest balance you’re willing to carry.

Keep events outside the 13 weeks out of the totals

Column I assigns each event to a week:

=IF(NOT(EXACT(G2, "OK")), "", IF(D2<$Z$2, "PRIOR", IF(D2>($Z$2+90), "BEYOND_13W", INT((D2-$Z$2)/7)+1)))

CF-01, a $4,500.00 invoice paid on Friday, April 3, is already inside Monday’s $36,000.00 balance. It shows PRIOR and stays out of the totals. CF-20, a $7,000.00 invoice due July 8, falls after Sunday, July 5. It shows BEYOND_13W and joins Week 13 when you roll forward next Monday.

Include loan principal and owner draws

CF-17 is a $6,000.00 repayment of equipment loan principal, and CF-19 is a $4,000.00 owner draw. Neither is an operating expense, so neither appears on an accrual profit and loss statement. Both still leave the bank. IRS Publication 538 explains the difference between the cash method, which records expenses when paid, and the accrual method, which records them when incurred. A cash forecast follows the bank, so it needs every payment, whatever its accounting treatment.

Z10 totals these two categories inside the window: $10,000.00. Without them, Week 9 would end at $20,000.00, right at the buffer, and Week 13 would end at $36,000.00. Both rows in this example are pure principal or draws. If a loan payment includes interest, the interest portion is an expense, so check the split with your bookkeeper.

Step 2: Chain the Weeks Together With SUMIFS

Each row in the 13-week schedule follows one simple chain: Opening Cash + Cash In − Cash Out = Ending Cash, and that ending balance becomes the next week’s opening balance.

Week 1 starts on your Monday in Z2 (with each following week advancing seven days in columns P and Q) and opens with your cleared bank balance from Z3 in R2. From Week 2 on, each week’s opening balance pulls directly from the prior week’s ending cash (R3, filled down through R14):

=IF(NOT(ISNUMBER(V2)), "CHECK INPUTS", V2)

That chain carries a bad week forward into every week after it, which is the whole point of the forecast.

To pull in the weekly totals, column S sums each week’s inflows with SUMIFS (Google Sheets SUMIFS, Microsoft Excel SUMIFS):

=IF(OR($Z$5>0, $Z$6>0, $Z$7>0), "CHECK INPUTS", ROUND(SUMIFS($F$2:$F$21, $I$2:$I$21, O2, $E$2:$E$21, "INFLOW"), 2))

Column T uses the same formula for "OUTFLOW", column U calculates net cash (S2-T2), and column V adds that net to the opening balance (R2+U2). At the bottom, row 15 totals the entire quarter—adding the 13-week net to Week 1’s opening balance in V15—and W15 returns TIED_TO_W13 only when that total matches the chained Week 13 ending in V14.

Finally, column W (W2:W14) flags each week’s status:

  • NEGATIVE_CASH: the week ends below $0.00.
  • BELOW_BUFFER: the week ends below Z4.
  • INTRA_WEEK_DIP: the week ends at or above the buffer, but opens below it or dips below it on some day.
  • OK: none of the above.

Find the low point inside each week

A week-end balance hides what happens between Monday and Sunday. Column K calculates a projected low for each event date: the opening balance, plus the net of every event before that date, minus every payment on that date.

The formula subtracts the same-day payments before it counts any same-day receipts. Call it outflows-first ordering. It’s a planning rule, not a description of how your bank posts transactions. It keeps a same-day deposit from hiding a same-day shortfall.

Week 5 shows why this matters. It opens at $26,000.00 and finishes the week safely at $28,000.00, so a week-end-only forecast would never flag it. Look inside the week, though, and Tuesday, May 5 brings $5,000.00 in rent and an $11,000.00 vendor bill—dropping your cash to $10,000.00 before Friday’s $18,000.00 collection arrives. Tracking the daily running balance catches that $10,000.00 low point immediately instead of hiding it behind a healthy Friday close.

Z15 takes the lowest week-end balance, $14,000.00. Z16 takes the lowest of the Week 1 opening, every week-end balance, and every value in column K:

=IF(OR(NOT(ISNUMBER(R2)), COUNT(V2:V14)<13), "CHECK INPUTS", ROUND(IF(COUNT($K$2:$K$21)=0, MIN(R2, V2:V14), MIN(R2, V2:V14, $K$2:$K$21)), 2))

It returns $10,000.00. The projected low is only as good as the dates in column D. If a payment can clear a day early, the low can come a day sooner.

Step 3: Check That the Schedule Ties Out to the Register

Z11 and Z12 add up cash in and cash out for the window straight from the dated register. They filter on the dates in column D, not on the week numbers in column I, so they don’t rely on the schedule. Z11 is:

=IF(OR(Z5>0, Z6>0, Z7>0), "CHECK INPUTS", ROUND(SUMIFS($F$2:$F$21, $D$2:$D$21, ">="&$Z$2, $D$2:$D$21, "<="&($Z$2+90), $E$2:$E$21, "INFLOW"), 2))

Z13 compares cash in, cash out, and net cash between the register and the schedule’s total row and reports the biggest gap. Z19 compares the 13-week total with the chained Week 13 ending. Both are $0.00 in the baseline.

Checking gross flows matters because two errors can cancel out. On a copy of the sheet, type 9500 over the formula in S2 and 6000 over the formula in T2. Each is $1,000.00 too high, so Week 1’s net is still $3,500.00, and every ending balance is unchanged. Z13 shows $1,000.00, and Z20 stops with STOP: 13-WEEK SCHEDULE DOES NOT TIE OUT TO CASH EVENT REGISTER. Both tools returned this result. Delete the copy, or re-enter the S2 and T2 formulas, before you continue.

A $0.00 gap means the spreadsheet agrees with itself. It doesn’t mean the forecast is right. The tie-out can’t see your bank statement, your customers’ payment habits, or a bill you forgot to enter.

Test the guards

Try each change on the baseline sheet, and restore each cell before the next one:

  • Change A3 to CF-01. Z20 stops with STOP: DUPLICATE EVENT IDS IN CASH REGISTER. Restore A3 to CF-02.
  • Change E5 to INFLOW. The payroll row no longer fits its category, G5 returns CHECK ROW, and Z20 stops with STOP: INVALID OR BLANK CASH EVENT ROWS. Restore E5 to OUTFLOW.
  • Enter a 21st event in A22:F22 without resizing the ranges. Z20 stops with STOP: TRAILING ROWS BELOW EVENT REGISTER OR WEEKLY TABLE (RESIZE RANGES). Clear A22:F22.

Five Ways a 13-Week Forecast Goes Wrong

Here is how five common mistakes change the result on the same 20 events:

Method Week 13 end Lowest week-end Projected low Weeks below buffer What goes wrong
Correct forecast $26,000.00 $14,000.00 $10,000.00 1 Nothing
1. Count cash that already cleared $30,500.00 $18,500.00 $14,500.00 1 Adds CF-01’s $4,500.00 on top of a balance that already includes it
2. Sum past the 13-week cutoff $33,000.00 $14,000.00 $10,000.00 1 Pulls the $7,000.00 July 8 invoice into Week 13
3. Check week-end balances only $26,000.00 $14,000.00 $14,000.00 1 Misses the $10,000.00 Tuesday low in Week 5
4. Reset every week to the opening balance $32,000.00 $24,000.00 $20,000.00 0 Starts each week at $36,000.00 instead of last week’s ending
5. Start from $0.00 -$10,000.00 -$22,000.00 -$26,000.00 13 Forecasts net flow instead of bank cash

The second and third mistakes are easy to miss. With mistake 2, the projected low doesn’t change, but the quarter looks $7,000.00 better than it is. With mistake 3, every week-end figure is correct, and the forecast still overstates the cushion by $4,000.00 and points to the wrong week.

Excel for the web view of T05!Y1:AB20 testing WEEK_END_ONLY_TROUGH ($14,000.00 reported low vs. $10,000.00 projected low) showing Candidate_Projected_Low_Gap_USD of $4,000.00, 1 clean mismatch, 0 replay mismatches, and AB20 returning STOP: MATCHES WEEK-END-ONLY REPLAY (REPORTED LOW +$4000.00 ABOVE PROJ LOW; $14000.00 VS $10000.00; CHECK INTRA-WEEK TIMING).
In Excel for the web, testing WEEK_END_ONLY_TROUGH in AB2:AB10 triggers a STOP verdict exposing the +$4,000.00 cushion overstatement when midweek timing is ignored. Open full-size image.

Mistake 4 looks the safest, which is what makes it risky. Because every week starts fresh at $36,000.00, the drain from consecutive bad weeks never builds up, and no week ends below the buffer. Its projected low is $20,000.00, not $24,000.00, because a reset Week 5 still drops by $16,000.00 on Tuesday before Friday’s collection.

Google Sheets view of T06!Y1:AB20 testing BROKEN_OPENING_CHAIN ($32,000.00 Week 13 end, $24,000.00 lowest week-end, $20,000.00 projected low, 0 weeks below buffer) showing +$6,000.00 ending gap, +$10,000.00 week-end and projected-low gaps, and AB20 returning STOP: MATCHES BROKEN-OPENING-CHAIN REPLAY (W13 END +$6000.00; MIN WEEK-END +$10000.00; PROJ LOW +$10000.00; CHAIN OPENING TO PRIOR WEEK ENDING).
In Google Sheets, testing BROKEN_OPENING_CHAIN in AB2:AB10 flags the +$6,000.00 ending gap and +$10,000.00 low overstatement caused by resetting every Monday to $36,000.00. Open full-size image.

Check a forecast someone else built

The candidate half of the audit block, AA1:AB20, checks a forecast summary from somewhere else, such as a colleague’s file. Type its figures into AB2:AB10:

  • AB2: the method you think it used.
  • AB3 and AB4: its 13-week cash in and cash out.
  • AB5: its Week 13 ending cash.
  • AB6 and AB7: its lowest week-end balance and projected low.
  • AB8: its number of weeks ending below the buffer.
  • AB9 and AB10: 0. These two guard cells must stay at 0.

Type plain values without dollar signs or commas, and never use formulas in AB2:AB10. AB12:AB17 show how far each figure is from the schedule. AB19 replays the named method from the register and counts how many of the six figures don’t match that replay. AB20 names a mistake only when all six figures match it.

To replay a mistake on the baseline sheet, type the values from one row below into AB2:AB10, top to bottom. Leave out the Scenario column. If you copy a row from another sheet, paste it transposed. Type the text entries without quote marks.

Scenario AB2 (Method) AB3 AB4 AB5 AB6 AB7 AB8 AB9 AB10
Initial untested NOT TESTED NOT TESTED NOT TESTED NOT TESTED NOT TESTED NOT TESTED NOT TESTED 0 0
Correct forecast CLEAN_13W_DIRECT 81000.00 91000.00 26000.00 14000.00 10000.00 1 0 0
1. Already-cleared cash DOUBLE_COUNT_PRIOR 85500.00 91000.00 30500.00 18500.00 14500.00 1 0 0
2. Past the cutoff UNBOUNDED_HORIZON_SUM 88000.00 91000.00 33000.00 14000.00 10000.00 1 0 0
3. Week-end only WEEK_END_ONLY_TROUGH 81000.00 91000.00 26000.00 14000.00 14000.00 1 0 0
4. Reset every week BROKEN_OPENING_CHAIN 81000.00 91000.00 32000.00 24000.00 20000.00 0 0 0
5. Start from zero ZERO_OPENING_CASH 81000.00 91000.00 -10000.00 -22000.00 -26000.00 13 0 0

AB20 returned these verdicts in both tools:

  • Initial untested: NOT TESTED: ENTER CANDIDATE FORECAST SUMMARY
  • Correct forecast: RECONCILED: ALL 6 FORECAST METRICS MATCH 13-WEEK SCHEDULE ($81000.00 IN; $91000.00 OUT; $26000.00 W13 END; $14000.00 MIN WEEK-END; $10000.00 PROJ LOW; 1 BELOW-BUFFER WK)
  • 1. Already-cleared cash: STOP: MATCHES PRIOR-CASH DOUBLE-COUNT REPLAY (W13 END +$4500.00; PROJ LOW +$4500.00; EXCLUDE EVENTS BEFORE 2026-04-06)
  • 2. Past the cutoff: STOP: MATCHES UNBOUNDED-HORIZON REPLAY (W13 END +$7000.00; INFLOWS +$7000.00; CAP EVENTS AT 2026-07-05)
  • 3. Week-end only: STOP: MATCHES WEEK-END-ONLY REPLAY (REPORTED LOW +$4000.00 ABOVE PROJ LOW; $14000.00 VS $10000.00; CHECK INTRA-WEEK TIMING)
  • 4. Reset every week: STOP: MATCHES BROKEN-OPENING-CHAIN REPLAY (W13 END +$6000.00; MIN WEEK-END +$10000.00; PROJ LOW +$10000.00; CHAIN OPENING TO PRIOR WEEK ENDING)
  • 5. Start from zero: STOP: MATCHES ZERO-OPENING-CASH REPLAY (W13 END -$36000.00; PROJ LOW -$36000.00; ANCHOR R2 TO $36000.00 BANK BALANCE)
Google Sheets view of T02!Y1:AB20 testing CLEAN_13W_DIRECT ($81,000.00 in, $91,000.00 out, $26,000.00 Week 13 ending, $14,000.00 lowest week-end, $10,000.00 projected low, 1 week below buffer) showing $0.00 register-to-schedule and chain tie-out gaps, zero candidate mismatches, and both Z20 and AB20 returning RECONCILED verdicts.
In Google Sheets, entering the verified CLEAN_13W_DIRECT summary in AB2:AB10 reconciles both Z20 and AB20 with $0.00 gaps across all six forecast metrics. Open full-size image.

If any reported number in AB3:AB8 disagrees with the sheet’s own math, say, someone enters a Week 13 ending balance in AB5 that is $1.00 off, then AB20 immediately flips to a STOP status. Instead of a vague warning, it calls out the exact mismatch, showing your reported figure alongside the sheet’s calculated balance and the dollar gap between them.

Roll the Forecast Forward Every Monday

Each Monday, the forecast moves one week. Don’t assume last week’s events all cleared as planned. Work through four steps.

Step A: Save last week’s forecast

Save a copy of the sheet as a read-only snapshot, as described in Save a Month-End Spreadsheet Snapshot Without Breaking Formulas. Leave its original expectations as they are, so you can compare this week’s forecast with last week’s. Then type the new Monday in Z2 and Monday morning’s cleared bank balance in Z3.

Step B: Check last week’s events against the bank

For each event dated in the week that just ended, check whether it cleared and how much cleared. Record the actual posting date and cleared amount in your bank reconciliation record, not in the snapshot. Events that cleared in full turn PRIOR on their own when Z2 moves forward.

Step C: Reconcile last week’s events against your bank statement

Compare every event scheduled for the week that just ended against what actually cleared your bank, then handle each one based on what happened:

  • Full clear: The payment or deposit hit the bank in full. Remove the event from the active register in Step D—its impact is already baked into your new Monday bank balance in Z3.
  • Delayed receipt or payment: Nothing cleared yet, so leave the event in the register and update its date in column D to the new expected bank date.
  • Partial receipt or payment: Update the amount in column F to the remaining balance still owed, and move its date in column D to when you expect the rest to clear. (For example, if you expected $5,000.00 and $3,500.00 cleared, change the row to $1,500.00 and set the new date.)

Step D: Clear out settled rows without breaking the sheet

Warning: Never delete a worksheet row to remove a cleared event. The 13-week schedule (columns O:W) and the audit block (columns Y:AB) sit on those exact same rows, so deleting a row will break your formulas.

Instead, clear the settled rows and shift your remaining events up:

  1. Copy the remaining events up: Select the active event rows below the cleared ones (e.g., A6:F21) and paste them starting at A2 (paste values only).
  2. Clear the leftover rows at the bottom: Select the duplicate rows left at the bottom of your input block (A through F) and press Delete—leave the helper formulas in G:M intact.
  3. Add new events: Enter any newly scheduled inflows or outflows in the open rows at the bottom of the register, then check Z20 to confirm the sheet returns RECONCILED.

Here is an example. Suppose CF-04, the $12,000.00 payroll due Wednesday, April 15, cleared before Monday morning, along with last week’s rent and card settlement. Z3 is $27,500.00: $36,000.00, less $5,000.00 of rent, plus $8,500.00 of card sales, less $12,000.00 of payroll. If CF-04 stays in the register, the sheet subtracts it a second time, and Week 13 ends at $21,000.00. To remove it from the register only:

  1. Copy A6:F21, select A5, and paste values only (Edit > Paste special > Values only in Google Sheets, or Home > Paste > Paste Values in Excel for the web). The 16 events below CF-04 move up one row. Columns G:M and everything from column O on stay where they are.
  2. Shrink the register endpoints from 21 to 20 with Find and Replace, as described in the next section.
  3. Clear A21:M21.

The register now holds 19 events, and Week 13 ends at $33,000.00. Z7, Z13, and Z19 all show 0. This example was checked in a formula evaluator, not in the two-tool test.

Resize the Register for More or Fewer Events

Every formula that points at the register uses a column-qualified endpoint, such as :$A$21 or :$M$21. A Find and Replace on those endpoints never touches the weekly table, which ends at row 15, or the audit block. Call your current last row R_prev (21 in the baseline) and your new last row R_new (the number of events plus 1).

  • When expanding: Enter the new events directly below the current last row in columns A:F. Select G2:AB21, or down to row R_prev if that is lower. Run Find and Replace for each endpoint from :$A$ through :$M$ followed by R_prev, replacing it with the same column followed by R_new. Then fill G2:M2 down through row R_new.
  • When shrinking (at least one event): Run Find and Replace the same way first. Then clear the old inputs and helper formulas in columns A:M from row R_new + 1 through row R_prev, so Z7 returns 0.

In the test, growing the register from 20 to 24 events and shrinking it to 14 both reconciled in both tools. The two tools handle Find and Replace differently:

  • Google Sheets (Edit > Find and replace): The Search setting started at All sheets. Change it to This sheet, or to Specific range with your selected range. Then check Also search within formulas before you click Replace all. Google Sheets showed the formulas while the box was checked and returned to values after Done. Finish every endpoint before you read the totals. A SUMIFS can show #VALUE! while its ranges have different end rows.
  • Excel for the web (Home > Find & Select > Replace): There is no separate formula checkbox. Replace all updates the formula references on the active sheet directly.

How to Set Up the Worksheet

Everything runs on the Cash_Forecast worksheet, in three blocks separated by blank spacer columns N and X:

  1. Block 1 (cash event register, A1:M21): Enter event_id, description, category, expected_date, flow_type, and amount_usd in A1:F1, and the helper headings Row_Check, Event_ID_Freq, Forecast_Week, Signed_Cash_USD, Day_Low_Cash_USD, Beyond_Day_Low_USD, and Reset_Day_Low_USD in G1:M1. Import the 20-event CSV into A1:F21 (or type the 20 events shown in the Cash_Forecast!A1:M21 screenshot above into A2:F21). Keep dates in column D as real dates and amounts in column F as plain numbers.
  2. Block 2 (13-week schedule, O1:W15): Enter Week_Num, Week_Start, Week_End, Opening_Cash_USD, Cash_In_USD, Cash_Out_USD, Net_Cash_USD, Ending_Cash_USD, and Week_Status in O1:W1. Type 1 through 13 in O2:O14 and Total_13W in O15. Z5 checks these labels, so keep them exactly as shown.
  3. Block 3 (audit, Y1:AB20): Enter Source_Audit_Metric, Source_Audit_Value, Candidate_Audit_Metric, and Candidate_Audit_Value in Y1:AB1, and the labels from the row map below in Y2:Y20 and AA2:AA20. Formulas point at cell positions, not label text, so you can rename the labels. Type 2026-04-06 in Z2, 36000 in Z3, and 20000 in Z4 as plain values. Put NOT TESTED in AB2:AB8 (typed without quote marks) and 0 in AB9:AB10.
  4. Paste the formulas by block and fill down: Copy the formulas from the reference section below into each block, then fill down where noted:
    • Block 1 — Cash Register (G2:M2): Paste the helper formulas into G2:M2 and fill down through row 21. (Columns L and M track the daily running balance inside each week so the audit block can catch midweek dips—leave their formulas untouched.)
    • Block 2 — 13-Week Schedule (P2:W15):
      • Paste the Week 1 start and opening formulas into P2 and R2.
      • Paste the chaining formulas into P3 and R3, then fill down through row 14.
      • Paste the remaining row formulas into Q2 and S2:W2, then fill down through row 14.
      • Paste the 13-week summary and tie-out formulas into P15:W15.
    • Block 3 — Audit & Control (Z5:Z20, AB11:AB20): Paste the validation and reconciliation formulas into Z5:Z20 and AB11:AB20.

Once everything is in place, Z20 should return RECONCILED with a $0.00 GAP.

Row Source label (Y) Baseline Z value Candidate label (AA) Baseline AB value
2 Forecast_Start_Monday 2026-04-06 (typed) Candidate_Method NOT TESTED
3 Opening_Cash_USD 36000 (typed) Candidate_Total_In_USD NOT TESTED
4 Minimum_Cash_Buffer_USD 20000 (typed) Candidate_Total_Out_USD NOT TESTED
5 Invalid_Source_Or_Label_Count (formula) Candidate_Ending_W13_USD NOT TESTED
6 Duplicate_Event_IDs (formula) Candidate_Min_Week_End_USD NOT TESTED
7 Trailing_Rows_Below_Tables (formula) Candidate_Projected_Low_USD NOT TESTED
8 In_Window_Event_Count (formula) Candidate_Below_Buffer_Weeks NOT TESTED
9 Excluded_Out_Of_Window_Count (formula) Candidate_Guard_Invalid_Rows 0
10 Non_PnL_Outflows_13W_USD (formula) Candidate_Guard_Trailing_Rows 0
11 Total_13W_Cash_In_USD (formula) Candidate_Input_Status (formula)
12 Total_13W_Cash_Out_USD (formula) Candidate_In_Gap_USD (formula)
13 Register_To_Schedule_Gap_USD (formula) Candidate_Out_Gap_USD (formula)
14 Ending_W13_Cash_USD (formula) Candidate_Ending_W13_Gap_USD (formula)
15 Min_Week_End_Cash_USD (formula) Candidate_Min_Week_End_Gap_USD (formula)
16 Projected_13W_Low_Cash_USD (formula) Candidate_Projected_Low_Gap_USD (formula)
17 Weeks_Ending_Below_Buffer (formula) Candidate_Below_Weeks_Diff (formula)
18 Intra_Week_Dip_Weeks (formula) Candidate_Clean_Mismatches (formula)
19 Chain_TieOut_Gap_USD (formula) Candidate_Method_Replay_Mismatches (formula)
20 Source_Audit_Verdict (formula) Candidate_Audit_Verdict (formula)

Keep anything else out of columns A:F below the register and out of column O below row 15. Z7 counts those cells as trailing rows and stops the model. In Excel for the web, select the whole table, not just the heading row, before you use Auto Fit Column Width. Fitting only the headings left longer descriptions clipped in the test.

Build It Faster With Your Favorite AI

If you’d rather not wire all 51 formulas by hand, drop the prompt below into ChatGPT, Claude, or Gemini to generate a ready-to-import .xlsx file (which opens in both Excel and Google Sheets) or cell-by-cell setup instructions tailored to your cash events. Before pasting real business figures into a consumer AI chat, replace customer names and account numbers with generic labels such as Customer A or Vendor B—see Is It Safe to Upload Business Data to ChatGPT? for a quick privacy checklist.

Build a single-sheet 13-week direct cash flow forecast named Cash_Forecast that works identically in Google Sheets and Excel for the web. Use classic spreadsheet formulas only (SUMIFS, COUNTIFS, SUMPRODUCT, WEEKDAY, ROUND, MIN, MAX, IF, EXACT, TEXT, ISFORMULA). Do not use XLOOKUP, LET, LAMBDA, or dynamic array formulas.

My inputs:
- Forecast start Monday (static typed date, never TODAY()): [YYYY-MM-DD, e.g., 2026-04-06]
- Cleared opening bank balance on that Monday: [AMOUNT, e.g., 36000]
- Minimum cash buffer: [AMOUNT, e.g., 20000]
- Expected cash events (date money reaches/leaves the bank, description, category, INFLOW or OUTFLOW, positive amount — include loan principal and owner draws):
[PASTE YOUR EVENTS OR ATTACH CSV HERE]

Required structure and guardrails:
1. Block 1 (Cash Event Register, columns A:M): Typed inputs in A:F (event_id, description, category, expected_date, flow_type, amount_usd) and helper formulas in G:M that validate every row (OK vs CHECK ROW), flag duplicate IDs, bucket dates into PRIOR, Weeks 1-13, or BEYOND_13W (91-day window: start Monday through start Monday + 90), compute signed cash, and calculate a conservative daily low (Day_Low_Cash_USD) using outflows-first ordering on each event date so same-day receipts cannot mask same-day outflows.
2. Block 2 (13-Week Schedule, columns O:W): 13 weekly rows (Monday to Sunday) plus a Total_13W row. Week 1 opens at the typed bank balance; Weeks 2-13 must chain directly from the prior week's ending balance (never reset to the opening balance). Use SUMIFS for weekly Cash_In and Cash_Out, and flag each week as NEGATIVE_CASH, BELOW_BUFFER, INTRA_WEEK_DIP, or OK.
3. Block 3 (Audit & Tie-Out, columns Y:Z): Enforce a static Monday in Z2 (WEEKDAY(Z2, 2)=1) and non-negative opening/buffer amounts. Compute gross 13-week Cash_In and Cash_Out directly from the dated register (independent of the weekly table) so offsetting errors cannot cancel out, report Register_To_Schedule_Gap_USD and Chain_TieOut_Gap_USD, show lowest week-end balance and lowest projected daily balance, and output a clear RECONCILED or STOP verdict.

Output:
- Generate a downloadable .xlsx file (or give exact cell-by-cell formulas if file export isn't available).
- Before handing it back, verify that both tie-out gaps equal $0.00, list the Week 13 ending cash, lowest week-end balance, and lowest midweek balance with their dates, and list every week that breaches the minimum buffer.

Treat the AI’s output as a starting draft, not a finished audit. Once you open the file in Google Sheets or Excel, run the three quick tests in Step 3 (duplicate an ID, mismatch a category, and confirm Z13 and Z19 show $0.00) before relying on the numbers.

Three Quick Questions

Why not use the TODAY function for the start date?

Because TODAY() follows the calendar. It returns a Monday only one day a week, and as the date moves, the weeks move with it, so last week’s snapshot no longer lines up with the live sheet. The sheet blocks it, and any other formula, in Z2. Even a fixed formula such as =DATE(2026,4,6) returned that same stop in the test, because Z2 must be a typed value. A typed Monday changes only when you change it, which keeps each weekly roll-forward a deliberate step.

Why include loan principal and owner draws if they aren’t on my P&L?

Because they leave the bank. A profit and loss statement shows whether the business earned money. A cash forecast shows whether you can pay the bills on the day they’re due. In this example, the two items total $10,000.00 and turn Week 9 from a week at the buffer into one $6,000.00 below it.

What if I’m starting in overdraft or using a line of credit?

The sheet stops if Z3 is below zero, with STOP: OPENING CASH (Z3) AND BUFFER (Z4) MUST BE NON-NEGATIVE CENT AMOUNTS. That stop was checked in a formula evaluator, not in the two-tool test. Opening in overdraft or drawing on a revolving line of credit changes what cash is available each week. Model that credit explicitly with your bookkeeper or lender before you rely on the weekly balances.

What to Do Next

Pick a Monday, enter your cleared balance, and list the next 13 weeks of receipts and payments you already know about. Payroll, rent, loan payments, and your largest customer invoices usually cover most of the movement. Then roll it forward each Monday and compare the new forecast with last week’s snapshot. If you want a quick check on where spreadsheet habits and data definitions break down across your reporting, try the 4-Minute Small Business Data Audit.

Copy-Paste Formula Reference

Paste these 51 portable formulas into the Cash_Forecast worksheet after importing the 20-event CSV into A1:F21, entering the helper headings in G1:M1, O1:W1, and Y1:AB1, the week labels in O2:O15, the audit labels in Y2:Y20 and AA2:AA20, the three settings in Z2:Z4, and the candidate inputs in AB2:AB10 (NOT TESTED in AB2:AB8, 0 in AB9:AB10). Every formula uses classic functions supported by both Google Sheets and Excel for the web, including SUMIFS, COUNTIFS, SUMPRODUCT, WEEKDAY, ROUND, MIN, MAX, EXACT, TEXT, and ISFORMULA.

Block 1: Cash event register helpers (enter in row 2, fill down through row 21)

G2, row check (validates the six inputs and the three settings in Z2:Z4):

=IF(OR(COUNTA(A2:F2)<6, NOT(ISTEXT(A2)), NOT(ISTEXT(B2)), NOT(ISTEXT(C2)), NOT(ISNUMBER(D2)), NOT(ISTEXT(E2)), NOT(ISNUMBER(F2)), NOT(ISNUMBER($Z$2)), NOT(ISNUMBER($Z$3)), NOT(ISNUMBER($Z$4))), "CHECK ROW", IF(OR(TRIM(SUBSTITUTE(A2, CHAR(160), " "))="", TRIM(SUBSTITUTE(B2, CHAR(160), " "))="", NOT(EXACT(A2, UPPER(TRIM(SUBSTITUTE(A2, CHAR(160), " "))))), NOT(EXACT(B2, TRIM(SUBSTITUTE(B2, CHAR(160), " ")))), NOT(ISERROR(FIND(" ", A2&C2&E2))), NOT(ISERROR(FIND(CHAR(10), A2&B2&C2&E2))), NOT(ISERROR(FIND(CHAR(13), A2&B2&C2&E2))), NOT(ISERROR(FIND("*", A2&C2&E2))), NOT(ISERROR(FIND("?", A2&C2&E2))), NOT(ISERROR(FIND("~", A2&C2&E2))), LEN(A2)<5, LEN(A2)>7, NOT(EXACT(LEFT(A2, 3), "CF-")), NOT(ISNUMBER(FIND(MID(A2, 4, 1), "0123456789"))), NOT(ISNUMBER(FIND(MID(A2, 5, 1), "0123456789"))), IF(LEN(A2)>=6, NOT(ISNUMBER(FIND(MID(A2, 6, 1), "0123456789"))), FALSE), IF(LEN(A2)=7, NOT(ISNUMBER(FIND(MID(A2, 7, 1), "0123456789"))), FALSE), NOT(OR(AND(EXACT(E2, "INFLOW"), OR(EXACT(C2, "AR_COLLECTION"), EXACT(C2, "CARD_SALES"), EXACT(C2, "OTHER_IN"))), AND(EXACT(E2, "OUTFLOW"), OR(EXACT(C2, "PAYROLL"), EXACT(C2, "RENT_UTILITIES"), EXACT(C2, "VENDORS"), EXACT(C2, "LOAN_PRINCIPAL"), EXACT(C2, "OWNER_DRAW"))))), INT(D2)<>D2, D2<DATE(2000,1,1), D2>DATE(2100,1,1), IF(OR(INT($Z$2)<>$Z$2, $Z$2<DATE(2000,1,1), $Z$2>DATE(2100,1,1)), TRUE, WEEKDAY($Z$2, 2)<>1), $Z$3<0, ROUND($Z$3, 2)<>$Z$3, $Z$4<0, ROUND($Z$4, 2)<>$Z$4, F2<=0, ROUND(F2, 2)<>F2), "CHECK ROW", "OK"))

H2, event ID frequency (flags duplicates):

=IF(OR(NOT(EXACT(G2, "OK")), COUNTIF($G$2:$G$21, "OK")<ROWS($A$2:$A$21)), "", SUMPRODUCT(--(UPPER($A$2:$A$21)=UPPER(A2))))

I2, forecast week (PRIOR, 1 to 13, or BEYOND_13W):

=IF(NOT(EXACT(G2, "OK")), "", IF(D2<$Z$2, "PRIOR", IF(D2>($Z$2+90), "BEYOND_13W", INT((D2-$Z$2)/7)+1)))

J2, signed cash (inflows positive, outflows negative):

=IF(NOT(EXACT(G2, "OK")), "", IF(EXACT(E2, "INFLOW"), ROUND(F2, 2), ROUND(-F2, 2)))

K2, projected daily low under outflows-first ordering:

=IF(OR(NOT(EXACT(G2, "OK")), NOT(ISNUMBER(I2)), COUNTIF($G$2:$G$21, "OK")<ROWS($A$2:$A$21)), "", ROUND($Z$3+SUMIFS($J$2:$J$21, $D$2:$D$21, ">="&$Z$2, $D$2:$D$21, "<"&D2)-SUMIFS($F$2:$F$21, $D$2:$D$21, D2, $E$2:$E$21, "OUTFLOW"), 2))

L2, projected daily low for events after Week 13 (used by the audit):

=IF(OR(NOT(EXACT(G2, "OK")), NOT(ISTEXT(I2)), COUNTIF($G$2:$G$21, "OK")<ROWS($A$2:$A$21)), "", IF(NOT(EXACT(I2, "BEYOND_13W")), "", ROUND($Z$3+SUMIFS($J$2:$J$21, $D$2:$D$21, ">="&$Z$2, $D$2:$D$21, "<"&D2)-SUMIFS($F$2:$F$21, $D$2:$D$21, D2, $E$2:$E$21, "OUTFLOW"), 2)))

M2, projected daily low with every week reset to Z3 (used by the audit):

=IF(OR(NOT(EXACT(G2, "OK")), NOT(ISNUMBER(I2)), COUNTIF($G$2:$G$21, "OK")<ROWS($A$2:$A$21)), "", ROUND($Z$3+SUMIFS($J$2:$J$21, $I$2:$I$21, I2, $D$2:$D$21, "<"&D2)-SUMIFS($F$2:$F$21, $D$2:$D$21, D2, $E$2:$E$21, "OUTFLOW"), 2))

Block 2: 13-week schedule (P2:W15)

P2, Week 1 start (row 2 only):

=IF(OR($Z$5>0, $Z$6>0, $Z$7>0), "CHECK INPUTS", $Z$2)

P3, Weeks 2 to 13 start (fill down through row 14):

=IF(NOT(ISNUMBER(P2)), "CHECK INPUTS", P2+7)

Q2, week end (fill down through row 14):

=IF(NOT(ISNUMBER(P2)), "CHECK INPUTS", P2+6)

R2, Week 1 opening cash (row 2 only):

=IF(OR($Z$5>0, $Z$6>0, $Z$7>0), "CHECK INPUTS", ROUND($Z$3, 2))

R3, Weeks 2 to 13 opening cash (fill down through row 14):

=IF(NOT(ISNUMBER(V2)), "CHECK INPUTS", V2)

S2, weekly cash in (fill down through row 14):

=IF(OR($Z$5>0, $Z$6>0, $Z$7>0), "CHECK INPUTS", ROUND(SUMIFS($F$2:$F$21, $I$2:$I$21, O2, $E$2:$E$21, "INFLOW"), 2))

T2, weekly cash out (fill down through row 14):

=IF(OR($Z$5>0, $Z$6>0, $Z$7>0), "CHECK INPUTS", ROUND(SUMIFS($F$2:$F$21, $I$2:$I$21, O2, $E$2:$E$21, "OUTFLOW"), 2))

U2, weekly net cash (fill down through row 14):

=IF(OR(NOT(ISNUMBER(S2)), NOT(ISNUMBER(T2))), "CHECK INPUTS", ROUND(S2-T2, 2))

V2, weekly ending cash (fill down through row 14):

=IF(OR(NOT(ISNUMBER(R2)), NOT(ISNUMBER(U2))), "CHECK INPUTS", ROUND(R2+U2, 2))

W2, week status (fill down through row 14):

=IF(OR(NOT(ISNUMBER(R2)), NOT(ISNUMBER(V2)), NOT(ISNUMBER($Z$4))), "CHECK INPUTS", IF(V2<0, "NEGATIVE_CASH", IF(V2<$Z$4, "BELOW_BUFFER", IF(OR(R2<$Z$4, COUNTIFS($I$2:$I$21, O2, $K$2:$K$21, "<"&$Z$4)>0), "INTRA_WEEK_DIP", "OK"))))

P15, total row start:

=IF(NOT(ISNUMBER(P2)), "CHECK INPUTS", P2)

Q15, total row end:

=IF(NOT(ISNUMBER(Q14)), "CHECK INPUTS", Q14)

R15, total row opening cash:

=IF(NOT(ISNUMBER(R2)), "CHECK INPUTS", R2)

S15, 13-week cash in:

=IF(COUNT(S2:S14)<13, "CHECK INPUTS", ROUND(SUM(S2:S14), 2))

T15, 13-week cash out:

=IF(COUNT(T2:T14)<13, "CHECK INPUTS", ROUND(SUM(T2:T14), 2))

U15, 13-week net cash:

=IF(OR(NOT(ISNUMBER(S15)), NOT(ISNUMBER(T15))), "CHECK INPUTS", ROUND(S15-T15, 2))

V15, 13-week ending cash:

=IF(OR(NOT(ISNUMBER(R15)), NOT(ISNUMBER(U15))), "CHECK INPUTS", ROUND(R15+U15, 2))

W15, chain tie-out status:

=IF(OR(NOT(ISNUMBER(V14)), NOT(ISNUMBER(V15))), "CHECK INPUTS", IF(ROUND(V15-V14, 2)=0, "TIED_TO_W13", "MISMATCH"))

Block 3A: Source audit (Z5:Z20; Z2:Z4 are typed)

Z5, invalid rows, settings, or week labels:

=COUNTIF($G$2:$G$21, "<>OK")+IF(OR(ISFORMULA($Z$2), NOT(ISNUMBER($Z$2)), ISFORMULA($Z$3), NOT(ISNUMBER($Z$3)), ISFORMULA($Z$4), NOT(ISNUMBER($Z$4))), 1, IF(OR(INT($Z$2)<>$Z$2, $Z$2<DATE(2000,1,1), $Z$2>DATE(2100,1,1), $Z$3<0, ROUND($Z$3, 2)<>$Z$3, $Z$4<0, ROUND($Z$4, 2)<>$Z$4), 1, IF(WEEKDAY($Z$2, 2)<>1, 1, 0)))+IF(IF(AND(ISNUMBER(O2), ISNUMBER(O3), ISNUMBER(O4), ISNUMBER(O5), ISNUMBER(O6), ISNUMBER(O7), ISNUMBER(O8), ISNUMBER(O9), ISNUMBER(O10), ISNUMBER(O11), ISNUMBER(O12), ISNUMBER(O13), ISNUMBER(O14), ISTEXT(O15)), AND(O2=1, O3=2, O4=3, O5=4, O6=5, O7=6, O8=7, O9=8, O10=9, O11=10, O12=11, O13=12, O14=13, EXACT(O15, "Total_13W")), FALSE), 0, 1)

Z6, duplicate event IDs:

=IF(Z5>0, 0, COUNTIF($H$2:$H$21, ">1"))

Z7, trailing rows below the tables:

=COUNTA($A:$F)-COUNTA($A$1:$F$21)+COUNTA($O:$O)-COUNTA($O$1:$O$15)

Z8, events inside the 13 weeks:

=IF(OR(Z5>0, Z6>0, Z7>0), "CHECK INPUTS", COUNT($I$2:$I$21))

Z9, events outside the 13 weeks:

=IF(OR(Z5>0, Z6>0, Z7>0), "CHECK INPUTS", COUNTIF($I$2:$I$21, "PRIOR")+COUNTIF($I$2:$I$21, "BEYOND_13W"))

Z10, loan principal and owner draws inside the 13 weeks:

=IF(OR(Z5>0, Z6>0, Z7>0), "CHECK INPUTS", ROUND(SUMIFS($F$2:$F$21, $I$2:$I$21, ">=1", $I$2:$I$21, "<=13", $C$2:$C$21, "LOAN_PRINCIPAL", $E$2:$E$21, "OUTFLOW")+SUMIFS($F$2:$F$21, $I$2:$I$21, ">=1", $I$2:$I$21, "<=13", $C$2:$C$21, "OWNER_DRAW", $E$2:$E$21, "OUTFLOW"), 2))

Z11, 13-week cash in, summed by date straight from the register:

=IF(OR(Z5>0, Z6>0, Z7>0), "CHECK INPUTS", ROUND(SUMIFS($F$2:$F$21, $D$2:$D$21, ">="&$Z$2, $D$2:$D$21, "<="&($Z$2+90), $E$2:$E$21, "INFLOW"), 2))

Z12, 13-week cash out, summed by date straight from the register:

=IF(OR(Z5>0, Z6>0, Z7>0), "CHECK INPUTS", ROUND(SUMIFS($F$2:$F$21, $D$2:$D$21, ">="&$Z$2, $D$2:$D$21, "<="&($Z$2+90), $E$2:$E$21, "OUTFLOW"), 2))

Z13, register-to-schedule gap:

=IF(OR(NOT(ISNUMBER(Z11)), NOT(ISNUMBER(Z12)), NOT(ISNUMBER(S15)), NOT(ISNUMBER(T15)), NOT(ISNUMBER(U15))), "CHECK INPUTS", ROUND(MAX(ABS(S15-Z11), ABS(T15-Z12), ABS(U15-ROUND(Z11-Z12, 2))), 2))

Z14, Week 13 ending cash:

=IF(NOT(ISNUMBER(V14)), "CHECK INPUTS", V14)

Z15, lowest week-end cash:

=IF(COUNT(V2:V14)<13, "CHECK INPUTS", ROUND(MIN(V2:V14), 2))

Z16, projected 13-week low:

=IF(OR(NOT(ISNUMBER(R2)), COUNT(V2:V14)<13), "CHECK INPUTS", ROUND(IF(COUNT($K$2:$K$21)=0, MIN(R2, V2:V14), MIN(R2, V2:V14, $K$2:$K$21)), 2))

Z17, weeks ending below the buffer:

=IF(OR(Z5>0, Z6>0, Z7>0, COUNT(V2:V14)<13), "CHECK INPUTS", COUNTIF(V2:V14, "<"&$Z$4))

Z18, intra-week dip weeks:

=IF(OR(Z5>0, Z6>0, Z7>0, COUNT(V2:V14)<13), "CHECK INPUTS", COUNTIF(W2:W14, "INTRA_WEEK_DIP"))

Z19, chain tie-out gap:

=IF(OR(NOT(ISNUMBER(V14)), NOT(ISNUMBER(V15))), "CHECK INPUTS", ROUND(V15-V14, 2))

Z20, source audit verdict:

=IF(OR(ISFORMULA($Z$2), NOT(ISNUMBER($Z$2))), "STOP: ENTER STATIC FORECAST START MONDAY IN Z2 (NEVER VOLATILE TODAY())", IF(IF(OR(INT($Z$2)<>$Z$2, $Z$2<DATE(2000,1,1), $Z$2>DATE(2100,1,1)), TRUE, WEEKDAY($Z$2, 2)<>1), "STOP: FORECAST START DATE IN Z2 MUST BE A STATIC MONDAY (WEEKDAY 2 = 1)", IF(OR(ISFORMULA($Z$3), NOT(ISNUMBER($Z$3)), ISFORMULA($Z$4), NOT(ISNUMBER($Z$4))), "STOP: ENTER STATIC OPENING CASH (Z3) AND MINIMUM BUFFER (Z4)", IF(OR($Z$3<0, ROUND($Z$3, 2)<>$Z$3, $Z$4<0, ROUND($Z$4, 2)<>$Z$4), "STOP: OPENING CASH (Z3) AND BUFFER (Z4) MUST BE NON-NEGATIVE CENT AMOUNTS", IF(OR(COUNTIF($G$2:$G$21, "<>OK")>0, COUNTBLANK($A$2:$F$21)>0), "STOP: INVALID OR BLANK CASH EVENT ROWS", IF(Z5>0, "STOP: CHECK WEEK LABELS AND ORDER IN O2:O15 (MUST BE 1..13 AND Total_13W)", IF(Z6>0, "STOP: DUPLICATE EVENT IDS IN CASH REGISTER", IF(Z7>0, "STOP: TRAILING ROWS BELOW EVENT REGISTER OR WEEKLY TABLE (RESIZE RANGES)", IF(OR(NOT(ISNUMBER(Z13)), Z13<>0, NOT(ISNUMBER(Z19)), Z19<>0), "STOP: 13-WEEK SCHEDULE DOES NOT TIE OUT TO CASH EVENT REGISTER", "RECONCILED: 13-WEEK INTERNAL TIE-OUT (START " & TEXT($Z$2, "yyyy-mm-dd") & "; W13 END " & IF(Z14<0, "-$", "$") & TEXT(ABS(Z14), "0.00") & "; MIN WEEK-END " & IF(Z15<0, "-$", "$") & TEXT(ABS(Z15), "0.00") & "; PROJ LOW " & IF(Z16<0, "-$", "$") & TEXT(ABS(Z16), "0.00") & "; " & Z17 & " BELOW-BUFFER WK" & IF(Z17=1, "", "S") & "; " & Z18 & " INTRA-WEEK DIP WK" & IF(Z18=1, "", "S") & "; $0.00 GAP)")))))))))

Block 3B: Candidate audit (AB11:AB20; AB2:AB10 are typed)

AB11, candidate input status:

=IF(OR(LEFT(Z20, 5)="STOP:", ISFORMULA(AB2), ISFORMULA(AB3), ISFORMULA(AB4), ISFORMULA(AB5), ISFORMULA(AB6), ISFORMULA(AB7), ISFORMULA(AB8), ISFORMULA(AB9), ISFORMULA(AB10), NOT(ISNUMBER(AB9)), NOT(ISNUMBER(AB10))), "CHECK INPUTS", IF(OR(INT(AB9)<>AB9, AB9<>0, INT(AB10)<>AB10, AB10<>0), "CHECK INPUTS", IF(IF(AND(ISTEXT(AB2), ISTEXT(AB3), ISTEXT(AB4), ISTEXT(AB5), ISTEXT(AB6), ISTEXT(AB7), ISTEXT(AB8)), AND(EXACT(AB2, "NOT TESTED"), EXACT(AB3, "NOT TESTED"), EXACT(AB4, "NOT TESTED"), EXACT(AB5, "NOT TESTED"), EXACT(AB6, "NOT TESTED"), EXACT(AB7, "NOT TESTED"), EXACT(AB8, "NOT TESTED")), FALSE), "NOT TESTED", IF(OR(NOT(ISTEXT(AB2)), NOT(ISNUMBER(AB3)), NOT(ISNUMBER(AB4)), NOT(ISNUMBER(AB5)), NOT(ISNUMBER(AB6)), NOT(ISNUMBER(AB7)), NOT(ISNUMBER(AB8))), "CHECK INPUTS", IF(OR(AB3<0, ROUND(AB3, 2)<>AB3, AB4<0, ROUND(AB4, 2)<>AB4, ROUND(AB5, 2)<>AB5, ROUND(AB6, 2)<>AB6, ROUND(AB7, 2)<>AB7, INT(AB8)<>AB8, AB8<0, AB8>13), "CHECK INPUTS", "VALID")))))

AB12, cash-in gap:

=IF(EXACT(AB11, "NOT TESTED"), "NOT TESTED", IF(NOT(EXACT(AB11, "VALID")), "CHECK INPUTS", ROUND(AB3-Z11, 2)))

AB13, cash-out gap:

=IF(EXACT(AB11, "NOT TESTED"), "NOT TESTED", IF(NOT(EXACT(AB11, "VALID")), "CHECK INPUTS", ROUND(AB4-Z12, 2)))

AB14, Week 13 ending gap:

=IF(EXACT(AB11, "NOT TESTED"), "NOT TESTED", IF(NOT(EXACT(AB11, "VALID")), "CHECK INPUTS", ROUND(AB5-Z14, 2)))

AB15, lowest week-end gap:

=IF(EXACT(AB11, "NOT TESTED"), "NOT TESTED", IF(NOT(EXACT(AB11, "VALID")), "CHECK INPUTS", ROUND(AB6-Z15, 2)))

AB16, projected low gap:

=IF(EXACT(AB11, "NOT TESTED"), "NOT TESTED", IF(NOT(EXACT(AB11, "VALID")), "CHECK INPUTS", ROUND(AB7-Z16, 2)))

AB17, below-buffer week difference:

=IF(EXACT(AB11, "NOT TESTED"), "NOT TESTED", IF(NOT(EXACT(AB11, "VALID")), "CHECK INPUTS", AB8-Z17))

AB18, fields that differ from the schedule:

=IF(EXACT(AB11, "NOT TESTED"), "NOT TESTED", IF(NOT(EXACT(AB11, "VALID")), "CHECK INPUTS", IF(AB12<>0, 1, 0)+IF(AB13<>0, 1, 0)+IF(AB14<>0, 1, 0)+IF(AB15<>0, 1, 0)+IF(AB16<>0, 1, 0)+IF(AB17<>0, 1, 0)))

AB19, fields that differ from the named method’s replay:

=IF(EXACT(AB11, "NOT TESTED"), "NOT TESTED", IF(NOT(EXACT(AB11, "VALID")), "CHECK INPUTS", IF(EXACT(AB2, "CLEAN_13W_DIRECT"), AB18, IF(EXACT(AB2, "DOUBLE_COUNT_PRIOR"), IF(ROUND(AB3-ROUND(Z11+SUMIFS($F$2:$F$21, $I$2:$I$21, "PRIOR", $E$2:$E$21, "INFLOW"), 2), 2)<>0, 1, 0)+IF(ROUND(AB4-ROUND(Z12+SUMIFS($F$2:$F$21, $I$2:$I$21, "PRIOR", $E$2:$E$21, "OUTFLOW"), 2), 2)<>0, 1, 0)+IF(ROUND(AB5-ROUND(Z14+SUMIFS($J$2:$J$21, $I$2:$I$21, "PRIOR"), 2), 2)<>0, 1, 0)+IF(ROUND(AB6-ROUND(Z15+SUMIFS($J$2:$J$21, $I$2:$I$21, "PRIOR"), 2), 2)<>0, 1, 0)+IF(ROUND(AB7-ROUND(Z16+SUMIFS($J$2:$J$21, $I$2:$I$21, "PRIOR"), 2), 2)<>0, 1, 0)+IF(AB8<>SUMPRODUCT(--(($V$2:$V$14+SUMIFS($J$2:$J$21, $I$2:$I$21, "PRIOR"))<($Z$4-0.005))), 1, 0), IF(EXACT(AB2, "UNBOUNDED_HORIZON_SUM"), IF(ROUND(AB3-ROUND(Z11+SUMIFS($F$2:$F$21, $I$2:$I$21, "BEYOND_13W", $E$2:$E$21, "INFLOW"), 2), 2)<>0, 1, 0)+IF(ROUND(AB4-ROUND(Z12+SUMIFS($F$2:$F$21, $I$2:$I$21, "BEYOND_13W", $E$2:$E$21, "OUTFLOW"), 2), 2)<>0, 1, 0)+IF(ROUND(AB5-ROUND(Z14+SUMIFS($J$2:$J$21, $I$2:$I$21, "BEYOND_13W"), 2), 2)<>0, 1, 0)+IF(ROUND(AB6-ROUND(MIN(MIN($V$2:$V$13), $V$14+SUMIFS($J$2:$J$21, $I$2:$I$21, "BEYOND_13W")), 2), 2)<>0, 1, 0)+IF(ROUND(AB7-ROUND(IF(COUNT($L$2:$L$21)=0, MIN(Z16, $V$14+SUMIFS($J$2:$J$21, $I$2:$I$21, "BEYOND_13W")), MIN(Z16, $V$14+SUMIFS($J$2:$J$21, $I$2:$I$21, "BEYOND_13W"), $L$2:$L$21)), 2), 2)<>0, 1, 0)+IF(AB8<>(COUNTIF($V$2:$V$13, "<"&$Z$4)+IF(ROUND($V$14+SUMIFS($J$2:$J$21, $I$2:$I$21, "BEYOND_13W"), 2)<$Z$4, 1, 0)), 1, 0), IF(EXACT(AB2, "WEEK_END_ONLY_TROUGH"), IF(AB12<>0, 1, 0)+IF(AB13<>0, 1, 0)+IF(AB14<>0, 1, 0)+IF(AB15<>0, 1, 0)+IF(ROUND(AB7-Z15, 2)<>0, 1, 0)+IF(AB17<>0, 1, 0), IF(EXACT(AB2, "BROKEN_OPENING_CHAIN"), IF(AB12<>0, 1, 0)+IF(AB13<>0, 1, 0)+IF(ROUND(AB5-ROUND($Z$3+$U$14, 2), 2)<>0, 1, 0)+IF(ROUND(AB6-ROUND($Z$3+MIN($U$2:$U$14), 2), 2)<>0, 1, 0)+IF(ROUND(AB7-ROUND(IF(COUNT($M$2:$M$21)=0, MIN($Z$3, $Z$3+MIN($U$2:$U$14)), MIN($Z$3, $Z$3+MIN($U$2:$U$14), $M$2:$M$21)), 2), 2)<>0, 1, 0)+IF(AB8<>SUMPRODUCT(--(($Z$3+$U$2:$U$14)<($Z$4-0.005))), 1, 0), IF(EXACT(AB2, "ZERO_OPENING_CASH"), IF(AB12<>0, 1, 0)+IF(AB13<>0, 1, 0)+IF(ROUND(AB5-ROUND(Z14-$Z$3, 2), 2)<>0, 1, 0)+IF(ROUND(AB6-ROUND(Z15-$Z$3, 2), 2)<>0, 1, 0)+IF(ROUND(AB7-ROUND(Z16-$Z$3, 2), 2)<>0, 1, 0)+IF(AB8<>SUMPRODUCT(--(($V$2:$V$14-$Z$3)<($Z$4-0.005))), 1, 0), "CHECK INPUTS"))))))))

AB20, candidate audit verdict:

=IF(LEFT(Z20, 5)="STOP:", Z20, IF(IF(AND(NOT(ISFORMULA(AB9)), NOT(ISFORMULA(AB10)), ISNUMBER(AB9), ISNUMBER(AB10)), OR(INT(AB9)<>AB9, AB9<>0, INT(AB10)<>AB10, AB10<>0), TRUE), "STOP: INVALID CANDIDATE GUARD INPUTS", IF(EXACT(AB11, "NOT TESTED"), "NOT TESTED: ENTER CANDIDATE FORECAST SUMMARY", IF(EXACT(AB11, "CHECK INPUTS"), "STOP: INVALID OR NON-NUMERIC CANDIDATE FORECAST INPUTS", IF(NOT(OR(EXACT(AB2, "CLEAN_13W_DIRECT"), EXACT(AB2, "DOUBLE_COUNT_PRIOR"), EXACT(AB2, "UNBOUNDED_HORIZON_SUM"), EXACT(AB2, "WEEK_END_ONLY_TROUGH"), EXACT(AB2, "BROKEN_OPENING_CHAIN"), EXACT(AB2, "ZERO_OPENING_CASH"))), "STOP: UNKNOWN CANDIDATE FORECAST METHOD", IF(EXACT(AB2, "DOUBLE_COUNT_PRIOR"), IF(AB19>0, "STOP: CANDIDATE DOES NOT MATCH FULL 6-FIELD PRIOR-CASH REPLAY (" & AB19 & " OF 6 FIELDS DIFFER; W13 END GAP " & IF(AB14<0, "-$", IF(AB14>0, "+$", "$")) & TEXT(ABS(AB14), "0.00") & "; PROJ LOW GAP " & IF(AB16<0, "-$", IF(AB16>0, "+$", "$")) & TEXT(ABS(AB16), "0.00") & "; " & AB18 & " OF 6 FIELDS DIFFER FROM SCHEDULE)", IF(COUNTIF($I$2:$I$21, "PRIOR")=0, "STOP: DOUBLE_COUNT_PRIOR SELECTED WITH 0 PRIOR ROWS IN REGISTER (SWITCH TO CLEAN_13W_DIRECT)", "STOP: MATCHES PRIOR-CASH DOUBLE-COUNT REPLAY (W13 END " & IF(AB14<0, "-$", IF(AB14>0, "+$", "$")) & TEXT(ABS(AB14), "0.00") & "; PROJ LOW " & IF(AB16<0, "-$", IF(AB16>0, "+$", "$")) & TEXT(ABS(AB16), "0.00") & "; EXCLUDE EVENTS BEFORE " & TEXT($Z$2, "yyyy-mm-dd") & ")")), IF(EXACT(AB2, "UNBOUNDED_HORIZON_SUM"), IF(AB19>0, "STOP: CANDIDATE DOES NOT MATCH FULL 6-FIELD UNBOUNDED-HORIZON REPLAY (" & AB19 & " OF 6 FIELDS DIFFER; W13 END GAP " & IF(AB14<0, "-$", IF(AB14>0, "+$", "$")) & TEXT(ABS(AB14), "0.00") & "; INFLOW GAP " & IF(AB12<0, "-$", IF(AB12>0, "+$", "$")) & TEXT(ABS(AB12), "0.00") & "; " & AB18 & " OF 6 FIELDS DIFFER FROM SCHEDULE)", IF(COUNTIF($I$2:$I$21, "BEYOND_13W")=0, "STOP: UNBOUNDED_HORIZON_SUM SELECTED WITH 0 BEYOND-13W ROWS IN REGISTER (SWITCH TO CLEAN_13W_DIRECT)", "STOP: MATCHES UNBOUNDED-HORIZON REPLAY (W13 END " & IF(AB14<0, "-$", IF(AB14>0, "+$", "$")) & TEXT(ABS(AB14), "0.00") & "; INFLOWS " & IF(AB12<0, "-$", IF(AB12>0, "+$", "$")) & TEXT(ABS(AB12), "0.00") & "; CAP EVENTS AT " & TEXT($Z$2+90, "yyyy-mm-dd") & ")")), IF(EXACT(AB2, "WEEK_END_ONLY_TROUGH"), IF(AB19>0, "STOP: CANDIDATE DOES NOT MATCH FULL 6-FIELD WEEK-END-ONLY REPLAY (" & AB19 & " OF 6 FIELDS DIFFER; PROJ LOW GAP " & IF(AB16<0, "-$", IF(AB16>0, "+$", "$")) & TEXT(ABS(AB16), "0.00") & "; " & AB18 & " OF 6 FIELDS DIFFER FROM SCHEDULE)", IF(ROUND(Z15-Z16, 2)=0, "STOP: WEEK_END_ONLY_TROUGH SELECTED WITH NO INTRA-WEEK DIP BELOW WEEK-END MINIMUM (SWITCH TO CLEAN_13W_DIRECT)", "STOP: MATCHES WEEK-END-ONLY REPLAY (REPORTED LOW " & IF(AB16<0, "-$", "+$") & TEXT(ABS(AB16), "0.00") & " ABOVE PROJ LOW; " & IF(AB7<0, "-$", "$") & TEXT(ABS(AB7), "0.00") & " VS " & IF(Z16<0, "-$", "$") & TEXT(ABS(Z16), "0.00") & "; CHECK INTRA-WEEK TIMING)")), IF(EXACT(AB2, "BROKEN_OPENING_CHAIN"), IF(AB19>0, "STOP: CANDIDATE DOES NOT MATCH FULL 6-FIELD BROKEN-CHAIN REPLAY (" & AB19 & " OF 6 FIELDS DIFFER; W13 END GAP " & IF(AB14<0, "-$", IF(AB14>0, "+$", "$")) & TEXT(ABS(AB14), "0.00") & "; MIN WEEK-END GAP " & IF(AB15<0, "-$", IF(AB15>0, "+$", "$")) & TEXT(ABS(AB15), "0.00") & "; " & AB18 & " OF 6 FIELDS DIFFER FROM SCHEDULE)", IF(AB18=0, "STOP: BROKEN_OPENING_CHAIN SELECTED BUT CANDIDATE MATCHES CLEAN 13-WEEK SCHEDULE (SWITCH TO CLEAN_13W_DIRECT)", "STOP: MATCHES BROKEN-OPENING-CHAIN REPLAY (W13 END " & IF(AB14<0, "-$", IF(AB14>0, "+$", "$")) & TEXT(ABS(AB14), "0.00") & "; MIN WEEK-END " & IF(AB15<0, "-$", IF(AB15>0, "+$", "$")) & TEXT(ABS(AB15), "0.00") & "; PROJ LOW " & IF(AB16<0, "-$", IF(AB16>0, "+$", "$")) & TEXT(ABS(AB16), "0.00") & "; CHAIN OPENING TO PRIOR WEEK ENDING)")), IF(EXACT(AB2, "ZERO_OPENING_CASH"), IF(AB19>0, "STOP: CANDIDATE DOES NOT MATCH FULL 6-FIELD ZERO-OPENING REPLAY (" & AB19 & " OF 6 FIELDS DIFFER; W13 END GAP " & IF(AB14<0, "-$", IF(AB14>0, "+$", "$")) & TEXT(ABS(AB14), "0.00") & "; PROJ LOW GAP " & IF(AB16<0, "-$", IF(AB16>0, "+$", "$")) & TEXT(ABS(AB16), "0.00") & "; " & AB18 & " OF 6 FIELDS DIFFER FROM SCHEDULE)", IF($Z$3=0, "STOP: ZERO_OPENING_CASH SELECTED WITH $0.00 OPENING BANK BALANCE (SWITCH TO CLEAN_13W_DIRECT)", "STOP: MATCHES ZERO-OPENING-CASH REPLAY (W13 END " & IF(AB14<0, "-$", IF(AB14>0, "+$", "$")) & TEXT(ABS(AB14), "0.00") & "; PROJ LOW " & IF(AB16<0, "-$", IF(AB16>0, "+$", "$")) & TEXT(ABS(AB16), "0.00") & "; ANCHOR R2 TO $" & TEXT($Z$3, "0.00") & " BANK BALANCE)")), IF(AB18>0, "STOP: " & AB18 & " OF 6 CANDIDATE FORECAST METRICS DIFFER FROM 13-WEEK SCHEDULE (IN GAP " & IF(AB12<0, "-$", IF(AB12>0, "+$", "$")) & TEXT(ABS(AB12), "0.00") & "; OUT GAP " & IF(AB13<0, "-$", IF(AB13>0, "+$", "$")) & TEXT(ABS(AB13), "0.00") & "; W13 END GAP " & IF(AB14<0, "-$", IF(AB14>0, "+$", "$")) & TEXT(ABS(AB14), "0.00") & "; PROJ LOW GAP " & IF(AB16<0, "-$", IF(AB16>0, "+$", "$")) & TEXT(ABS(AB16), "0.00") & "; BELOW-WK DIFF " & IF(AB17>0, "+", "") & AB17 & ")", "RECONCILED: ALL 6 FORECAST METRICS MATCH 13-WEEK SCHEDULE ($" & TEXT(AB3, "0.00") & " IN; $" & TEXT(AB4, "0.00") & " OUT; " & IF(AB5<0, "-$", "$") & TEXT(ABS(AB5), "0.00") & " W13 END; " & IF(AB6<0, "-$", "$") & TEXT(ABS(AB6), "0.00") & " MIN WEEK-END; " & IF(AB7<0, "-$", "$") & TEXT(ABS(AB7), "0.00") & " PROJ LOW; " & AB8 & " BELOW-BUFFER WK" & IF(AB8=1, "", "S") & ")")))))))))))

Continue Reading

Email Notifications

Get notified when new Practical Analytics articles are published.

Field notes on table grain, trustworthy KPIs, and AI-assisted data workflows for small and medium businesses. Sent only when a new guide goes live.

No spam or automated drip funnels. Unsubscribe anytime.