Sub topic 2
Separating inputs, calculations, and outputs
This chapter assumes you can write formulas with cell references, format cells, and read an income statement and balance sheet at an introductory level. It also assumes you know what a forecast model with historical and projected periods looks like. Later chapters cover colours, signs, and labels in detail. This chapter covers the layout those conventions sit on.
Why layout comes first
Colour and number formats help a reviewer only if the model has a predictable shape. If an assumption is typed inside a formula on row 140, no font colour will make it visible. Separating a model into three kinds of content gives every figure a clear home:
- Inputs are values a person types in and can change: growth rates, tax rates, opening balances, historical figures.
- Calculations are formulas that turn inputs into results: forecast revenue, depreciation, the three statements.
- Outputs are the results a reader came for: summary tables, charts, valuation, key ratios.
The rule that holds this together is simple. Every number that a person might want to change lives in exactly one input cell. Everything else is a formula that traces back to those cells.
The flow of information
Information should travel in one direction: from inputs, through calculations, to outputs. Outputs never feed back into calculations, and calculations never contain typed numbers.
A one-way flow makes review faster. To check a result, you follow it backwards through precedents until you reach blue input cells. If a calculation depends on an output, you have a circular path of logic that is hard to follow, even when Excel does not flag a circular reference.
Three layouts for the separation
Teams use three common ways to organise the three kinds of content. None is universally correct. Choose one, and apply it to the whole model.
| Layout | How it works | Strength | Weakness |
|---|---|---|---|
| Separate sheets | An Inputs sheet, one or more Calculations sheets, an Outputs sheet | Very clear boundaries, easy to protect the input sheet | Formulas need cross-sheet links, so reviewers jump between tabs |
| Sections on one sheet | Inputs at the top, calculations in the middle, outputs at the bottom or side | Everything is visible together, short formulas | The sheet grows long and the boundaries rely on headers |
| Hybrid | Global inputs on one sheet, local inputs beside the calculations that use them | Practical for large models with many schedules | Needs a clear rule for what counts as global |
For a model of modest size, such as a single company with three statements, a separate Inputs sheet and a separate Outputs sheet around one or more calculation sheets works well. For larger models, a hybrid layout is common, but it needs discipline. If some inputs sit on the Inputs sheet and others sit in schedules, document which is which on the cover sheet (a later chapter covers this).
A typical workbook structure
A typical workbook for a three-statement forecast might contain these sheets, in this order:
- Cover: title, version, author, legend, and the overall check cell.
- Inputs: all assumptions, scenario selectors, and historical data.
- Calcs (or one sheet per schedule, such as Revenue, Debt, Tax): the working that turns inputs into forecasts.
- Statements: income statement, balance sheet, and cash flow statement.
- Outputs: summary tables, ratios, charts.
- Checks: the individual check rows that roll up to the cover sheet.
The order matters because it matches the reading order. A new user starts at the cover, moves to the inputs to see what drives the model, and ends at the outputs.
Consistent structure across sheets
Separation is only useful if the sheets line up with each other. Two rules do most of the work.
Keep the timeline in the same columns on every sheet. If 2026 forecast revenue sits in column F of the Inputs sheet, it should sit in column F on the Calcs sheet and the Statements sheet too. Then a formula such as =Inputs!F12*Calcs!F8 refers to the same column in both places, and you can copy it across a row without error. When columns drift between sheets, reviewers have to read column letters instead of formulas.
Keep each row's formula the same across the row. A forecast row should use one formula from the first forecast column to the last. If the formula changes partway across, the change is a hidden assumption. When you need a different rule in a particular year, put the difference in an input row (for example, a flag row of 1s and 0s) rather than a different formula.
Worked example: removing a buried assumption
Consider a revenue forecast written the quick way:
Row 10 Revenue 2025A: 1,000 2026F: =C10*1.08 2027F: =D10*1.08The growth rate of 8% is typed inside two formulas. To change it, you must edit every forecast cell, and a reviewer cannot see the assumption at a glance. If one cell is edited and another is missed, the model quietly contains two growth rates.
The separated version moves the rate to an input row and makes the calculation row consistent:
INPUTS
Row 5 Revenue growth 2026F: 8.0% 2027F: 8.0%
CALCULATIONS
Row 10 Revenue 2025A: 1,000 2026F: =C10*(1+D5) 2027F: =D10*(1+E5)Here the 8.0% appears in two input cells, one for each year, so growth can differ by year. If you want a single rate for all years, enter it once and have the later years link to the first (=D5). Either way, every assumption is visible, and the formula in row 10 is the same shape in every forecast column.
You can build the same pattern with openpyxl. This script creates two sheets and links a calculation to an input. It colours the input blue, in line with the colour scheme covered in the next chapter.
from openpyxl import Workbook
from openpyxl.styles import Font
wb = Workbook()
inputs = wb.active
inputs.title = "Inputs"
calcs = wb.create_sheet("Calcs")
# Inputs sheet: labels in column A, one value per year in C:D
inputs["A1"] = "Inputs"
inputs["A3"] = "Revenue growth"
inputs["B3"] = "%"
inputs["C3"] = 0.08
inputs["D3"] = 0.08
for ref in ("C3", "D3"):
inputs[ref].font = Font(color="0000FF")
inputs[ref].number_format = "0.0%"
# Calcs sheet: same columns as Inputs (C = 2026F, D = 2027F)
calcs["A1"] = "Calculations"
calcs["A3"] = "Revenue"
calcs["B3"] = "USD"
calcs["B2"] = "2025A"
calcs["B4"] = 1000
calcs["C3"] = "=B4*(1+Inputs!C3)"
calcs["D3"] = "=C3*(1+Inputs!D3)"
calcs["B4"].font = Font(color="0000FF")
wb.save("separated_model.xlsx")Note that the script keeps 2026F and 2027F in columns C and D on both sheets. That alignment is what lets a reviewer compare Calcs!C3 with Inputs!C3 without hunting.
Edge cases and common errors
Hardcodes inside formulas. A formula like =D10*1.08 or =D10-5000 mixes an input with a calculation. Even small constants count. The exceptions are structural constants that never change, such as 12 months in a year or 1000 when converting units. Even then, many modelers put unit conversions in a labelled cell so the conversion is visible.
Inputs scattered through calculation sheets. A typed number in the middle of a schedule is easy to miss. If you must keep local inputs beside a schedule, give them a distinct section at the top of that schedule and format them as inputs.
Calculated numbers pasted as values. If you paste a result over a formula, the cell looks like a calculation but behaves like an input. This breaks the model when upstream inputs change. If you need a frozen figure, such as last year's actual result, label it as historical data and format it as an input.
Outputs that feed calculations. A summary table that a calculation reads from creates a hidden dependency. If someone changes the layout of the summary, the model breaks somewhere unexpected. Point calculations at the original calculation cells instead.
Duplicate inputs. If the tax rate is entered on both the Inputs sheet and a Tax schedule, the two can drift apart. Enter it once and link everywhere else.
Scenario switches in the wrong place. A scenario selector is an input, so it belongs on the Inputs sheet. Placing it on the Outputs sheet is tempting because users want to flip it while reading results. If you do that, make the output-sheet cell the single source and treat it explicitly as an input, with input formatting.
Checking that the separation holds
You can test the structure with a few quick habits:
- Select a calculation cell and use Trace Precedents. The arrows should lead to other calculations or to input cells, and never to an output.
- Use Go To Special, then Constants, on calculation sheets to find typed numbers.
- Change one input and confirm that only calculation and output cells move. If an input change leaves an expected result unchanged, a value has been hardcoded somewhere.
- Print or view the Inputs sheet alone. A reader should be able to see every assumption without opening another tab.
The full audit workflow appears in the last chapter of this tutorial. For now, the point is that a well-separated model is easy to test with these simple tools.
Summary of the layout rules
- Put every changeable number in one input cell, and nowhere else.
- Let information flow from inputs to calculations to outputs, never backwards.
- Choose a layout (separate sheets, sections, or hybrid) and use it throughout.
- Keep timeline columns aligned across sheets.
- Keep each calculation row's formula consistent across its columns.
- Treat pasted values and constants in formulas as inputs, and format them accordingly.
Exercise
A forecast row contains the formula =E20*(1+0.05) in column F, and =F20*(1+0.05) in column G. Name two problems with this design and describe how you would restructure it.
Show answer
First, the 5% growth assumption is typed inside the formulas, so it is hidden from reviewers, and changing it means editing every forecast cell, with the risk of missing one. Second, there is no input cell that can differ by year or be changed by scenario. To fix it, add a growth input row on the Inputs sheet (for example F5 and G5, one per year, formatted as inputs), then change the formulas to =E20*(1+Inputs!F5) and =F20*(1+Inputs!G5). Keep the same columns on both sheets so the formula has the same shape across the row.
Exercise
You change the tax rate on the Inputs sheet, but net income does not change. List two structural causes related to input and calculation separation, and one tool that helps you find them.
Show answer
One cause is that the tax calculation holds a hardcoded rate instead of linking to the input, or links to a second duplicate tax-rate cell that was not updated. Another is that a formula was pasted over as a value, so the cell no longer responds to upstream changes. Trace Precedents on the tax cell shows where it links, and Go To Special, then Constants, on the calculation sheet finds typed numbers that should be formulas.