Sub topic 3
Font Colours: Blue Inputs, Black Formulas, Green Links
Font colour is the fastest signal in a financial model. A reviewer who opens a sheet should be able to tell, without clicking, which numbers someone typed and which numbers the model calculated. This chapter covers the standard colour scheme, why it works, how to apply it by hand and by script, and the errors that break it.
Prerequisites
This chapter assumes you can enter formulas, use relative and absolute cell references, and format cells in Excel or Google Sheets. It also assumes you know the layout from the previous chapter: inputs, calculations, and outputs kept in separate areas of the model. Python experience helps for the scripting section but is not required for the rest.
Why colour carries so much weight
Every cell in a model is one of three things: a number someone typed, a formula that computes a result, or a reference that pulls a value from somewhere else. These behave very differently when you change the model.
- Overwrite a typed number and you change an assumption on purpose.
- Overwrite a formula with a typed number and you silently break the model. This is called a hardcode inside a formula row, and it is one of the most common causes of wrong outputs.
- Change a source cell that a link points to and every dependent sheet or file changes with it.
Colour makes these cases visible. A blue number in the middle of a row of black formulas is easy to spot. A black number that is really a typed constant is a hidden error, because the colour says "formula" while the content says "input".
The core scheme
Most banks, advisory firms and modelling courses use the same four colours. Some firms add more, but these four are the common base.
| Colour | Meaning | Example content |
|---|---|---|
| Blue | Hardcoded input or constant | `0.08` |
| Black | Formula that uses cells on the same sheet | `=C10*(1+C5)` |
| Green | Link to another sheet in the same workbook | `=Assumptions!D4` |
| Red | Link to another file | `=[Budget.xlsx]Sheet1!D4` |
The same scheme as a worked reference:
Cell Content Font colour Meaning
C5 0.08 Blue Hardcoded input (growth rate)
D10 =C10*(1+C5) Black Formula on the same sheet
D12 =Assumptions!D4 Green Link to another sheet
D14 =[Budget.xlsx]Sheet1!D4 Red Link to another fileRed is sometimes used differently. Some houses use red for warnings or errors instead of external links. The scheme only helps if the model states which meaning it uses, which is why the legend chapter later in this tutorial matters.
Applying the rules to edge cases
The four-way split sounds simple, but real cells often fall between categories. Decide each case once and apply the decision everywhere.
Mixed cells: a formula containing a typed number
A cell such as =C10*1.05 contains a formula and a hardcoded constant. It is not a pure formula, because someone must edit the formula to change the 1.05. The best fix is to move the constant into its own blue input cell and reference it: =C10*(1+$C$5). Avoid embedded constants other than structural ones such as 12 months or 1000 for a unit conversion, and label those where you can.
Formulas that combine local and cross-sheet references
A formula like =Assumptions!D4*C10 mixes a link and a calculation. The common rule is to colour by the dominant behaviour. If the cell only pulls a value across, it is green. If it does real arithmetic using one cross-sheet reference, it is black. Many firms go further and ban mixed cells. They require a pure green link row on the calculation sheet, then a black calculation row that uses the local copy. That makes every cross-sheet dependency visible in one place.
Inputs that are really results
A pasted value that came from a formula, such as a one-off data export or a goal-seek result, is a hardcode. Colour it blue, because a person typed or pasted it. Add a note saying where it came from and when.
Dates, years, and labels
Text labels stay black. A hardcoded start year used as the seed for the timeline is an input and belongs in blue. The rest of the timeline, such as =D4+1, is a formula and stays black.
Switches and scenario selectors
A cell that holds 1, 2, or 3 to select a scenario is an input and is blue. The formulas that read it, such as CHOOSE or INDEX, are black.
Colour and the model layout
The font scheme works best when the layout also separates areas. An inputs sheet should be almost entirely blue. A calculation sheet should be almost entirely black, with green rows pulling in assumptions. An output sheet should be black and green, because it mostly links to calculations.
flowchart TDThe diagram below shows how values flow between the areas and what colour appears at each step.
A pattern that follows from this: if you see blue on a calculation or output sheet, ask why. Inputs scattered across calculation sheets are hard to find and easy to forget. The colour rule exposes them.
Setting colours in practice
By hand
Select the cells, open the font colour menu, and choose a colour. Use the same exact shade each time. In Excel, standard blue is RGB 0, 0, 255 (hex 0000FF), and standard green is 0, 128, 0 (hex 008000). Pick values once and keep them, so that a search by format finds every cell.
With Go To Special
Excel can select cells by content type, which lets you colour a whole sheet in a few steps.
- Press
F5, then choose Special. - Choose Constants and tick only Numbers. Click OK. This selects every typed number.
- Set the font colour to blue.
- Repeat with Formulas. Tick Numbers only, and set the font colour to black.
This is the quickest way to apply the scheme to an inherited model. It colours by content type but cannot separate green links from black formulas, so check cross-sheet formulas separately with Find (Ctrl+F, search for ! in formulas, and for [ for external files).
With a script
For generated models, apply the colour at the moment you write the cell. This openpyxl script writes a growth-rate input in blue on a light yellow fill with a percentage format, and a formula beneath it in black.
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill
wb = Workbook()
ws = wb.active
ws["B2"] = 0.08
ws["B2"].font = Font(color="0000FF")
ws["B2"].fill = PatternFill("solid", start_color="FFFFCC")
ws["B2"].number_format = "0.0%"
ws["B3"] = "=B2*100"
ws["B3"].font = Font(color="000000")
wb.save("formatted_model.xlsx")The fill is covered in the next chapter. Here the point is the font: 0000FF for the input and 000000 for the formula. In a script, wrap this in a helper so that the colour is chosen by cell type and never by hand each time.
from openpyxl.styles import Font
COLOURS = {
"input": "0000FF",
"formula": "000000",
"sheet_link": "008000",
"file_link": "FF0000",
}
def write(ws, ref, value, kind):
ws[ref] = value
ws[ref].font = Font(color=COLOURS[kind])A helper like this makes the convention a single source of truth. To change green to a different shade, you edit one line.
Common errors
- Colour drift after edits. Someone types over a formula and the cell stays black. The colour now lies. Re-check after every round of changes.
- Pasting formats. Copying a blue input cell and pasting it over a formula cell carries the blue font along. Use Paste Values or Paste Formulas when you do not want formats to move.
- Inconsistent shades. Three different blues in one model make search and audit harder. Use one value.
- Colouring by sheet instead of by cell. Making an entire sheet blue because it is "the inputs sheet" hides the labels, totals, and formulas on it that should be black.
- Relying on colour alone. About 8% of men have some form of colour vision deficiency. Blue and black are usually distinguishable, but green and red can be confused. This is another reason to use fills, labels, and a legend, and not colour alone.
- Printing in black and white. A grayscale printout loses the scheme. Print-friendly models add a units or "source" column that says Input, Calc, or Link.
A short audit routine
Run this check whenever you receive or change a model.
- Select all cells, then use Go To Special, Constants, Numbers. Confirm the selection is all blue.
- Use Go To Special, Formulas. Confirm none of them is blue.
- Search for
!and[and confirm those cells are green and red respectively. - Look for formula cells with embedded numbers in the formula bar, using Show Formulas (
Ctrl+backtick).
Later chapters on checks and auditing build on this routine.
Exercise
A cell in a forecast row contains =D10*1.03 and is coloured black. Name two problems with this setup and show a better layout.
Show answer
First, the formula contains a hardcoded constant (1.03), so a user must edit the formula to change the growth assumption, and the black colour hides that. Second, the assumption is not visible in the inputs area. Better: put 0.03 in a blue input cell, for example C5, and write the formula as =D10*(1+$C$5) in black.
Exercise
You inherit a workbook where Go To Special, Constants, Numbers selects a number in the middle of the revenue forecast row, and that number is black. What does this tell you, and what should you do?
Show answer
It is a typed number coloured as if it were a formula, so it is a hidden hardcode that overwrote a formula. Check the neighbouring cells to see what formula belongs there, restore it, and confirm the result. If the number was intentional, colour it blue and add a note saying why it overrides the forecast.
Exercise
Which colour should each cell take: (a) the start year 2025 typed at the top of the timeline, (b) =Assumptions!D4 on the Calculations sheet, (c) =SUM(D10:D15), (d) =[Budget.xlsx]Sheet1!D4?
Show answer
(a) Blue, because it is a typed input. (b) Green, because it links to another sheet. (c) Black, because it is a same-sheet formula. (d) Red, because it links to another file.