Sub topic 12
Published Standards and House Styles
This chapter assumes you already apply the colour, sign, number-format, label and check conventions from the earlier chapters. It covers where those conventions come from, how published standards differ from firm-level house styles, and what to do when two sets of rules disagree.
Two kinds of rules
A formatting convention comes from one of two places.
- A published standard is written by an industry body, professional institute or training company and is available to anyone. Examples are the FAST Standard, the ICAEW Financial Modelling Code and the Corality SMART methodology.
- A house style is a set of rules inside one firm, team or client organisation. It is often a template workbook plus a short guide. A bank's modelling team, an audit firm's valuation group and a corporate FP&A department each tend to have one.
The two overlap heavily but serve different purposes. A published standard tries to be neutral and portable. A house style tries to make every model from one organisation look the same, so a reviewer can open any file and know where things are.
What the published standards cover
Most published standards are about model design and only partly about formatting. They usually address:
- How the workbook is structured, such as separating inputs, calculations and outputs.
- Formula consistency, such as one formula per row and no hardcoded numbers inside formulas.
- Documentation and change control.
- Checks and error handling.
Formatting appears in these standards as a means to those ends. Colour coding is recommended because it exposes hardcodes. Sign conventions are recommended because mixed signs cause silent errors.
| Source | Type | Main emphasis | How prescriptive on formatting |
|---|---|---|---|
| FAST Standard | Published, open | Flexible, Appropriate, Structured, Transparent: structure and formula discipline | Prescribes layout and consistency rules; check its current text for any colour rules |
| ICAEW Financial Modelling Code | Published, open | Principle-based guidance on model quality and review | Principle-based; it does not give a colour palette |
| Corality SMART | Published methodology, commercial training | Structured, auditable modelling | Detailed practices, taught on its courses |
| Bank or advisory house style | Internal | Consistency across a team's output | Often fully prescriptive: exact colours, fonts and number formats |
| Client or lender template | External, imposed | Compatibility with the client's review process | Fully prescriptive for that engagement |
Treat the table as a map and read the current version of any standard before you cite it. These documents are revised, and a rule you remember may have changed.
What typically differs between house styles
The following are the same in nearly every style, so you can rely on them:
- Hardcoded inputs are visually distinct from formulas.
- Costs and cash outflows follow one stated sign convention.
- Units are stated on every row or block.
- Checks roll up to one visible summary.
These are where styles diverge, so you must look them up each time:
- Link colours. Green for links to other sheets is common. Some styles use green for any cross-sheet link, and some also colour links to other files red, as in the font colour table from earlier in this tutorial.
- Fill colours. Light yellow for inputs is widespread. Other styles reserve fill for check cells only.
- Sign convention. Some styles show costs as negatives so subtotals use
SUM. Others show costs as positive numbers and subtract them. - Negative format. Parentheses are standard in finance, but some styles use a minus sign or red text.
- Multiples and percentages. One decimal place is common, but not universal.
- Fonts and grid. Font family, gridlines on or off, and header fill colours.
Choosing which rules apply
When several sources apply, follow a fixed order of precedence. A common one is:
- The client's or lender's template, if one is mandated.
- Your firm's house style.
- A published standard your organisation has adopted.
- Your own documented choices, written on the cover sheet.
The last step matters in every branch. Whatever you chose, write it on the cover sheet and legend so a reviewer does not have to guess which rule set was in force.
Conflicts between rule sets
Conflicts come up in practice, and there are three common cases.
A standard and the house style disagree. The house style normally wins, because the firm has adopted it deliberately. If the disagreement is a real quality problem, such as the house style allowing hardcodes inside formulas, raise it with the owner of the style instead of quietly deviating.
A client template and your own model disagree. If you must paste your calculations into a client template, convert your formatting on the way in. A mixed result is the worst outcome. Where the template leaves something unspecified, such as the sign convention, fill the gap with your house style and record it in the template's notes.
The inherited model follows no style. Do not reformat it wholesale during a time-pressured review. First audit it, then agree with the model owner whether a restyle is in scope. A restyle changes a lot of cells and makes the version history hard to compare.
Encoding a house style as a checkable profile
A written style guide is easier to enforce when a script can read it. The sketch below stores a font colour profile as data and reports cells whose font colour breaks it. It classifies each cell by content: a numeric constant is an input, a formula that references another sheet is a link, and any other formula is a calculation.
from openpyxl import Workbook
# House style: expected font colour (RGB hex) per cell role.
PROFILE = {"input": "0000FF", "formula": "000000", "link": "008000"}
def font_rgb(cell):
"""Return the font colour as 6-digit hex; treat default or theme colours as black."""
color = cell.font.color
if color is None or color.type != "rgb" or not isinstance(color.rgb, str):
return "000000"
return color.rgb[-6:].upper()
def role(cell):
value = cell.value
if isinstance(value, str) and value.startswith("="):
return "link" if "!" in value else "formula"
if isinstance(value, (int, float)) and not isinstance(value, bool):
return "input"
return None # text labels, blanks: not checked
def audit(wb, profile):
findings = []
for ws in wb.worksheets:
for row in ws.iter_rows():
for cell in row:
r = role(cell)
if r is None:
continue
actual = font_rgb(cell)
if actual != profile[r]:
findings.append(
f"{ws.title}!{cell.coordinate}: {r} expected {profile[r]}, found {actual}"
)
return findings
wb = Workbook()
assumptions = wb.active
assumptions.title = "Assumptions"
model = wb.create_sheet("Model")
assumptions["B2"] = 0.08
assumptions["B2"].font = assumptions["B2"].font.copy(color="0000FF")
assumptions["B3"] = 1000 # hardcode left in default black
model["B2"] = "=Assumptions!B2" # link left in black
model["B3"] = "=B2*100"
model["B4"] = "=B3+B3"
model["B4"].font = model["B4"].font.copy(color="0000FF") # formula wrongly blue
for line in audit(wb, PROFILE):
print(line)Running it prints:
Assumptions!B3: input expected 0000FF, found 000000
Model!B2: link expected 008000, found 000000
Model!B4: formula expected 000000, found 0000FFTo check a different house style, change only PROFILE. For example, a style that colours links to other workbooks red would need an extra role and a test for [ in the formula. The script does not replace a proper review, because it cannot see theme colours, mixed formulas that contain both a link and a calculation, or fills. It does turn a style guide into a repeatable check.
Practical advice
- Keep a style note with each model. One line on the cover sheet such as "Formatting: Firm style v3, costs negative" prevents most disputes.
- Prefer a template over memory. Start every model from the firm's template workbook so styles, number formats and the check summary are already present.
- Do not rely on colour alone. Some reviewers are colour-blind, and printouts are often black and white. Back the colour code with labels, units columns and a clearly marked input section.
- Version the style. If the house style changes, record the version in the model so old files are not judged against new rules.
- Cite standards precisely. Say "the ICAEW Financial Modelling Code" or "our modelling guide v3", not "best practice". A reviewer can check the first two.
Exercise
You inherit a model that uses blue for inputs and black for formulas, but it shows costs as positive numbers and subtracts them. Your firm's house style shows costs as negatives and uses SUM for subtotals. The model owner asks you to add a new forecast sheet. Which style should the new sheet follow, and what should you record?
Show answer
Follow the convention already in force in the workbook for the new sheet, so costs stay positive, because mixing sign conventions inside one workbook is the bigger risk. Record the sign convention on the cover sheet and legend, and note that it differs from the firm style. Raise the difference with the model owner and agree whether a full conversion to the house style is in scope. Do not convert part of the model unilaterally.
Exercise
In the audit script, how would you change it so that formulas linking to another workbook (containing "[") are expected to be red, using the colour table from earlier in this tutorial?
Show answer
Add a "filelink" entry to PROFILE with the red RGB value, for example "FF0000". In role(), test for "[" in the formula before testing for "!", and return "filelink" in that case. Linking to another file also references a sheet name with "!", so the file-link test must come first.