Elamur Research

An Investigation of the Incidence and Effect of Spreadsheet Errors Caused by the Hard Coding of Input Data Values into Formulas

Paper · 2008 · Paul J. Blayney

Summary

A spreadsheet can give the right answer with today’s inputs and the wrong answer when someone changes them. Paul Blayney studies one way this happens. A formula can refer to a cell that holds an input, such as a tax rate or an inventory requirement. It can also contain the current value directly. Both versions can produce the same result at first. When the input changes, the cell reference follows the update, while the number stored inside the formula stays where it is. The paper asks how to find these hidden dependencies and how seriously spreadsheet researchers and auditing software treat them.

Blayney’s starting point was an accounting assignment. Students could arrive at the expected result with the figures they were given, then have their formulas fail when the assignment’s marking program substituted different inputs. The paper connects that experience with a distinction in earlier research between a defect in spreadsheet design and a numerical error in its output. A hidden input can sit in the former category for as long as the old assumption holds. A preliminary review found that Spreadsheet Detective and EXChecker could flag embedded numeric constants, while UltraSleuth Gold could search for a value the auditor already knew. Blayney argues that the ability to find a constant and the attention paid to its potential consequences are separate matters.

The paper introduces the Automated Hard Coding Identification Method, or AHCIM, an Excel procedure written in Visual Basic for Applications. It scans formulas for patterns that suggest an embedded number and also lists numbers entered directly into cells. Both kinds of findings require interpretation. In the detailed student example, the audit found that a formula contained the inventory minimum of 200 even though the workbook supplied that input on a data worksheet. It also surfaced ordinary constants that could be appropriate and direct entries that belonged in the data area. A much larger spreadsheet used to assist financial analysts yielded several numbers whose purposes warranted investigation.

The cases show how an automated scan can take a reviewer to a specific formula and give them a place to start asking what its numbers mean. The inventory example shows the mechanism by which a later change could affect production outputs. The paper leaves open how frequently these defects cause wrong results in practice, how large the resulting errors are, and whether they become more frequent or more severe as spreadsheets age.

Deep dive: An Investigation of the Incidence and Effect of Spreadsheet Errors Caused by the Hard Coding of Input Data Values into Formulas

Paul Blayney examines how hidden inputs in spreadsheet formulas can cause errors when assumptions change and tests a way to find them. · about 34 minutes to read

The problem and its context

When a correct answer conceals a dependency

A formula describes how a result should be calculated as the workbook’s inputs vary. A displayed result shows what happened with the inputs in use at the time. Ordinarily those two things fit together so well that a reader can judge the formula by checking the result. Blayney is interested in a case where that check is too weak. A developer can take a value from the workbook’s data area, type it into a calculation, and arrive at exactly the same number as a developer who refers to the data cell. The difference is in what happens when someone returns to the workbook with new information.

Blayney calls this practice hard coding. In the case that concerns him, the literal inside the formula stands for a fact or assumption about the spreadsheet’s subject. His example is a VAT rate of 7.5%, expressed in a calculation as 0.075. Imagine that the rate is correct when the calculation is written. The result can be correct too. If the rate changes, the person maintaining the workbook has to find each formula that contains the old rate and determine whether the figure serves that purpose there. A dedicated input cell would give the maintainer a place to revise the assumption, with the formulas that refer to it drawing on the revised value.

The incentive to type the number directly is easy to understand. It saves the work of creating an input in a separate place and referring to it from the formula. A developer may regard the assumption as stable enough to leave in place. A developer who anticipates a change may still postpone the work, expecting to remember the location when an update comes due. The immediate payoff is visible during construction. The cost falls on a later revision and may fall on a different person.

That timing matters to the paper’s account of what can go wrong. A developer who remembers a decision may be able to revise the affected formulas by hand. As time passes, that memory becomes a less dependable guide. A successor may have only the workbook and whatever documentation accompanies it. Even a maintainer who remembers the old value faces a question about where it was used and whether every occurrence carries the same meaning. If the assumption stays valid or every copy gets updated, the spreadsheet can continue to produce the intended result.

The paper compares the problem with omissions that are hard to spot. The hard-coded formula is present, and it can look complete. What the reviewer has to discover is a missing connection between the calculation and a source of data. Looking at the formula can help, but recognizing the significance of the number may require understanding the layout of the workbook and the policy the formula is meant to apply. In a financial reporting or decision-making spreadsheet, a correct-looking current output gives little information about that connection.

What the accounting assignment revealed

Blayney encountered this distinction through interactive, self-assessed spreadsheet assignments for accounting students. The exercises expected formulas that would work with the workbook’s inputs. Some students received a mark indicating a problem even though the answer displayed in their submission agreed with the expected answer for the figures in the exercise. Their complaint makes sense if the test is understood as checking the answer appearing on screen.

