Sub topic 7
Building the Outputs Layer
This chapter assumes you can build basic formulas and references in a spreadsheet and know the three core financial statements. It also assumes you have read the earlier chapters on the inputs and calculations layers. Here you will build the third layer, the one readers actually look at.
What the outputs layer is for
The outputs layer presents results from the calculations layer. It is the part of the model that managers, lenders, and investors read. It answers questions such as "What is net income in year 3?" and "How does the downside scenario compare with the base case?"
The central rule is that the outputs layer adds no new logic. Every number on it is either a link to a calculation cell or a selection from calculation cells. If you need a new number, such as a margin or a growth rate, compute it in the calculations layer first. Then link to it.
This rule has three practical benefits:
- There is one place to audit each calculation. A reviewer who traces a number never finds a second version of the math on a report page.
- Reports can be redesigned freely without changing any result.
- Two reports that show the same metric cannot disagree, because both point at the same cell.
Data flow into outputs
Information moves in one direction. Outputs read from calculations. Calculations read from inputs. Nothing reads from outputs.
If a formula on an output sheet is referenced by a calculation, flow has reversed. This is a structural error even when the model appears to work. It makes the order of calculation hard to follow and often leads to circular references.
What belongs on an outputs sheet
| Content | Belongs in outputs? | Reason |
|---|---|---|
| Link to net income for each year | Yes | Pure presentation of a calculated result |
| Annual totals picked from a monthly calculation | Yes, if already computed in calculations | Output only selects the figure |
| A new ratio such as EBIT margin | No | Compute in calculations, then link |
| A tax rate typed next to a chart | No | That is an input and belongs on the inputs sheet |
| Scenario name shown in the title | Yes | Link to the scenario selector input |
| Check status message | Yes | Link to the master check |
Some modelers allow simple subtotals on outputs. A stricter team rule is easier to enforce and to audit, so this chapter uses the strict version.
Building a summary table
A good summary table has a clear title, a stated unit, a consistent time axis, and only links. The example below uses the same column layout as the calculations sheet, so each output column lines up with the calculation column it reads from.
Outputs!B2 = IF(Checks!C10=0, "All checks pass", "CHECK ERRORS: "&Checks!C10)
Outputs!B3 = "Scenario: "&Inputs!C4
Outputs!B4 = "Currency: "&Inputs!C3&", units: "&Inputs!C7
Outputs!E8 = Calc!E10 (revenue)
Outputs!E9 = Calc!E14 (EBIT)
Outputs!E10 = Calc!E18 (net income)
Outputs!E11 = Calc!E19 (EBIT margin, computed in Calc)Notice that the header strings are built from input cells. If someone changes the currency or the scenario, the report titles change with them. A title typed by hand will go stale.
Choosing periods to show
Calculations are often monthly or quarterly, while reports are annual. Handle this in the calculations layer. Add an annual block there, built with SUMIF over a year-label row or with a consistent column-offset formula. The outputs sheet then links to the annual block. Keeping the aggregation out of outputs means the annual totals can be checked against the periodic totals by an integrity check.
Units and scaling
Reports are often shown in thousands or millions. There are two ways to do this:
- Apply a number format that displays the value scaled, leaving the stored value unchanged.
- Divide by a scale factor stored as an input, such as
Inputs!$C$7.
Avoid typing /1000 inside output formulas. That is a hardcoded constant, and it silently breaks if someone changes the unit. A number format is safer for display. If you must divide, use the input cell.
The same idea in code
The Python version of the three-layer model shows the principle clearly. The report function below receives finished results and only formats them. All metrics, including the margin, are computed inside calculate.
inputs = {
"revenue_year1": 1_000_000,
"growth_rate": 0.10,
"cogs_pct": 0.60,
"opex": 150_000,
"tax_rate": 0.25,
"years": 3,
"display_unit": 1_000, # divide for display, kept as an input
"unit_label": "thousands",
"scenario": "Base",
}
def calculate(inp):
rows = []
revenue = inp["revenue_year1"]
for year in range(1, inp["years"] + 1):
if year > 1:
revenue = revenue * (1 + inp["growth_rate"])
ebit = revenue * (1 - inp["cogs_pct"]) - inp["opex"]
tax = max(ebit, 0) * inp["tax_rate"]
rows.append({
"year": year,
"revenue": revenue,
"ebit": ebit,
"ebit_margin": ebit / revenue,
"net_income": ebit - tax,
})
return rows
def report(rows, inp, checks_failed=0):
status = "All checks pass" if checks_failed == 0 else f"CHECK ERRORS: {checks_failed}"
print(f"Scenario: {inp['scenario']} | Currency units: {inp['unit_label']} | {status}")
print(f"{'Year':<6}{'Revenue':>12}{'EBIT':>12}{'Margin':>10}{'Net income':>14}")
scale = inp["display_unit"]
for r in rows:
print(
f"{r['year']:<6}"
f"{r['revenue'] / scale:>12,.0f}"
f"{r['ebit'] / scale:>12,.0f}"
f"{r['ebit_margin']:>10.1%}"
f"{r['net_income'] / scale:>14,.0f}"
)
report(calculate(inputs), inputs)The report function does divide by the scale, but the scale comes from inputs, and the division is only for display. It never decides how a figure is derived.
Scenario comparison outputs
A comparison table shows base, upside, and downside results side by side. There are two common designs:
- Live scenario only. The model runs one scenario at a time, chosen by a selector. Outputs show whichever scenario is active. This is simple, but you cannot see two cases at once.
- Stored results. Each scenario's results are saved to a results block, using a data table or a macro that pastes values. Outputs read from that block.
Stored results can go stale. If the model changes and the stored block is not refreshed, the comparison shows old numbers. Add a timestamp or a check that compares the stored value for the active scenario against the live result. Flag a difference as an error.
Charts and dashboards
Charts should read from a small, labeled block on the outputs sheet, and that block should be linked to calculation cells. Do not point a chart directly into the middle of the calculations sheet. If someone inserts a row there, the chart range may change in ways nobody notices. A dedicated chart data block also gives you a single place to see exactly what the chart shows.
Common mistakes
- Typed numbers on a report. A pasted value looks like a link but never updates. Use cell-by-cell inspection or a "show formulas" view to find them.
- New math on outputs. A margin computed on the report page is invisible to the calculation checks. Move it down to the calculations layer.
- Calculations reading from outputs. This reverses the flow. Point the calculation at the underlying calculation cell instead.
- Hidden rows and columns. Hidden items on a report can hide stale or wrong numbers. Prefer grouping or a separate sheet.
- Ignoring the check status. A polished report with failing checks is dangerous. Make the status prominent.
Exercises
Exercise
A colleague adds the formula =Calc!E10/Calc!E14 to a cell on the Outputs sheet to show a margin, and a chart uses it. Why does this break the structure, and how should you fix it?
Show answer
It puts new logic on the outputs layer, so the ratio is not covered by calculation-layer checks and may be duplicated elsewhere. Add the margin row to the calculations sheet with the same formula across the time axis, then change the output cell to a simple link such as =Calc!E19.
Exercise
Your report shows figures in thousands. One analyst wrote =Calc!E10/1000 in every output cell. Give two better approaches and say which risk each removes.
Show answer
Use a number format that displays thousands, which leaves the stored value unchanged and avoids a hardcoded constant. Or store the scale factor as an input (for example Inputs!$C$7) and reference it, so a unit change is made once and every report follows.
Exercise
A scenario comparison table holds pasted values for Base, Upside, and Downside. Describe a check that detects when it has gone stale.
Show answer
Compare the stored result for the currently selected scenario with the live result from Calc, using a tolerance such as ABS(stored-live)<0.01. Return 0 when they match and 1 when they differ, add the result to the master check total, and show the failure on the outputs page.