Sub topic 5
Flexible: building for change
What "Flexible" asks of a model
Flexible is the first FAST principle. A flexible model can absorb a change in assumptions, timing or scope without anyone rewriting formulas. The changes can be a new start date, an extra year or a different tax rate. A model that has to be edited by hand each time will eventually contain an edit that was missed.
This chapter assumes you can build multi-sheet Excel workbooks and know relative and absolute references. It also assumes you are comfortable with IF, SUM, AND, ABS and EOMONTH, and with the basic financial statements.
Flexibility has two parts:
- Change through inputs. Each assumption that might vary lives in one input cell. A user changes that cell and every result follows.
- Change in structure. Adding a period, a line item or a scenario is a routine, low-risk job. It does not mean reworking the logic.
Flexibility is not the same as having many options. A model that can do everything is hard to follow and hard to test. The Appropriate principle, covered in a later chapter, limits how much flexibility a model needs.
Flexibility through inputs
A model is flexible when you can change the question without touching the answer machinery. Compare two versions of a revenue calculation.
| Version | Formula | What happens when the price changes |
|---|---|---|
| Hardcoded | `=F20*12.50` | Every cell in the row must be edited. Any cell missed gives a wrong number with no warning. |
| Linked | `=F20*Inputs!$D$5` | One input cell changes. The whole row updates. |
The linked version is flexible because the price exists in one place only. The sheet-layout and input-management chapters cover this in more detail. For now, treat it as the first test of flexibility: if an assumption could change, it must be an input.
Flexibility through consistent formulas
The same formula in every column of a row is the main structural support for flexibility. It means a new period can be added by copying the last column to the right, with nothing to adjust.
F22: =F20*F21
' Row 20: Units sold
' Row 21: Price per unit
' Row 22: Revenue
' The same formula is copied across every column of the row.Each row performs one calculation, and the formula is identical in every column, so a reviewer only needs to read the first cell. The same property helps the person extending the model. Extending the timeline means copying the final column. No column has its own logic to remember.
A common error: the special first column
Models often break this rule in the first period, because the opening balance has nothing to the left of it. The usual workaround is to type the opening balance into the first column. That gives the row two formulas, and anyone who inserts or moves a column will have to handle the exception.
The flexible alternative is a first-period flag. The flag is 1 in the first period and 0 in every other period. The opening balance formula can then be the same in all columns.
F28: =E31+F$9*Inputs!$D$12
F29: =F27
F30: =-F26
F31: =SUM(F28:F30)
' Row 9: First-period flag (1 in the first period, 0 otherwise)
' Row 26: Repayments (positive number)
' Row 27: Additions
' Row 28: Opening balance
' Row 29: Additions
' Row 30: Repayments
' Row 31: Closing balanceThe opening balance row takes the prior closing balance and adds the opening-balance input only in the first period. So no column needs a different formula. Column E, which sits to the left of the first model period, is left empty or used for labels, so E31 evaluates to zero in the first period. Check that this holds in your layout, because a number in that cell would be added to the opening balance.
Flexibility through timeline flags
Dates are the most common reason a model has to be rebuilt. A project starts a year later, or it is extended by two years. If the dates are written into formulas, each change means editing many cells.
The flexible approach is to hold the start and end dates in the inputs and let a timeline flag switch calculations on and off.
F10: =IF(AND(F$6>=Inputs!$D$8,F$7<=Inputs!$D$9),1,0)
' Row 6: Period start date
' Row 7: Period end date
' Inputs!D8: Operations start date
' Inputs!D9: Operations end dateA timeline flag switches a calculation on only while operations run, so the start and end dates stay in the inputs and no calculation row needs its own date logic. Revenue then becomes =F20*F21*F$10. A change to the operations start date in Inputs!D8 moves the whole revenue stream, and nothing else is edited.
Check how the flag treats partial periods. The formula above returns 1 only if the entire period falls inside the operating window. If operations start mid-period, that period gets a flag of 0. If you need a partial-period flag, you must decide deliberately how to treat it (for example, a proportion of days). Document that decision, because it changes the results.
Flexibility when changing structure
Some changes are not input changes. They alter the shape of the model. Three occur often.
- Extending the timeline. Copy the last column right. This works only if every row has one formula and nothing refers to a fixed end column. Totals that sum a hardcoded range, such as
SUM(F10:Z10), may then miss the new columns. Make the range cover all timeline columns from the start, or keep a spare formatted column at the end, and use a check to catch totals that omit a period. - Adding a line item. If revenue streams sit in a block, a new stream is a copy of an existing block with different inputs. Totals that sum the block must include the new rows. Insert the new row between the first and last rows of the block, not after the last row. Otherwise
SUMranges will not expand. - Adding a scenario. Keep scenario values in an input table and select one with a scenario number. The calculations should never change between scenarios. Only the selected inputs change.
Edge cases to watch
- Inserted rows and columns. Excel adjusts references to follow inserted rows. Formulas that use text-built addresses, such as
INDIRECT, do not adjust.INDIRECTandOFFSEThurt flexibility for this reason, and the chapter on short formulas covers them. - Copy-paste of values. Pasting values over a formula row removes the formula. The model still shows numbers, but it no longer responds to inputs. This is a common source of silent errors.
- Hidden rows and columns. Hidden logic cannot be reviewed or extended with confidence.
- Different time bases. A model with monthly and annual columns on the same sheet needs separate timeline rows and flags for each base. Do not mix them in one row.
Testing flexibility
Flexibility is a claim about behaviour, so test it. Run these three tests after you build or change a model.
- Change each key input to a different value and confirm the results move in the expected direction.
- Move the operations start date by a year and confirm that revenue and balances shift with it.
- Extend the timeline by one period and confirm that totals, checks and outputs all include it.
Reading the integrity checks after each test confirms that nothing broke. A check row compares two totals within a small tolerance, and a summary cell reports whether any period failed.
F40: =IF(ABS(F38-F39)<0.001,0,1)
F41: =IF(SUM(F40:Z40)>0,"CHECK","OK")
' Row 38: Total assets
' Row 39: Total liabilities plus equity
' Row 40: Balance check flag (0 = pass, 1 = fail)Trade-offs
Flexibility has a cost. Every input adds a cell to maintain, every flag adds a row, and every scenario adds a table. A model with too many switches is hard to audit and slow to explain. Use these criteria to decide whether to add flexibility.
| Question | If yes |
|---|---|
| Is the assumption likely to change, or will the user ask about it? | Make it an input. |
| Will the timeline length or start date vary? | Use flags driven by input dates. |
| Is the change one that a user will never make? | Leave it fixed, and state it in the documentation. |
Exercise
A model has a revenue row where the first column contains =Inputs!$D$10 (the opening revenue) and every later column contains =E22*(1+Inputs!$D$11). Explain why this breaks the flexible principle, and describe a way to fix it using a first-period flag.
Show answer
The first column has a different formula from the rest of the row, so the row has two formulas. Anyone who inserts a column, moves the timeline or extends the model has to remember the exception, and a copied formula can overwrite it. Fix it with a first-period flag row (1 in the first period, 0 otherwise). Use one formula in every column, such as =E22*(1+Inputs!$D$11)+F$9*Inputs!$D$10. The input appears only in the first period through the flag, and the same formula can be copied across the whole row.
Exercise
The operations end date moves from December 2030 to December 2032. In a model built with timeline flags, which cells need to be edited? What would you check afterwards?
Show answer
Only the end date input (Inputs!D9) needs editing, because the timeline flag recalculates from it. Afterwards, confirm that the timeline extends to 2032 (add columns by copying the last column if it does not), that totals and checks cover all the new columns, and that the balance check summary still reports OK.