The assessment checked a different property. Its marking program substituted another set of data and compared the resulting answer with the expected result under those conditions. A formula that used the workbook’s data cells could respond to the change. An answer based on an assumption copied into the formula could fail, because the copied value was unaffected by the substitution. The exercise brought forward a problem that an ordinary workbook might reveal only after a change in policy or after somebody reused it with different inputs.

The classroom setup also made the meaning of a suspect number easier to establish. The assignment came with its own data, and students were expected to build calculations from those inputs. A reviewer could look for a corresponding value on the data worksheet and ask whether the formula depended on it in the appropriate way. In a spreadsheet acquired from a practitioner, the purpose of a number might take longer to establish. The relevant distinction still applies, but the reviewer may have to reconstruct the assumption from more limited information.

Blayney places this experience in a broader concern about spreadsheet use. The studies discussed in the paper describe extensive use in financial reporting, a substantial incidence of spreadsheet errors, and difficulties finding them. Blayney is cautious about the strongest claims that spreadsheet use exposes whole markets to unacceptable risks. His question is more specific. Among the defects a spreadsheet can have, how much weight should researchers and practitioners give to one that can pass a check of current output?

The design advice and its connection to programming

The paper draws an analogy with conventional programming. A number written directly into an executable statement can be difficult to understand when the statement gives no indication of what the number represents. A named value makes the purpose easier to read. Blayney illustrates this with a name for a font color. The connection to spreadsheet design is that a calculation can point to a recognized place where a value is defined, and a later reader has a better chance of seeing what that value controls.

There is a practical difference between making the meaning visible and making the assumption editable in one place. A readable label helps a person understand a value. A shared reference also helps keep multiple calculations connected to the same source. A workbook can benefit from both properties. Where a number recurs inside formulas, the reviewer may have to infer its meaning repeatedly and the maintainer may have to update it repeatedly. The workbooks Blayney discusses make the maintenance side of the programming analogy particularly important.

The design literature reviewed by the paper gives that idea a place in the layout of a spreadsheet. Robertson’s account of conventional program design begins with inputs, processing, and outputs. Blayney applies those categories to workbooks, where calculations and presented results can occupy the same area. Powell and Baker describe a more explicit separation of input data, decision variables, calculations, and measures of the outcome. The input area may occupy separate worksheets in a large workbook. The material point is that a user knows where to look for assumptions and formulas can draw on data maintained there.

Powell and Baker also explain what can go wrong when the same parameter is written into several formulas. A maintainer can know that the parameter has changed yet have no obvious way to tell whether every occurrence was revised. A search may find matching text without telling the person whether a match represents the relevant assumption. The design recommendation therefore addresses an everyday update task as well as the initial construction of a workbook. Blayney regards Powell and Baker as unusually explicit about the error implications of a practice that other sources frequently discuss in terms of design quality.

How earlier work classified the defect

The paper reviews the distinction between qualitative and quantitative errors. In Rajalingham’s classification, a quantitative error affects a numerical result. Hard coding of the kind Blayney studies belongs among qualitative errors when it leaves the current output correct. That placement captures an important fact about the initial workbook. It also means that an account centered on current quantitative discrepancies can miss an arrangement that will become consequential when an input changes.

The two classifications thus apply at different points in the life of the spreadsheet. At construction, the risk may reside in how a formula takes its data. After a policy change, an output can be wrong because that formula still applies the old policy. In the VAT illustration, Blayney notes that a resulting quantitative error could also be understood in terms of the spreadsheet’s subject knowledge. The formula would still encode a specific rule about tax, but the rule it encoded would have fallen out of date.

The distinction also fixes the scope of the investigation. A person can enter an incorrect value into a designated data cell. Someone modifying a workbook can overwrite a formula with a number. Blayney acknowledges the importance of such errors, and a direct-entry check can bring the latter to attention. His main question concerns a formula that survives as a formula while silently carrying its own copy of an input. The output may continue to look plausible because the formula still performs a calculation.

Blayney observes that the studies he examines by Panko and by Panko and Halverson omit incidence figures for this particular practice. He also finds that O’Beirne discusses ways of finding spreadsheet errors but offers no automated procedure for locating inputs embedded in formulas. The case addressed by the techniques he describes is the more visible one where a number occupies a cell that should contain a formula. Blayney interprets this pattern across the literature as evidence that embedded inputs received limited attention. The omissions establish what those accounts cover. The interpretation about the weight researchers assigned to the issue is Blayney’s.

How the paper approached practitioner priorities

An auditor could read formulas individually and ask what each figure represents. The paper draws on Panko’s discussion of manual inspection to explain why this is useful and why it becomes laborious. Commercial spreadsheet auditing software offers a way to automate parts of that search. The features a product supplies can therefore give an indirect indication of which defects its designers consider worth helping an auditor find. Documentation can give another indication by describing a finding as an output risk, a maintenance concern, or a matter of style.

