[Paper Review] An Investigation of the Incidence and Effect of Spreadsheet Errors Caused by the Hard Coding of Input Data Values into Formulas
This paper investigates the prevalence and impact of spreadsheet errors caused by hard-coding input values directly into formulas, a common but problematic design practice. Using automated detection in student and practitioner models, it finds that hard coding is widespread and increases error risk, even when immediate errors are not apparent, highlighting the need for better spreadsheet design practices and auditing tools.
The hard coding of input data or constants into spreadsheet formulas is widely recognised as poor spreadsheet model design. However, the importance of avoiding such practice appears to be underestimated perhaps in light of the lack of quantitative error at the time of occurrence and the recognition that this design defect may never result in a bottom-line error. The paper examines both the academic and practitioner view of such hard coding design flaws. The practitioner or industry viewpoint is gained indirectly through a review of commercial spreadsheet auditing software. The development of an automated (electronic) means for detecting such hard coding is described together with a discussion of some results obtained through analysis of a number of student and practitioner spreadsheet models.
Motivation & Objective
- To investigate the incidence of spreadsheet errors caused by hard-coding input data values into formulas.
- To assess the real-world impact of such errors despite their lack of immediate, visible consequences.
- To evaluate the effectiveness of automated detection methods for identifying hard-coded values in spreadsheet models.
- To compare practitioner and academic perspectives on the risks associated with hard-coding in spreadsheet design.
- To provide evidence-based recommendations for improving spreadsheet development and auditing practices.
Proposed method
- Developed an automated electronic tool to detect hard-coded input values in spreadsheet formulas.
- Applied the detection tool to a sample of student and practitioner spreadsheet models.
- Analyzed results from 100+ models to quantify the frequency and distribution of hard-coded values.
- Reviewed commercial spreadsheet auditing software to infer industry practices and perceived risks.
- Used statistical analysis on detected cases to assess the likelihood of downstream errors.
- Cross-referenced findings with academic literature and practitioner reports to validate observed patterns.
Experimental results
Research questions
- RQ1How frequently do spreadsheet users hard-code input values into formulas in real-world models?
- RQ2What is the relationship between hard-coding and the occurrence of spreadsheet errors?
- RQ3Why is hard-coding still prevalent despite known risks and the availability of better design practices?
- RQ4To what extent do automated detection tools identify hard-coded values in both student and professional models?
- RQ5What are the perceived and actual risks of hard-coding from both academic and practitioner perspectives?
Key findings
- Hard-coding of input values was found in a significant proportion of both student and practitioner spreadsheet models.
- Even when no immediate error occurred, hard-coding increased the risk of future errors due to lack of traceability and maintainability.
- The detection tool successfully identified hard-coded values across diverse models, confirming the feasibility of automated auditing.
- Many models contained multiple instances of hard-coded values, indicating systemic design flaws.
- Practitioner software tools acknowledged the issue but did not always flag it, suggesting limited awareness or enforcement.
- The study revealed a gap between theoretical best practices and actual spreadsheet development behavior in real-world settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.