LearnFinance
← Spreadsheets & Python for Finance Lesson 3 of 6 · 16 min · +50 XP
Spreadsheets & Python for Finance · Lesson 03

A clean model: inputs, checks and scenarios

A model is only useful if others can follow it, trust it and change it safely. How to separate inputs, calculations and outputs; colour-code and label consistently; build checks that flag errors automatically; switch between bear, base and bull cases with one cell, worked step by step with a calculator; read a two-way sensitivity table; and the copy-paste spreadsheet errors behind JPMorgan's 2012 'London Whale' loss.

Facts reviewed Oct 2026

Financial Modelling showed how to build three-statement, DCF and deal models. Whatever the model, the same habits decide whether it can be trusted.

Studies of real spreadsheets regularly find errors in a large share of them. Some famous mistakes have cost billions. This lesson is about building models that make errors hard to make and easy to spot.

Structure: inputs, calculations, outputs

  • Inputs (assumptions) go in one place: a separate sheet, or a block at the top. Growth rates, prices, costs, tax rates, dates. Each input appears once.
  • Calculations refer to the inputs, never to typed-in numbers. A formula like =B5*1.18 hides an assumption. Is 18% GST? Growth? It should be its own labelled input.
  • Outputs (summary tables, charts, key numbers) pull from the calculations.
  • Flow left to right and top to bottom. Keep the same column layout on every sheet, so column F is the same year everywhere.
Quick check

A colleague's model has =C12*1.075 in the revenue row. What's the problem?

Formatting conventions

The common standard in banks and consulting firms:

  • Blue text for typed-in inputs;
  • Black for formulas;
  • Green for links to other sheets.

Add units to every label (₹ crore, %, units). Keep one formula per row, copied across, so a row never mixes formulas and typed numbers.

Checks: let the model test itself

Build checks that should always equal zero, and gather them on one sheet:

  • The balance sheet balances: assets − liabilities − equity = 0.
  • Totals reconcile: segments add up to total revenue; the cash flow’s closing cash equals the balance sheet’s cash.
  • Sign checks: no negative stock or debt.
  • Error checks: count errors across the model with ISERROR.

Worked example: a reconciliation check. Revenue is ₹110 crore, split between Segment A (60%) and Segment B (40%).

  1. Segment A: ₹110 × 60% = ₹66 crore.
  2. Segment B: ₹110 × 40% = ₹44 crore.
  3. Check cell: = A + B − total = 66 + 44 − 110 = 0. All good.
  4. Now someone types Segment B’s share as 45% by mistake. B becomes ₹49.5 crore, and the check shows 5.5. The error is caught at once.

Add a single master check cell. It adds up the absolute values of all the checks, and turns red if the total isn’t zero. Every user can then see at a glance whether the model is sound.

Scenarios with a switch

Don’t keep separate copies of a model for different views. Use one scenario switch cell (1 = bear, 2 = base, 3 = bull), and pick each assumption with CHOOSE:

  • Revenue growth: =CHOOSE($B$1, -5%, 10%, 20%)
  • Gross margin: =CHOOSE($B$1, 35%, 40%, 43%)

Change one cell, and the whole model updates.

Worked example. A made-up business had ₹100 crore of revenue last year. Its fixed costs are ₹30 crore.

  1. Base (switch = 2): growth 10%, so revenue = ₹110 crore. Gross margin 40%, so gross profit = ₹44 crore. Operating profit = ₹44 − ₹30 = ₹14 crore.
  2. Bear (switch = 1): revenue ₹95 crore × 35% = ₹33.25 crore gross profit. Operating profit = ₹3.25 crore.
  3. Bull (switch = 3): revenue ₹120 crore × 43% = ₹51.6 crore. Operating profit = ₹21.6 crore.

Revenue moves between ₹95 and ₹120 crore: from about 14% below the base to 9% above it. Operating profit swings between ₹3.25 and ₹21.6 crore, a range of more than 6 times. That’s operating leverage: fixed costs magnify every change in revenue.

A model with a scenario switch and a check
Revenue growth used
10%
Revenue (₹ crore)
110
Gross profit (₹ crore)
44
Operating profit (₹ crore)
14
Check: segments − total (should be 0)
0

The defaults (base): revenue ₹110 crore, gross profit ₹44 crore, operating profit ₹14 crore. Bear: ₹95 crore, ₹33.25 crore and ₹3.25 crore. Bull: ₹120 crore, ₹51.6 crore and ₹21.6 crore. Operating leverage makes profit swing far more than revenue.