Blayney uses commercial software as a proxy for practitioner priorities. His reasoning is that vendors have a commercial incentive to learn what customers need and provide relevant checks. The comparison consequently asks two questions. Can the software locate an unknown number within a formula? How does it explain the significance of a number when it finds one? An answer to the first question can be favorable even when the accompanying treatment emphasizes stylistic or design concerns.

This was a preliminary route to the industry viewpoint. A vendor’s decision to build and describe a feature can show how the product treats a problem. Understanding how people use the feature, how they prioritize its results, and whether they have experienced losses from the defect requires evidence about practitioners themselves. Blayney identified interviews and further examination of their spreadsheets as part of the broader research. The product review gave the present paper a concrete comparison while that work was still prospective.

The method, step by step

Turning a design question into a searchable pattern

AHCIM is an Excel procedure written in Visual Basic for Applications, the programming facility Blayney uses to inspect workbook contents automatically. The procedure takes a question that typically requires looking through formulas and turns part of it into a search. It asks where a formula contains the kind of numeric text that could be a value typed directly into a calculation. The output is a set of places to inspect, together with counts that help a reviewer see how much material was examined and how much was flagged.

A search for all digits would do a poor job of distinguishing references from embedded values. A cell address can contain a number that identifies a row. If a calculation adds the contents of a referenced cell, the digit in the address helps Excel locate the input. If the calculation adds a number written directly into the formula, the digit is part of the input to the calculation itself. The procedure uses the position of the digit relative to an operator to distinguish those patterns in the cases Blayney describes.

The main rule begins at an operator and looks immediately to its right. If the next character is numeric, the cell becomes a candidate for inspection. In a reference such as B22, the address begins with a letter and the digits occur later. The paper also names X9, R9C9, and $X$9 to illustrate address forms whose numeric characters occupy different positions from an immediate numeric operand. It is the character next to the operator that makes the difference to the rule described in the paper.

How AHCIM inspects a workbook

The steps in order.

How AHCIM inspects a workbookStep 1: Select workbooks and identify each worksheet’s used area1. Select workbooks and identify each worksheet’s used areaStep 2: Examine the contents of cells in that area2. Examine the contents of cells in that areaStep 3: Check formula operators for an immediately following digit3. Check formula operators for an immediately following digitStep 4: Record formulas with suspected embedded constants4. Record formulas with suspected embedded constantsStep 5: Record direct numeric entries as separate findings5. Record direct numeric entries as separate findingsStep 6: Produce workbook reports and a batch overview6. Produce workbook reports and a batch overview

Choosing the area to inspect

The procedure iterates through cells in a specified range and works through the worksheets in the workbook. Blayney uses Excel’s UsedRange property to limit the search to the part of each worksheet that has been used. The paper illustrates the cost of a full worksheet scan with a grid of 256 columns and 8192 rows. Those figures describe the search space in the paper’s example. The procedure’s practical concern is that a calculation can occupy a modest part of a sheet even when the full grid has far more positions.

This restriction serves an efficiency purpose. The area returned by Excel is an indication of where the sheet contains material worth inspecting. It does not tell the procedure which cells are meant for data, calculations, or output. The version Blayney describes offers no user option for excluding a designated region from the scan. A dedicated input area can therefore appear in the report even when its location makes the entries entirely appropriate.

The workbook’s visual presentation posed practical problems during development. Rows, columns, and cell contents can be hidden from a person using the sheet. Formatting can make contents hard to see, and protection or workbook code can conceal formulas or entire worksheets. Merged cells also caused difficulties for early versions of the procedure. Blayney describes these issues as complications encountered in testing and debugging. They matter because the worksheet a reviewer sees and the set of cells a program has to inspect are related but different things.

An automated scan has to work with the workbook’s structure even when that structure is obscured by its presentation. If a row is hidden, its absence from the display says little about whether the formulas elsewhere depend on it. If several cells have been merged for display, the way the contents are represented matters to the scan. The paper identifies such cases as implementation work that became apparent only when the scanning idea was applied to actual workbook layouts.

Applying the rule to formulas

After identifying a formula cell, AHCIM examines its formula text for operators. Blayney gives the equals sign and familiar arithmetic operators among the search examples. The procedure then tests whether the character immediately after an operator is numeric. In the paper’s description, this is a character-level test for a possible constant. A leading digit can bring an expression to the auditor’s attention before the program has any understanding of what the complete number means.

The paper explains the rule using integers and the positions of digits within addresses. The important distinction is between identifying the start of an apparent numeric operand and deciding that the operand expresses a changeable input. The first can be done with the local pattern Blayney describes. The second depends on the purpose of the calculation. An inventory requirement and a number that implements the calculation’s arithmetic can both appear after an operator. At that point in the scan, they can look alike.

