Sub topic 17
Documentation, change logs and version control
This chapter assumes you have read the earlier chapters on Transparent models, and that you can build multi-sheet workbooks and write formulas with INDEX and COUNTA. It covers what documentation a model needs, how to record changes, and how to keep versions under control.
Why documentation is part of the model
A model with clean formulas still fails if nobody knows what it is for, which version is current, or what changed since the last review. FAST treats documentation as part of being Transparent. A reader should be able to open the file and answer three questions without asking the author: what does this model do, how is it organised, and what has changed.
The ICAEW Financial Modelling Code also expects documentation proportionate to the model's purpose. The wording differs between the two standards, but the expectation is the same. Documentation should be enough for a competent user to understand and rely on the model, and no longer than that.
Long manuals go stale. A short document that is kept current is more useful than a long one that nobody updates.
What to document
Document what the formulas cannot tell the reader. Use the table below as a minimum set.
| Item | Content | Typical location |
|---|---|---|
| Purpose | What decision the model supports and who uses it | Cover sheet |
| Scope and limitations | What the model leaves out, and where its results should not be trusted | Cover sheet |
| Structure | Sheet list, with a one-line description of each | Cover or contents sheet |
| Inputs and sources | Where each assumption came from, with date and owner | Next to the input, or an inputs log |
| Conventions | Units, sign convention, colour code, timeline | Cover or conventions sheet |
| Checks | What each check tests, and how to read the summary | Checks sheet |
| Change history | Version, date, author, what changed | Change log sheet |
Keep each item in one place. If the same description appears on the cover sheet and in a separate Word file, the two will diverge.
Document at the point of use
Put source notes beside the input they explain. A source column next to each input costs almost nothing and stays correct when rows move. A unit column does the same job. This is also why the layout chapters recommend one input per row with its label, unit and value.
Avoid comments hidden inside cells for anything important, because reviewers rarely hover over every cell. Use visible columns instead.
The change log
A change log is a sheet inside the workbook that records every version issued. It travels with the file, so it cannot get separated from the model the way an email thread can.
Use one row per version, with these columns:
- Version number
- Date
- Author
- Description of the change, written so that someone outside the project can follow it
- Sheets or ranges affected
- Reason for the change
- Reviewer and review date
Describe the effect as well as the action. "Updated tax rate" is weak. "Corporate tax rate changed from 25% to 26% (Inputs!D14) following the budget; net income falls by about 1% in all periods" lets a reviewer decide what to test.
Link the log to the model
Make the version number appear in one place only, and have everything else read from it. The cover sheet takes the latest version from the log, and output sheets read it from the cover sheet.
Cover!D5: =INDEX(Log!$B$6:$B$205,COUNTA(Log!$B$6:$B$205))
Outputs!B2: ="Valuation summary, version "&Cover!$D$5
' Log!B6:B205: version numbers, added in order with no gaps
' Cover!D5: the latest version, found by counting the filled rows
' Outputs!B2: a title that shows the version on every printed pageThis works only if entries are added in order with no blank rows. Add a check for that. If COUNTA of the version column differs from the position of the last non-blank row, the check should flag it. A check that the log has an entry for the current version belongs in the integrity checks described in the earlier chapter.
Version numbering and file names
Choose a numbering scheme and apply it every time. A common pattern uses two parts:
- A major number for structural changes, such as new sheets, a changed calculation method or a changed timeline. Example: 2.0.
- A minor number for input updates, bug fixes and presentation changes. Example: 2.1, 2.2.
Put the version in the file name, as in ProjectX_Model_v2.1.xlsx, and avoid names such as final, final2 or latest. Those words stop being true the moment the next file is saved. Do not rename a file by hand to match the log. Make the log entry first, then save the file under the matching name.
Version control in practice
Spreadsheets are binary files, so version control tools designed for text, such as Git, cannot show a useful line-by-line comparison of two .xlsx files. You still have several workable options.
- Archive folder with read-only copies. Save each issued version to an archive folder and never edit it again. This is simple and works for small teams.
- Platform version history. SharePoint, OneDrive and similar services keep automatic versions. They protect against accidents, but they save at arbitrary times. Treat them as a safety net, not as your issued versions.
- Git with the workbook as a binary file. This gives you history, tags and branches, but not readable differences. Pair it with the change log so that the log explains what Git cannot.
- Comparison tools. Spreadsheet comparison add-ins list changed cells between two files. Run one before issuing a version, and check that every difference appears in the log.
Whichever option you use, separate working copies from issued versions. Working files change daily and carry draft numbers. An issued version is frozen, logged and reviewed.
Common errors
- Unlogged changes. Someone fixes a formula "quickly" and saves over the issued file. Prevent this by making issued files read-only and working only in copies.
- Version drift. The file name says 2.1 but the cover says 2.0. Take the version from one source and show it on outputs.
- Documentation that describes a different model. Review the cover sheet and sheet descriptions whenever you add or remove a sheet. Add this step to your issue checklist.
- Several people editing separate copies. Nominate one owner of the master file. Others send changes as logged requests, or work on a branch that is merged by hand.
- No record of why. A log that records only what changed leaves the next reviewer guessing about intent. Include the reason.
An issue checklist
Before issuing a version, confirm the following:
- The integrity checks summary reads OK.
- A new log entry exists with a description, reason and author.
- The cover sheet shows the new version and date.
- A comparison with the previous issued version shows no unlogged differences.
- A reviewer other than the author has signed off.
- The file is saved with the version in its name and stored read-only in the archive.
Exercise
A colleague saves over the issued file ProjectXModelv2.1.xlsx with a corrected growth rate and does not tell anyone. Name two problems this causes and two controls that would have prevented it.
Show answer
Problems: the issued version no longer matches what reviewers and users signed off, so earlier outputs cannot be reproduced; and nothing in the change log explains the change, so the next reviewer cannot tell that it happened or why. Controls: store issued versions as read-only in an archive and edit only working copies; require a change log entry and a comparison against the previous version before any new version is issued.
Exercise
The cover sheet cell Cover!D5 uses =INDEX(Log!$B$6:$B$205,COUNTA(Log!$B$6:$B$205)). A user leaves row 9 of the log blank and then adds three more versions in rows 10 to 12. What does D5 show, and how would you detect the problem?
Show answer
COUNTA counts only filled cells, so it counts fewer rows than the position of the last entry. INDEX therefore returns an earlier version, not the latest one. To detect it, add a check that compares COUNTA of the version column with the row position of the last filled entry, and flag the model if they differ. This also shows why the log needs a rule of adding entries in order with no gaps.