Sub topic 4
Using fill colours without overdoing it
This chapter assumes you already know the font colour scheme from the previous chapter (blue inputs, black formulas, green and red links) and that you can apply cell formatting in Excel or Google Sheets. It also assumes you know what a forecast model with historical and projected periods looks like.
Font colour tells a reviewer what a cell contains. Fill colour (the background shading of a cell) does a different job. It marks areas, such as where a user is allowed to type, where a section starts, or where a check has failed. Used well, fills help the eye find things. Used badly, they hide the font colours you just set up and make the sheet look like a patchwork.
What fills are for
A fill answers the question "what is the role of this region?" A font colour answers "what is in this cell?". Keep the two jobs apart, and each signal stays readable.
Models commonly use fills for four purposes:
- Marking input cells that a user is expected to change.
- Marking header bands that separate sections.
- Marking check cells and error flags.
- Marking a selected scenario or a cell that needs attention, usually temporarily.
Anything beyond these needs a reason. If you cannot say what a fill tells the reader, remove it.
Fills on input cells
Blue font already identifies a hardcoded input. A pale fill on top of it makes the input easier to find when you scroll across a large sheet, and it signals that the cell is safe to change. The usual choice is a light yellow such as FFFFCC, with blue font. The contrast matters: pale fill with dark blue text stays legible, while saturated fill with blue text does not.
The openpyxl script below builds one input cell and one formula cell. It is a small version of the pattern you would apply across an assumptions sheet.
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")B2 is a blue-on-yellow input. B3 is a black formula with no fill. The absence of a fill on B3 is deliberate: only cells a user may change get the input fill.
A rule that keeps the signal clean
Apply the input fill to hardcoded inputs only. Do not apply it to historical actuals that were pasted in as values, unless your team treats them as inputs too. If you fill them, say so in the legend. Otherwise a reviewer will see a large yellow block of historical data and may assume it is meant to be edited.
Fills on headers and sections
Header fills divide the sheet into regions. A dark band with white bold text for the sheet title and a lighter band for each section heading is enough. Keep the same colours for the same level on every sheet.
A practical hierarchy looks like this:
| Level | Typical use | Fill | Font |
|---|---|---|---|
| Sheet title | Top row of each sheet | Dark navy | White, bold |
| Section header | "Income statement", "Balance sheet" | Mid or light grey | Black, bold |
| Sub-total or total row | Gross profit, EBITDA, net income | None, or very light grey | Black, bold, top border |
| Column header (timeline) | Years and period flags | Light grey | Black, bold |
Two cautions apply. First, white text on a dark fill is fine for headers, but it breaks the font colour code if a formula or input sits on a dark band. Keep dark fills for labels only. Second, headers that contain formulas, such as a year that increments from the previous column, are still formulas. Use black font for them, or white if the band is dark and you have documented the exception.
Fills on checks and flags
Fills are the best tool for signalling an error, because the eye catches a red cell faster than a number. Use conditional formatting for this, not manual fills. A manual red fill stays red even after the problem is fixed.
The check from the topic spine returns 0 when assets equal liabilities plus equity, and 1 otherwise:
Balance check (row 60): =IF(ABS(D40-D55)<0.001,0,1)
Conditional format on row 60: red fill when the cell value is 1
Summary cell on cover sheet: =SUM(D60:N60) (0 means all checks pass)The conditional format means the row looks empty or neutral when the model balances and turns red when it does not. The summary cell carries the result to the cover sheet, so the reviewer sees the state of the model without hunting for row 60. Row-level checks are covered fully in a later chapter. Here, the point is the colour logic: red means something is wrong, and nothing else in the model is red-filled.
Consider a green state, with care
Some teams show a green fill for a passing check. It reassures the reader, but it adds a second colour to the model and a green cell can be mistaken for a link (green font). If you use it, apply it only on the check row and the cover sheet summary, and keep it a pale green. Many modellers prefer neutral when passing and red when failing, because a neutral state keeps the sheet quiet.
How many colours is too many
The most common formatting mistake with fills is volume. A sheet with five fill colours, each used in a few places, teaches the reader nothing. They cannot memorise the code, so they ignore it.
A workable budget for a standard model is:
- One input fill (pale yellow).
- One or two header fills (dark and light grey).
- One alert fill (red, through conditional formatting only).
That is four colours. If you want a fifth, ask what it tells the reader that cannot be shown another way, such as a border, a bold label, or a note in an adjacent cell.
Fill versus font: avoid collisions
Every fill you choose has to work with every font colour in your scheme. Check each combination.
| Fill | Blue input text | Black formula text | Green link text | Red file-link text |
|---|---|---|---|---|
| Pale yellow | Readable | Readable | Readable | Readable |
| Light grey | Readable | Readable | Readable | Readable |
| Dark navy | Unreadable | Unreadable | Poor | Poor |
| Bright red alert | Poor | Poor | Poor | Unreadable |
The last row explains why alert fills should be used on check cells, which hold a plain 0 or 1, and not across rows of numbers. A red cell with red text hides the very value the reviewer needs to see.
Printing and accessibility
Fills behave differently once the model leaves the screen. Three points are worth checking before you share a file.
- Greyscale printing. Pale yellow and light grey both print as faint grey, and can look identical. If a printed page matters, do not rely on fill alone. Pair the fill with a border or a label.
- Colour blindness. Red and green are hard to tell apart for many readers. Do not use red and green fills as the only difference between a pass and a fail. Show the 0 or 1 value as text, or add a word such as "ERROR" through a custom number format or a helper cell.
- Contrast. Keep the fill pale and the text dark. If you have to squint, the fill is too strong.
A suggested layout for a fill scheme
The diagram shows how the four fill purposes relate to the model's regions. Inputs sit on the assumptions sheet, calculations carry no fill, and the cover sheet pulls in the check result.
Notice that the largest part of the model, the calculations, carries no fill at all. That is by design. A calculation area with no fill makes the few filled cells stand out.
Common mistakes
- Filling every row for readability. Alternating row shading (banding) is useful in a database table but distracting in a model, where rows already have meaning. Leave banding out.
- Using fill instead of font colour. A yellow cell with black font does not tell the reader whether it is an input or a formula. Keep font colour as the primary signal and use the fill as support.
- Manual fills that go stale. A cell turned red by hand, or a cell highlighted yellow "to remember", will stay that way. Use conditional formatting for anything state-based and remove temporary highlights before sharing.
- Different shades of the same colour. Three slightly different yellows look like a mistake and are impossible to document. Set the colour once, as a cell style, and reuse it.
- Inconsistent input fill. If some inputs are filled and others are not, a reviewer cannot trust the fill as a guide. Either fill all hardcoded inputs or none.
Use cell styles to enforce consistency
Excel's cell styles let you save a fill, font, and number format under one name, for example "Input" or "Header 1", and apply it with one click. If you later change the shade of yellow, every cell with that style updates. This is the most reliable way to keep fills consistent across a large workbook, and it makes the legend easy to write because each entry matches a named style.
Summary of the working rules
- Use fill to mark regions and states, and font colour to mark cell content.
- Fill hardcoded inputs with a pale yellow, and leave formulas unfilled.
- Use a small, fixed set of header fills, and apply them by level.
- Drive alert fills with conditional formatting, never by hand.
- Keep the total to around four fill colours, and document each one in the legend.
- Check each fill against each font colour, and against printing and colour blindness.
Exercise
A model has a yellow-filled block of pasted historical revenue values, a red fill applied by hand to a cell that was once wrong, and alternating grey and white row shading throughout the income statement. Name the problem with each, and say what you would do instead.
Show answer
The yellow block marks pasted historical values as if they were inputs a user should change. Either remove the fill and leave the values with blue font as hardcodes, or keep it and state in the legend that historical data are treated as inputs. The hand-applied red fill is stale, because it stays red after the error is fixed. Remove it and use conditional formatting on a check cell, so the colour reflects the current state. The row banding adds a colour with no meaning and competes with the input and alert fills. Remove it and rely on borders and bold totals to separate rows.
Exercise
You use dark navy fill with white text for section headers. A colleague places a blue-font input cell inside a section header band to save space. What goes wrong, and what is the fix?
Show answer
Blue text on dark navy is close to unreadable, and the cell no longer follows the input convention of blue font on a pale fill. A reviewer may miss the input entirely. Move the input to the assumptions area or a normal unfilled row, and keep dark fills for text labels only.
Exercise
Write the rule you would add so that a balance check cell turns red only when the model does not balance, and say why this is better than colouring the cell red by hand.
Show answer
Apply conditional formatting to the check row with the rule "cell value equals 1" and a red fill. The check formula returns 0 when balanced and 1 otherwise, so the fill appears only on failure and disappears when the error is fixed. A hand-applied fill never updates, so it can show a problem that no longer exists or stay hidden when a new one appears.