That is why the method retains simple constants such as 0 and 1. Blayney gives the following example of a calculation in which the latter has a legitimate mathematical role.

1 − tax rate %

The 1 represents the whole amount in fractional form. The − sign means subtraction. The words tax rate identify the share taken by tax, and % indicates that the rate is expressed as a percentage. The expression describes the fraction left after tax. The description of the arithmetic does not specify a particular rate or cell address. In a workbook where the rate is looked up from an input cell, the literal for the whole can still serve a sound purpose.

The programming analogy in the paper uses a different kind of expression.

RedFont = 3

RedFont is a name given to the value used for the font color in the illustration. The = sign expresses the assignment of the value to that name in this example. 3 is the value being assigned. This is an illustration of making a value intelligible through its name. The spreadsheet equivalent relevant to the investigation is a formula whose reference leads the reader back to a documented input.

AHCIM adopts an inclusive policy within the scope of its search rule. It brings ordinary constants into the report because a reviewer can dismiss them after seeing their purpose. A blanket exception for familiar numbers would remove them wherever they occurred, including cases where a familiar number happened to stand for input data. The design therefore accepts additional inspection work in exchange for keeping those candidates available. How much work this creates depends on the formulas in the workbook and how readily a reviewer can recognize their arithmetic.

When the paper describes an input such as the VAT rate or the inventory requirement, it is explaining a potential meaning of a numeric operand. When it describes operators and following characters, it is explaining evidence a program can extract without that meaning. Moving from the latter to the former is the analytical step the reviewer supplies. That separation accounts for both what the procedure can flag quickly and what remains unresolved when the report is generated.

Recording numbers entered directly into cells

AHCIM also records numeric cell contents entered as values. This is an additional check in the same procedure. A direct entry in a workbook’s data area can be exactly what the design calls for. A direct entry in an answer area can suggest that someone typed the current result where a calculation should have gone. To tell which situation applies, the reviewer needs to know the intended role of the cell.

The difference from hard coding inside a formula has consequences for how the workbook responds to change. A formula with an embedded input still carries out whatever operations it specifies. Some inputs may feed it correctly while the copied one stays fixed. A result cell that contains only a value has no calculation for responding to changes at all. An audit that summarizes both can help a reviewer locate either condition, provided the two kinds of finding stay distinguishable.

Blayney describes one way to recognize the difference in the individual report. For a bare numeric entry, the reported formula content and cell value are the same. That relationship lets a reader identify an entry that should be interpreted as a number stored in a cell. The location and the assignment’s design then indicate whether the entry is valid data or a potentially incorrect answer. In the student case, this distinction becomes essential because legitimate inputs and incorrectly stored answers appear in the same report.

The direct-entry pass also explains why a count of numeric cells is an audit aid. Its meaning depends on the structure of the particular workbook. A template with an established set of data cells gives reviewers a concrete reason to examine additions. With a practitioner spreadsheet, a person may first need to determine where users are expected to type assumptions and where they are expected to read calculated results. The report identifies the contents and their locations for that inquiry.

Reporting findings for review

AHCIM can analyze multiple workbooks selected together. According to Blayney, the practical ceiling for a batch is tied to Excel’s worksheet maximum of 256 because the procedure creates individual analysis worksheets. It also produces an overview of the batch. The paper gives examples of both forms of output. The individual report shows the inspected workbook’s name and location, summarizes the scan, and allows specific entries to be examined. The overview lets a reviewer compare workbook-level counts across a group.

The individual and batch reports serve different reading tasks. An individual report lets someone move from a total to a formula or numeric entry and consider its purpose. A batch view makes differences across workbooks visible. For an assignment with shared inputs and expected outputs, unusual counts can direct attention to particular submissions. With workbooks serving different purposes, the counts are more appropriately read against the size and organization of each file.

The method relies on inspecting workbook contents and then interpreting candidates. The classroom assessment that motivated it used a complementary procedure. That assessment changed the data and checked the resulting output against an expected answer. AHCIM searches the workbook as it stands. It can point to a place where a later change might fail to flow through, including cases where current results agree with expectations. A data substitution establishes what happened under the particular substituted inputs. The formula scan helps establish where to look for an explanation.

Blayney’s demonstrations apply the procedure to completed student work and to an existing spreadsheet used in practice. The paper describes development and debugging of the VBA routine, then examination of its reports. It gives cases in which a finding can be tied to a known requirement, ordinary arithmetic, or an intended data cell. It also gives findings whose meanings are still questions. That range is intrinsic to the form of the audit. The pattern gets a cell onto the list, while the surrounding workbook supplies the evidence for classifying it.

Experiments and results

What the demonstrations measured

Blayney reports a detailed inspection of a student’s comprehensive budgeting assignment, a batch overview of submissions for a budgeting assignment, and an inspection of a practitioner spreadsheet used to assist financial analysts. The reports count material examined and findings identified. At the individual level, the quantities include worksheets, formulas, suspected hard coding, and numbers entered directly into cells. The evidence about a genuine design defect comes from examining specific findings against the workbook’s intended use.

