Sub topic 9
Formatting and Color Conventions
This chapter assumes you can build basic formulas, understand the three-layer split (inputs, calculations, outputs), and know how absolute and relative references work. It covers how formatting lets a reader identify what a cell does without clicking on it.
Why formatting is part of the structure
Separating a model into layers only helps if a reader can see the separation. Formatting makes the layer visible. A reviewer who opens an unfamiliar sheet should be able to tell, within seconds, which cells they may change, which cells hold logic, and which cells they should only read.
Formatting also acts as a cheap error detector. If a number in a calculation row is styled like an input, either the styling is wrong or a hardcode has crept into the formula. A consistent scheme makes that mismatch easy to spot.
Formatting never changes a result. It carries meaning only because everyone who uses the model agrees on the rules, so the rules must be simple, written down, and applied everywhere.
The core color code
Most finance teams use some variant of the following scheme. It is widely understood, so reusing it saves you from explaining your model.
| Cell type | Font color | Fill | Meaning |
|---|---|---|---|
| Hardcoded input | Blue | Light yellow (optional) | A value you may change |
| Formula on the same sheet | Black | None | Calculation, do not overwrite |
| Link from another sheet | Green | None | Pulls a value across sheets |
| Check cell | Black, or red when failing | Conditional | Tests structure, see the integrity checks chapter |
| Warning or external link | Red | None | Needs attention |
Three points make the scheme work in practice.
- Color follows the content of the cell, not its location. A cell is blue only if it contains a typed number. If you replace the number with a formula, change the font to black.
- A cell has one role. A formula such as
=D10*1.05contains a typed constant, so it is neither a clean input nor a clean calculation. Fix the formula instead of choosing a color for it. - The scheme must be documented. Put a small legend on the cover or inputs sheet showing each style.
Use styles, not manual formatting
Applying blue font by hand to each input is slow and error-prone. Define named cell styles once and apply them. In Excel, use Home > Cell Styles and create styles such as Input, Calc, Link, Check, and Header. In Google Sheets, which has no named styles, copy a formatted template cell and use Paste special > Format only.
Styles give you two benefits. First, changing the look of every input later takes one edit. Second, you can audit the model by style: if a cell has the Input style but contains a formula, that is a defect.
Number formats
Number formats tell the reader what a value means. Set them to match the unit named in the input label.
- Use
#,##0for currency amounts in whole units, and add a scale to the label such as "(thousands)" instead of mixing scales. - Use
0.0%for rates and percentages. Store the value as a fraction (0.10) and let the format display 10.0%. - Use
0.00xfor multiples. - Show negatives consistently, either in parentheses
#,##0;(#,##0)or with a minus sign. Do not mix both. - Show zero as a dash with
#,##0;(#,##0);"-"if long runs of zeros distract from the real values. - Format dates as
yyyy-mm-ddormmm-yythroughout. Never leave a date as a raw serial number.
A common error is changing the format to hide a precision problem. If a cell shows 10% but holds 0.1049, the display misleads. Format controls what you see, not what the cell stores. When you need to round the value itself, use ROUND in the formula.
Formatting by layer
Each layer has a different job, so each gets different emphasis.
Inputs
Inputs are the only cells a user should type in. Give them the blue font, and optionally a pale yellow fill so they stand out when scrolling. Place the unit and source in adjacent columns. If the workbook allows it, unlock only these cells and protect the rest of the sheet, so the formatting is also enforced.
Add data validation where it fits, such as a rate between 0 and 1, or a drop-down list for a scenario selector. A validated input blocks bad values at entry rather than after they spread.
Calculations
Calculation sheets should look plain. Use black font, no fill, and consistent number formats down each row. Reserve bold for subtotals and totals, and add a thin top border above a total. Plain styling is intentional. If everything on the sheet is decorated, nothing stands out.
Keep the time axis header identical on every sheet: same columns, same date format, same period flags. A reader who finds Year 3 in column G on one sheet expects it in column G everywhere.
Outputs
Outputs are read by people who did not build the model. Use clear titles, readable fonts, and units in headings. Charts and summary tables can be more polished than the calculation sheets, but a polished output must still be formula-driven. Never paste values over an output to improve its appearance.
Layout conventions that support formatting
Formatting works best when the grid is regular.
- Reserve the same columns for the same purpose on every sheet, such as labels in column B, units in column C, and totals in column D. Start the time series in the same column on every sheet.
- Keep one row per concept. Do not merge cells in the data area, because merged cells break copying and selection. Use "Center across selection" for headings instead.
- Leave a blank row between blocks and add a bold block header.
- Freeze panes so labels and the timeline stay visible while scrolling.
- Group rows or columns with outline levels for detail that most readers can skip.
- Put the sheet title and the sheet's purpose in the first rows.
The diagram below shows how color follows the direction of information.
Conditional formatting for checks and flags
Conditional formatting lets the sheet react to the state of the model. Use it sparingly and for a clear purpose.
Good uses:
- Turn the master check cell red when its value is not zero, and green or neutral when it is zero.
- Highlight the active scenario in the scenario table.
- Shade period columns by a flag, for example historical versus forecast.
Poor uses include color gradients on every table, which add noise and reduce the meaning of color. Also avoid using conditional formatting to hide errors, such as setting the font to white when a cell returns #DIV/0!. Fix the cause instead.
Here is a short example that applies the color scheme programmatically. It uses openpyxl to build a small input block, so every input receives the same style.
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill
INPUT_FONT = Font(color="0000FF")
INPUT_FILL = PatternFill("solid", start_color="FFFFE0", end_color="FFFFE0")
CALC_FONT = Font(color="000000")
wb = Workbook()
ws = wb.active
ws.title = "Inputs"
ws.append(["Assumption", "Value", "Unit", "Source"])
rows = [
("Revenue, year 1", 1_000_000, "currency", "Budget 2026"),
("Growth rate", 0.10, "% per year", "Management"),
("COGS share of revenue", 0.60, "% of revenue", "FY25 actuals"),
]
for label, value, unit, source in rows:
ws.append([label, value, unit, source])
for r in range(2, 2 + len(rows)):
cell = ws.cell(row=r, column=2)
cell.font = INPUT_FONT
cell.fill = INPUT_FILL
cell.number_format = "0.0%" if isinstance(cell.value, float) else "#,##0"
ws["B6"] = "=B2*(1+B3)"
ws["B6"].font = CALC_FONT
ws["A6"] = "Revenue, year 2"
ws["B6"].number_format = "#,##0"
wb.save("formatting_demo.xlsx")
print("saved formatting_demo.xlsx")The script styles only cells that hold typed values as inputs. The formula in B6 keeps the black calculation font.
Common formatting mistakes
| Mistake | Why it hurts | Fix |
|---|---|---|
| Blue font on a formula | A reviewer assumes the cell is safe to overwrite | Apply the `Calc` style |
| Black font on a typed number | A hardcode hides inside the calculation layer | Move the value to inputs and link to it |
| Mixed units in one row | Totals silently mix thousands and units | Pick one scale per row and state it in the label |
| Percent stored as 10 | Formula multiplies by 10 instead of 0.10 | Store 0.10 and format as percent |
| Many colors with no legend | Readers invent their own meanings | Limit the palette and add a legend |
| Merged cells in data ranges | Copy, sort, and fill operations fail | Use center across selection |
Keep the scheme consistent across a team
A convention is only useful if it is shared. If you inherit a model that uses a different scheme, either adopt its scheme throughout or convert it fully. A half-converted model is worse than either. Record the choice in the documentation sheet so the next person does not have to guess.
Exercise
A calculation sheet contains the cell =D10*1.05 with a black font, and another cell holding the typed value 0.25 with a black font. Name the problem in each cell and say how you would fix it.
Show answer
In the first cell, 1.05 is a constant typed inside a formula. Move the growth assumption to the inputs sheet as 0.05, style it blue, and change the formula to =D10*(1+Inputs!$C$5). In the second cell, a typed number is styled as a calculation, so it is a hidden input. Move it to the inputs sheet, style it as an input, and replace the cell with a link to it, styled as a link or calculation depending on the sheet.
Exercise
A cell shows 10% but a downstream total looks slightly off. What formatting-related cause should you check, and how can you confirm and fix it?
Show answer
The cell may store 0.1049 and merely display 10% because of its number format. Select the cell and read the value in the formula bar, or temporarily add decimal places. If the model needs the rounded value, apply ROUND in the formula. If it does not, leave the stored value and show more decimals.