Sub topic 2
Color-coding inputs, formulas, and links
This chapter assumes you can enter formulas, copy cells, and tell relative references from absolute ones. It also assumes you know basic statement terms such as revenue, EBITDA, and margin. Color-coding is a convention. Excel does not enforce it. Its value comes from applying it the same way in every sheet, so a reader can tell what a cell is before reading its contents.
Why color-code at all
A financial model mixes three kinds of cells. Some hold numbers a person typed. Some hold calculations. Some pull numbers from another place. If all three look the same, a reviewer must click each cell to learn what it is. The risk is concrete. Someone overwrites a formula with a typed number, and the model still looks fine. Color-coding makes that overwrite visible, because a black formula cell suddenly contains a blue-looking value, or a blue cell contains a formula.
The convention works because it answers one question at a glance: "Can I change this cell?"
The standard convention
Most banks, advisory firms, and corporate finance teams use a version of the following scheme.
| Cell content | Font color | Typical use |
|---|---|---|
| Hard-coded input | Blue | Growth rate, tax rate, opening balance, historical actuals |
| Formula or calculation on the same sheet | Black | Revenue = price × volume, margin, subtotals |
| Link to another worksheet | Green | `=Assumptions!C12` |
| Link to another workbook | Red | `=[Market.xlsx]Rates!B4` |
Many teams add a fill color for input cells, commonly light yellow, so inputs stand out even in a printout. Some teams use red for warnings or checks rather than for external links. Whichever variant you use, write the legend on the cover or assumptions sheet and follow it everywhere.
What counts as a hard-code
The rule is simple. If a person typed the number, it is an input and it is blue. If Excel computed it, it is not blue.
Edge cases come up often.
- Formulas that contain a constant.
=C8*1.05is a formula with a hidden input. Black formatting suggests a clean calculation, but the 1.05 is an assumption nobody can see. Move 1.05 to an input cell, then write=C8*(1+$C$4). - Mixed cells.
=SUM(C8:C10)+500has the same problem. Avoid it, because no color is correct for it. - Historical actuals. Pasted actuals are typed values, so they are blue even though nobody thinks of them as assumptions.
- Pure links.
=C8on the same sheet is a formula, so it is black.=Assumptions!C8is a sheet link, so it is green. - Cells that switch. A scenario selector such as
1,2, or3is an input and is blue. The cell that returns the live scenario value withCHOOSEorINDEXis a formula and is black.
Applying colors
You can color cells by hand, but doing so for hundreds of cells is slow and error-prone. Three approaches work, in order of effort.
- Format as you go. Select the cells and press Ctrl+1, then choose the Font tab and a color. This is fine for a small model.
- Select by type, then color. Excel can select all constants or all formulas for you. Press Ctrl+G, then Alt+S to open Go To Special, then choose Constants or Formulas. Apply the font color to the whole selection at once.
- Use cell styles. Define an Input style, a Calculation style, and a Link style once, then apply them. Chapter 15 covers this approach in detail.
Go To Special is also an audit tool, which the next example shows.
Example: coloring a whole sheet by type
Suppose a sheet has typed assumptions and formulas mixed together, all in black. Follow these steps.
- Click any cell in the sheet, then press Ctrl+A to select the sheet.
- Press Ctrl+G, then Alt+S, then choose Constants. In the sub-options, keep Numbers ticked and clear Text, Logicals, and Errors. Press Enter.
- Set the font color to blue. Only typed numbers change. Labels and headings stay as they were.
- Press Ctrl+A again, then Ctrl+G, Alt+S, choose Formulas, and press Enter. Set the font color to black.
Clearing Text matters. If you leave it ticked, every row label turns blue, which defeats the purpose.
Coloring links by source
The green and red link colors need a different technique, because Go To Special does not distinguish cross-sheet links from same-sheet formulas. There are two practical options.
- Color as you build. When you write a formula that references another sheet, color it green immediately. Doing this at creation time is far easier than finding the links later.
- Use a separate link area. Bring outside values into one clearly labeled block at the top of each calculation sheet. Only that block is green, and every formula below it is black and refers to the block. This keeps most formulas on the same sheet, so the colors stay accurate.
The second approach also makes the model easier to trace. The formulas in the body of a sheet depend only on cells on that sheet.
Layout principles that support color
Color works best alongside a consistent layout. Without one, the colors are decoration.
- One formula per row. A row should use the same formula across all its period columns. A color change in the middle of a row signals a break in that pattern.
- Time runs left to right. Every sheet uses the same column for the same period.
- Inputs are separated from calculations. Keep them on an assumptions sheet or in a labeled block, not scattered through the calculations.
- Units in their own column. Label each row with its unit (USD, %, x) so formats and colors are not the only clue.
The diagram below shows how information normally moves through a model that follows these rules, with the color of each stage.
Common errors
- Blue formulas. A cell colored blue that contains a formula tells readers they may overtype it. Someone eventually will.
- Black constants. A typed number in black looks like a result. This is the most common and most costly error.
- Inconsistent legend. Colors that change meaning from sheet to sheet train readers to ignore them.
- Color as the only signal. About 8% of men have some color vision deficiency, and printouts are often black and white. Back up the colors with a fill on input cells and with labeled sections.
- Copying formats between models. Paste Special with Formats from a different model can bring its legend with it. Check the result.
Exercises
Exercise
A cell contains =D12*1.08 and is formatted black. What is wrong, and how do you fix it?
Show answer
The formula hides a typed constant (1.08), so the cell is partly an input but looks like a pure calculation. Put 1.08, or better the underlying rate of 8%, in a separate input cell formatted blue, label it, and change the formula to reference that cell, for example =D12*(1+$C$4).
Exercise
You receive a sheet that is supposed to contain only formulas. Which keystrokes quickly reveal any typed numbers, and what do you select in the dialog?
Show answer
Press Ctrl+A, then Ctrl+G, then Alt+S to open Go To Special. Choose Constants and tick only Numbers. Any selected cell is a hard-coded number, which you can then recolor blue, move to an input area, or replace with a formula.
Exercise
Under the convention in this chapter, what color is each cell? (a) =Assumptions!C12 (b) =C8*C9 (c) the value 0.25 typed into a tax rate cell (d) =[Rates.xlsx]Sheet1!B4
Show answer
(a) Green, because it links to another worksheet. (b) Black, because it is a calculation on the same sheet. (c) Blue, because it is a hard-coded input. (d) Red, because it links to another workbook.