Detecting and categorizing hard-coding errors in Excel Spreadsheets using Visual Basic for Applications (VBA)

Thumbnail Image
Date
2010-06-01
Authors
Rawat, Vertika
Raman, D. Raj
Anex, Robert
Major Professor
Advisor
Committee Member
Journal Title
Journal ISSN
Volume Title
Publisher
Authors
Person
Raman, D. Raj
Morrill Professor
Research Projects
Organizational Units
Organizational Unit
Agricultural and Biosystems Engineering

Since 1905, the Department of Agricultural Engineering, now the Department of Agricultural and Biosystems Engineering (ABE), has been a leader in providing engineering solutions to agricultural problems in the United States and the world. The department’s original mission was to mechanize agriculture. That mission has evolved to encompass a global view of the entire food production system–the wise management of natural resources in the production, processing, storage, handling, and use of food fiber and other biological products.

History
In 1905 Agricultural Engineering was recognized as a subdivision of the Department of Agronomy, and in 1907 it was recognized as a unique department. It was renamed the Department of Agricultural and Biosystems Engineering in 1990. The department merged with the Department of Industrial Education and Technology in 2004.

Dates of Existence
1905–present

Historical Names

  • Department of Agricultural Engineering (1907–1990)

Related Units

Journal Issue
Is Version Of
Versions
Series
Department
Agricultural and Biosystems Engineering
Abstract

Electronic spreadsheets play an indispensable role in the simulation, modeling, and analysis of bioenergy systems, and their results have the ability to affect decision-making significantly. Prior research has shown that spreadsheets are highly error-prone, and that a large percentage of these errors are difficult to detect. To that end, we developed computer code (implemented in Visual Basic for Applications, running under Microsoft Excel) to detect a particularly insidious form of spreadsheet error: the hard-coding error. These errors are defined as the presence of one or more unreferenced numerical values in a cell formula. Hard-coding errors are dangerous because they are a likely source of erroneous constants and/or non-updating assumptions. The code was used to audit six spreadsheets relevant to bioenergy systems, three developed in our lab (and reported on in other sessions at the AIM), and three in the public domain. The preliminary audit results were analyzed to understand the nature and distribution of hard-coding errors. The preponderance and diversity of hard-coding errors in these spreadsheets motivated us to subcategorize them. Together, the hard-coding error detection program and sub-categorization program provide a robust and rapid means of detecting and categorizing multiple types of hard-coding errors. Use of these programs could increase the reliability of spreadsheet software used in simulation, modeling, and analysis of bioenergy systems.

Comments

This is an ASABE Meeting Presentation, Paper No. 1009201.

Description
Keywords
Citation
DOI
Copyright
Fri Jan 01 00:00:00 UTC 2010