The budgeting assignment gives the clearest reference for interpreting the counts. The template supplied the data needed for the exercise, and students were expected to write calculations that used it. Several spreadsheets could therefore aim at similar outputs while differing in how they were built. Their shared task and inputs give differences in their reports a useful context. An extra numeric entry can be worth looking at because the template already included the data, and an embedded number can be checked against a matching value in that template.

The practitioner spreadsheet supplies a different test of the procedure’s applicability. It is larger and comes from a setting in which the paper does not provide an equivalent assignment template or an expected-answer check. Its audit results are consequently strongest as leads for investigation. An unexplained constant can be worth asking about even if the workbook appears well constructed overall. The paper gives no common numerical output benchmark across the student and practitioner cases.

What the commercial products could find

In its feature comparison, the paper reports that UltraSleuth Gold version 3.0 could search formula text for a specified string, including a search that used wildcards. Someone who already knew the old value could use such a search to locate occurrences. The difficulty Blayney was addressing was how to find hard coding when the number itself was unknown. In his examination, UltraSleuth Gold offered no facility suited to that task. A known value is a starting point for its search. Discovering an unknown value is the auditing question in this paper.

Spreadsheet Detective version 2004 could identify embedded constants. Blayney places this capability among the product’s checks for questionable spreadsheet construction. Its treatment of the finding as a matter of style led him to distinguish its ability to surface the pattern from the emphasis it placed on possible future errors. The tool could send a reviewer to the relevant formula. The paper’s question was whether the reviewer would also be encouraged to investigate the consequences for the output.

EXChecker version 2.4 likewise had a feature for listing formulas with numeric constants. Its documentation advised using named values and indicated that some of the formulas found could be valid. Those cautions fit the problem that AHCIM’s reports would also demonstrate. An ordinary mathematical constant can be appropriate. Blayney’s criticism concerns what the documentation emphasized about affected outputs when a flagged constant really did stand for an input.

The commercial comparison is a feature review. Its practical findings distinguish a known-string search from procedures that can list embedded constants, and they distinguish detection capability from how a warning is explained. The paper does not give a side-by-side run of the products and AHCIM on a common set of verified cases. Consequently the comparison offers functional baselines for the kind of search under discussion, while relative detection accuracy, running time, and review effort remain unmeasured.

The individual budgeting workbook

In the detailed student case, the report records 11 worksheets examined and 481 formulas examined. Its header gives 88 identified instances of hard coding and 50 numbers entered directly into cells. These are audit counts for that workbook. Their usefulness is that they describe the scale of the inspection and where a reader might concentrate attention. To decide what those counts represent in terms of defects, a reviewer still has to read the entries.

The paper’s description of the illustrated listing also refers to 68 instances. It explains that some rows were hidden from the display because they were repetitive and that the listing includes direct numeric entries alongside formula findings. The relationship between the header figure of 88 and the discussion of 68 is left unresolved. Each belongs to a different part of the paper’s account of the report, which makes it inappropriate to use them interchangeably as a single count of confirmed formula defects.

The examples themselves are clearer. Some entries in the illustration are direct numeric cells, recognizable because the report shows the same contents and value. The paper describes some of these entries as appropriate inputs, including values on the workbook’s data worksheet. It identifies other entries as incorrect answers supplied as numbers where the student was expected to use formulas referring to cells. A report that merely counted numeric entries would put these cases together. The location of an entry and the task assigned to the student let Blayney distinguish them.

The clearest embedded input occurs in cell D16 on worksheet C. The formula uses 200 directly. The assignment already supplied that number on the data worksheet as the minimum stock of finished units. Typing it into the formula gave the student access to the current requirement, but it gave the formula no connection to updates in the data worksheet. If the inventory policy changed there, the calculation in D16 would continue to use the old figure until someone edited the formula.

Blayney identifies the same inventory assumption in other formulas in the listing. That repetition is important because the maintenance problem becomes a question of coverage. Revising a single input is straightforward when the calculations share it by reference. Once the value has been copied into several calculations, a maintainer has to locate and address each occurrence that stands for the assumption. Finding one use of 200 in an audit therefore gives a reason to inspect other occurrences and determine whether they have the same meaning.

The paper ties the potential effect to production outputs. The minimum stock level is an input to a budgeting exercise in which the amount to produce depends partly on what must be held in inventory. A stale input can therefore affect that output. Blayney identifies an explicit pathway from the assignment’s data to a particular calculation and its result. He frames the wrong production output as a consequence that could arise after the policy changed. The audit does not report a measured production discrepancy from an actual change.

