How to find hard-coded values hiding in Excel formulas
A forecast row is usually one formula copied across twelve months. Someone types a number over one of those cells, to match a board deck or test a scenario, and forgets to put the formula back. The cell still looks like every other month, the totals still add up, and the forecast is now wrong from that month on. Finance teams call these plugs or hard-codes.
Finding them by hand
- Show formulas (
Ctrl+`on Windows,Cmd+`on a Mac) and scan each row for a cell that shows a number where its neighbours show a formula. - Go To Special (
F5, then Special, then Constants, Numbers) selects every typed-in number. In a sheet that should be all formulas, whatever is selected is a suspect. - Inconsistent formula warnings, the small green triangles, catch some cases, but only when the typed cell sits inside a run of formulas and the check is switched on.
All three work on one sheet at a time and need you to know which cells are meant to be inputs. In a model with ten sheets and a column of actuals, that is where the time goes.
An example you can check
We built a small twelve-month forecast and typed over two cells on purpose. Download it (9 KB) and try the manual checks above, or upload it to the free audit.
- Assumptions holds the drivers: monthly growth 3%, price 40, unit cost 22, opex 9,000 a month.
- Forecast has Units, Revenue, COGS, Gross profit, Opex and EBITDA. Column B is last December's actuals, typed in on purpose. January to December are formulas, and column O is the total.
- The two plugs: June revenue (
H3) typed as 61,000, and September opex (K6) typed as 12,500.
| A | B | F | G | H | I | J | K | L | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Line | Actual Dec | Apr | May | Jun | Jul | Aug | Sep | Oct |
| 3 | Revenue | 47,200 | 53,124 | 54,718 | 61,000 | 58,050 | 59,792 | 61,585 | 63,433 |
| 6 | Opex | 8,800 | 9,000 | 9,000 | 9,000 | 9,000 | 9,000 | 12,500 | 9,000 |
Rows 3 and 6 of the Forecast sheet, some months left out. Shaded cells are typed in; the rest are formulas.
What the audit found
This is the unedited result of Tablient Audit on that file. It checked 78 formulas and 37 typed numbers.
| Cell | Label | Typed value | Pattern implies | Confidence |
|---|---|---|---|---|
Forecast!H3 | Revenue | 61000 | =H2*Assumptions!$B$3 | high |
Forecast!K6 | Opex | 12500 | =Assumptions!$B$5 | high |
Both plugs were found, each with the formula the rest of its row says belongs there. Nothing else was flagged: the typed actuals in column B sit before the formulas start rather than between them, and the drivers on the Assumptions sheet have no formulas around them, so neither reads as a plug.
What it misses
We changed the same file in three more ways to see where the method stops working.
- A number typed over a formula inside a row (EBITDA in February) was flagged with high confidence, as above.
- A number typed over the last month (December revenue) was flagged with medium confidence only, because there is a formula on one side of it and not the other.
- A constant written inside a formula, such as
=D2*22in place of=D2*Assumptions!$B$4, was not flagged. The cell is still a formula, so it does not look like a plug. Search for digits in formulas, or read the formulas, to catch these.
It also cannot tell a deliberate override from a mistake. A medium or high finding means "this breaks the pattern around it", and someone who knows the model still has to decide whether it should. A row with only one or two formulas gives it no pattern to compare against.
Try it on your own workbook
Tablient Audit is free in the browser for .xlsx and .xlsm files. It
reads the file on our server while the run lasts, returns the findings, and never stores the workbook. To check every pull request
that changes a workbook, the spreadsheet diff shows which cells, formulas and formats changed.
Terms · Privacy · Contact: [email protected]