Sensitivity tables

A data table (What-If Analysis → Data Table in Excel) shows how an output changes across a grid of two inputs. It shows which assumptions really matter. (Corporate Finance & Valuation uses these for DCF models.)

Worked example. A business will produce ₹10 crore of free cash flow next year, growing forever. Its value = cash flow × (1 + growth) ÷ (discount rate − growth). Here’s the grid, in ₹ crore:

Discount rate ↓ / Growth →4%5%6%
11%149175212
12%130150177
13%116131151
  1. Base case (12%, 5%): ₹150 crore.
  2. One point less discount rate (11%, 5%): ₹175 crore, 17% more.
  3. Both moves together (11%, 6%): ₹212 crore, 41% more.

Small changes in two inputs nearly halve or double the value. A sensitivity table makes that visible, instead of hiding it behind one precise-looking number.

A real case: JPMorgan’s “London Whale”, 2012

In 2012, a JPMorgan trading desk in London, nicknamed the “London Whale”, built up huge bets on credit derivatives. The bets went wrong, and the bank lost about $6 billion.

The bank’s own task force report, in January 2013, found problems in a new risk model used for the trades. The model ran through a series of Excel spreadsheets, updated by manually copying and pasting data. And one formula divided by the sum of two rates instead of their average. That halved part of the calculation and made the portfolio’s risk look smaller than it was.

No check flagged it. A model with labelled inputs, a reconciliation against an independent calculation, and a master check would have had a far better chance of catching it.

Documentation and version control

  • A cover sheet with the model’s purpose, author, date, version and key assumptions.
  • Notes on sources next to inputs: “Growth: management guidance, Q2 call”.
  • Saved versions with dates, or version history, so you can trace changes.
  • No circular references unless deliberate, such as interest on average debt. Then add an on/off switch.

Going further: why copy-paste is so dangerous. Copying data into a model by hand has three silent failure modes. You can paste into the wrong range, shifting every row by one. You can paste values over formulas, freezing a number that should update. Or you can miss new rows, when the source grew but your paste didn’t. None of these shows an error. Safer habits: link to source data instead of pasting it, and use tables that grow automatically. Then add a check that compares a total in your model with the same total in the source. In larger teams, moving repeated steps into code, as the next lessons do in Python, removes the manual step entirely.

Common mistakes

  • Typing numbers into formulas. Make every assumption a labelled input.
  • Mixing formulas and typed numbers in one row. Copy one formula across.
  • Keeping several copies of a model for scenarios. Use one switch.
  • No checks. Build checks that should equal zero, and a master check.
  • Copying and pasting data by hand. Link to sources, and reconcile totals.
Practice 1: In the bull scenario, what operating profit does the model give, and how much more is that than the base case?
  1. Revenue: ₹100 crore × 1.20 = ₹120 crore.
  2. Gross profit: ₹120 crore × 43% = ₹51.6 crore.
  3. Operating profit: ₹51.6 − ₹30 = ₹21.6 crore.
  4. Compared with base: ₹21.6 ÷ ₹14 − 1 = about 54% more, from revenue only about 9% higher.

Set the scenario to 3 in the calculator to check.

Practice 2: Using the sensitivity table, what happens to value if the discount rate rises to 13% and growth falls to 4%, from the base case?
  1. Base: ₹150 crore.
  2. New cell (13%, 4%): about ₹116 crore.
  3. Change: ₹116 ÷ ₹150 − 1 = about −23%.

Two modest changes in assumptions cut the value by nearly a quarter.

Key takeaways

  • Separate inputs, calculations and outputs. Each assumption appears once; no numbers hidden in formulas.
  • Use consistent colours (blue inputs, black formulas, green links), units, and one formula per row.
  • Build checks that should equal zero, and a master check.
  • Use a scenario switch with CHOOSE, and sensitivity tables to show which assumptions matter. In the example, operating profit ranged from ₹3.25 to ₹21.6 crore.
  • Manual copy-paste and an unchecked formula helped hide the risk behind JPMorgan’s 2012 loss of about $6 billion.

Go deeper

Complete this lesson
Pass the quiz below (60% or more) to earn +50 XP and unlock the next lesson.
Quiz not passed yet
🧠

Quiz: A clean model: inputs, checks and scenarios

5 questions · pass 60% to complete