The student also used 0, 1, and 12 in formulas. The paper says that these findings require only brief examination to judge their merits. It supplies no classification for every use of these values. Their presence illustrates why a reported constant is a candidate for review. Some placements can be understood by reading the immediate calculation. A number with an administrative or financial meaning may require comparing the calculation with the workbook’s data or the assignment’s instructions.

This case shows what makes the report useful at the cell level. It can put an inventory input, a legitimate constant, an intended data value, and a typed answer in front of the reviewer. The inspection can then move from the visual similarity of those numbers to the distinct reasons they appear. The firmest finding in the case rests on a known inventory requirement and a formula that should have responded to changes in it. The count in the header alone would not have revealed that reasoning.

The common template and the batch of submissions

The batch overview came from nine submissions by management accounting students. They were completing a common budgeting task and were expected to produce similar outputs from identical input data. The assignment template contained 42 data input cells. Blayney reports that all submissions except those labeled student #3 and #6 contained numeric entries that warranted investigation. The basis for that judgment was the presence of the required data in the template.

Budgeting assignment template and detailed student workbook by direct numeric cell count

The detailed submission contains more direct numeric entries than the assignment template provides as inputs.

Budgeting assignment template and detailed student workbook by direct numeric cell countDetailed student workbook, direct numeric entries: 50Detailed student workbook, directnumeric entries50Assignment template, designated data inputs (this paper): 42Assignment template, designated datainputs (this paper)42
The numbers
System or settingNumeric cells
Detailed student workbook, direct numeric entries50
Assignment template, designated data inputs (this paper)42

Here the template is the reference setting because it already supplies the assignment inputs. The starred count describes designated data cells in that template. The submission count comes from the individual AHCIM report and covers all numeric entries made directly into cells in that workbook. The direction of the comparison concerns candidates for review in this assignment. A lower count has no general implication for quality when workbooks need different quantities of input data. Individual cells still have to be interpreted by location and role.

The exception involving student #3 and #6 applies to the direct entries the paper says warranted investigation. It does not classify every formula used by those students. A workbook could keep its direct entries in the data area yet still repeat a value inside a formula. Conversely, a workbook with a questionable direct entry might otherwise use references consistently. The report has separate value precisely because it draws attention to these distinct ways of making a result fail to respond to changed inputs.

Blayney also notes substantial variation in how many formulas students used for the assignment. That observation is meaningful in a group where the task and data were shared. It suggests that students took different approaches to structuring their calculations. A higher formula count can reflect a different organization of the work, and the paper leaves the relation between that organization, accurate outputs, and usability for future examination. The overview therefore identifies a design question while the detailed report shows how to trace an individual defect.

The batch is informative as a comparison of submissions to a common task. Its strongest numerical reference is the set of inputs students received. Its strongest qualitative reference is the expectation that the outputs should respond to those inputs through formulas. Together they let a reviewer ask whether each submission uses the resources it was given. The paper presents no evidence that a particular formula count alone predicts which student produced a more useful or more accurate workbook.

The practitioner spreadsheet

The practitioner example was used to assist financial analysts in developing their own analytical spreadsheets. It contained 18 worksheets and over 50,000 formulas. These figures describe the workbook’s size, and they help explain the appeal of a procedure that directs reviewers to specific locations. Examining every formula by hand would be a different undertaking from inspecting the subset brought forward by a search. The paper supplies the scale of the inspection, without a timed comparison of those approaches.

Blayney’s provisional impression was that the workbook generally used suitable design practices to avoid embedding inputs in formulas. He still singled out 236, 259, and 279 as examples of constants whose purposes merited inquiry. These are values found in formulas. Their appearance gives an auditor a place to ask what each value represents, whether it is expected to change, and where a maintainer would learn that it needs updating.

The practitioner case and the student case differ most in the evidence available after detection. In the budgeting assignment, a known input and its intended function were already documented by the exercise. The investigator could identify the figure in a formula and locate the assignment’s source for it. In the practitioner case, the paper stops at identifying numbers that call for explanation. An investigation into their meanings might reveal an important defect, and the paper leaves that outcome open.

The combined results therefore show two parts of a workflow. A procedure can locate candidate formulas in workbooks of very different sizes. Establishing the design problem requires evidence about what the number does and how it ought to follow the spreadsheet’s inputs. The strongest illustration comes from the student workbook, where the missing dependency can be described specifically. The practitioner result shows that a scan can generate tractable questions about a much larger set of calculations.

What the ablations show

The paper reports no formal ablation experiment. Its analyses compare commercial search capabilities, examine submissions with shared assignment inputs, and interpret selected findings according to their roles in the workbook. Those comparisons explain what AHCIM contributes and how the evidence gathered after a flag affects the verdict. They offer different kinds of comparison from a test that switches off parts of a procedure and measures how its performance changes.

Finding a value when its identity is unknown

The review of UltraSleuth Gold illustrates the difference between a search that starts with a known assumption and a search that tries to discover possible assumptions. A known-string search can be relevant when a maintainer already has a specific old rate or requirement in mind. It can take the maintainer to occurrences of the old number. When the object is an unfamiliar workbook and the possible inputs have yet to be identified, the search needs a way to propose candidates.

The comparisons with Spreadsheet Detective and EXChecker show that automated candidate finding was available in commercial products reviewed by Blayney. This puts AHCIM in context. Its contribution is a procedure the paper describes in enough detail for readers to see the principle behind a flag, and a set of examples showing how those flags can support an investigation. The study gives no ranking of the tools by the number of true defects recovered. It documents the distinction between the search capabilities and brings the evaluation of potential consequences into the discussion.

What keeping ordinary constants does to a report

Blayney anticipates one possible variation of the procedure by discussing whether to ignore familiar literals such as 0 and 1. A filter could give the reviewer a shorter list wherever those literals appear. Its cost would be that a number classified as familiar would be excluded even if it represented a workbook input. The author chose to keep those results available and leave their interpretation to the reviewer.

The detailed student case illustrates the tradeoff. Ordinary-looking values occupy part of the list, and the paper expects a brief check to suffice in those cases. The inventory minimum shows what can be gained from inspecting a different candidate in the same report. Blayney gives no run with a revised filtering rule, so the evidence supports an explanation of the design choice, with its expected review burden. The change in detection coverage or review time under an alternative rule remains unmeasured.

The distinction is especially important for a reader comparing summary counts. A report containing many occurrences of a basic arithmetic constant may be long despite the absence of a problem with that constant. An unusual number can demand investigation even in a short report. An analysis of scan quality would need to distinguish the number of candidates from the effort involved in making decisions about them. The paper illustrates both through examples instead of assigning an independent measure to each.

How shared inputs strengthen a comparison

The accounting assignment holds important conditions in common across students. They receive the same inputs and are expected to reach similar outputs. This makes a design variation easier to see. A formula that contains 200 can be compared with the data cell intended to supply the inventory requirement. The template also helps a reviewer judge a direct entry because it establishes where the necessary data were originally provided.

The classroom marking procedure offers a related controlled comparison. It evaluates the formula under substituted inputs, with an expected result for the new data. The change in conditions exposes whether the answer follows the data in that particular check. The paper uses this procedure to explain the origin of the investigation. It presents no aggregate score for the marking system under substituted data and no paired study comparing those scores with AHCIM’s findings.

These two kinds of evidence answer different questions about the same spreadsheet. The substituted-input test can establish that an output went wrong after a specified change. The scan can indicate where a formula holds an old input that might explain such a failure. When the assignment already identifies the correct source cell, a reviewer can trace the missing dependency even without a reported output change. In the practitioner case, interpreting the finding requires the additional step of learning what the constant is for.

The reports also distinguish direct entries according to their placement. The student example includes both ordinary input data and answers stored as numbers. This comparison shows why the role of a cell matters more than the mere presence of a numeric value when judging the entry. A workbook organized around designated data areas gives a reviewer a basis for making that judgment. The numeric scan brings the relevant cells together so their roles can be checked.

Limitations

Limits identified by Blayney

Blayney explicitly says that the investigation supplies no empirical support for either of its central hypotheses. The first is that the prevalence of consequential spreadsheet errors attributable to embedded inputs is seriously underestimated. The second is that such errors become more frequent and larger as a spreadsheet ages. The paper proposes those questions, develops a means of locating candidate defects, and shows why a selected example could have consequences. The evidence for a general incidence, magnitude, or age relationship remains to be collected.

The time component has a clear rationale in the paper. Assumptions can change, developers can forget where they stored a value, and people who did not build the workbook can take responsibility for it. Each provides a mechanism by which a design choice that once seemed harmless might matter later. The demonstrations do not follow a set of workbooks through changes in assumptions or ownership. The plausible mechanism explains why the relationship deserves investigation, while the strength and even the presence of an age effect remain open empirical questions.

The author also presents the commercial software review as preliminary. It covers the capability and presentation of the products examined, and his use of them to infer the practitioner viewpoint rests on an assumption about vendors’ incentives. Direct evidence about what practitioners consider serious, how they react to warnings, and what failures they have encountered would require the interviews and additional spreadsheet analysis he describes. That inquiry was part of a broader research proposal that also encompassed issues beyond hard coding.

Blayney gives practical qualifications about AHCIM. A user could not designate a region to skip in the version described. Legitimate constants could appear among the findings by design. He also reports implementation complications involving workbook presentation, protection, and merged cells. The demonstrations show the routine being used despite the variety of spreadsheet structures encountered in development. They do not quantify its handling of each complication across a set of workbooks.

The author’s interpretation of the practitioner example remains provisional. He sees evidence of generally sound practices and points to certain numbers for further investigation. That allows for the possibility that a closer inquiry would uncover a problem. It also allows for a reasonable explanation of those constants. The report supplies the observations that would begin the inquiry, while the final classification depends on information the paper does not establish.

Limits that follow from the setup

The rule described for formula inspection is local. It looks for a digit immediately following an operator. Excel formulas can carry structure beyond that relation between adjacent characters. The study gives no independent evaluation over formula forms to establish the full reach of the rule. A reader can infer how it works for the examples Blayney gives and where its success depends on the layout of the characters. Handling of other numeric placements would need to be established from the implementation or from a dedicated evaluation.

Even complete recognition of embedded numerals would leave the main interpretive problem in place. A formula can include a value that expresses part of its arithmetic, an assumption that remains valid, or an input that users expect to revise elsewhere. The scan is designed to identify candidates with similar surface forms. Review then establishes which of those situations applies. That separation limits what can be inferred from a count of flags, even when the count accurately reflects the rule.

The paper does not provide an independent classification of every eligible cell in the inspected workbooks. The reader can verify the logic of the selected inventory example because the paper identifies the intended source and explains the consequence of losing the reference. The proportion of findings that would qualify as defects, and the proportion of all qualifying defects that the procedure recovered, stay unknown. The difference between the reported 88 in the detailed workbook’s header and the 68 discussed with its listing is an additional reason to keep the individual examples separate from quantitative claims about detection performance.

The direct-entry count has a similar constraint. Required data and incorrectly stored answers can both increase it. For the budgeting assignment, the intended inputs make scrutiny of additional numbers meaningful. In another workbook, users may have broader discretion to supply numeric data. Comparisons across workbooks would need to account for what each one is designed to take as input. The role of the reference in the assignment is specific enough to support screening in that setting.

The sample also limits claims about prevalence. The accounting submissions arise from an exercise with a shared template and a particular expectation about formulas. The practitioner evidence is a detailed example of a complex spreadsheet with a different purpose. These cases show that the investigative method can be applied under different conditions. The study offers no sampling basis for estimating a general share of workbooks that contain dangerous embedded inputs or for comparing that share between students and practitioners.

There is also a difference between identifying a failure path and measuring its size. The student workbook has a particular input that would stay fixed in a formula after an update to the data worksheet. To establish the effect on the output under a real change, the investigation would have to specify the updated inventory requirement and trace its effect through the calculations. How far the discrepancy propagated would depend on the workbook’s dependencies and the outputs being used. The paper identifies the path and leaves the magnitude of a resulting error unknown.

Finally, even a study that established more errors in older workbooks would need to interpret what age represents. The paper names several relevant changes that can accompany the passage of time, including revised assumptions and changes in who uses the spreadsheet. The demonstrations do not isolate those circumstances. The proposed age relationship therefore remains a broad hypothesis about maintenance conditions, with the underlying causes still to be distinguished.

What came after

Subsequent studies building on AHCIM remain undocumented here. The paper’s own account ends with a proposed next stage for the research. Blayney intended to use the procedure on more spreadsheets from students, academics, and practitioners, and to gather direct evidence about practitioner views. He also envisaged a broader examination of auditing software. These were plans to extend the evidence beyond the cases and products already examined.

The proposed spreadsheet analysis would have shifted the emphasis from locating candidates to establishing their consequences. A finding like the inventory minimum has an identifiable source and a clear reason it should vary. The numbers singled out in the practitioner case still need explanations from the spreadsheet’s setting. To follow either kind of finding through to a measured error would mean establishing what changed, which calculation retained an older value, and how the affected result differed from the one the updated input called for. The paper leaves those measurements as future work.

The proposed practitioner inquiry addressed a separate uncertainty. Features and documentation indicate how vendors chose to expose or describe embedded constants. Interviews could provide direct evidence about whether practitioners encountered them, recognized their consequences, or had ways of finding them during maintenance. Blayney’s final question was whether evidence from such investigations would justify giving the separation of inputs and calculations greater weight in spreadsheet development. The paper establishes a way to begin those investigations and leaves their outcomes open.

Cite

Cite as Paul J. Blayney. 2008. An Investigation of the Incidence and Effect of Spreadsheet Errors Caused by the Hard Coding of Input Data Values into Formulas. arXiv:0803.0169 (Proc. European Spreadsheet Risks Int. Grp. (EuSpRIG) 2006 22-230 ISBN:1-905617-08-9).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.0803.0169 · arXiv 0803.0169

@misc{blayney2008investigation,
  title = {{An Investigation of the Incidence and Effect of Spreadsheet Errors Caused by the Hard Coding of Input Data Values into Formulas}},
  author = {Paul J. Blayney},
  year = {2008},
  doi = {10.48550/arxiv.0803.0169},
  eprint = {0803.0169},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.0803.0169}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/blayney-2008-investigation-incidence-effect-spreadsheet-errors/