TY - JOUR
T1 - Parsing Excel formulas
T2 - A grammar and its application on 4 large datasets
AU - Aivaloglou, Efthimia
AU - Hoepelman, David
AU - Hermans, Felienne
PY - 2017/12
Y1 - 2017/12
N2 - Spreadsheets are popular end user programming tools, especially in the industrial world. This makes them interesting research targets. However, there does not exist a reliable grammar that is concise enough to facilitate formula parsing and analysis and to support research on spreadsheet codebases. This paper presents a grammar for spreadsheet formulas that can successfully parse 99.99% of more than 8 million unique formulas extracted from 4 spreadsheet datasets. Our grammar is compatible with the spreadsheet formula language, recognizes the spreadsheet formula elements that are required for supporting spreadsheets research, and produces parse trees aimed at further manipulation and analysis. Additionally, we use the grammar to analyze the characteristics of the formulas of the 4 datasets in 3 different dimensions: complexity, functionality, and data utilization. Our results show that (1) most Excel formulas are simple, however formulas with more than 50 functions or operations exist, (2) almost all formulas use data from other cells, which is often not local, and (3) a surprising number of referring mechanisms are used by less than 1% of the formulas.
AB - Spreadsheets are popular end user programming tools, especially in the industrial world. This makes them interesting research targets. However, there does not exist a reliable grammar that is concise enough to facilitate formula parsing and analysis and to support research on spreadsheet codebases. This paper presents a grammar for spreadsheet formulas that can successfully parse 99.99% of more than 8 million unique formulas extracted from 4 spreadsheet datasets. Our grammar is compatible with the spreadsheet formula language, recognizes the spreadsheet formula elements that are required for supporting spreadsheets research, and produces parse trees aimed at further manipulation and analysis. Additionally, we use the grammar to analyze the characteristics of the formulas of the 4 datasets in 3 different dimensions: complexity, functionality, and data utilization. Our results show that (1) most Excel formulas are simple, however formulas with more than 50 functions or operations exist, (2) almost all formulas use data from other cells, which is often not local, and (3) a surprising number of referring mechanisms are used by less than 1% of the formulas.
KW - formula grammar
KW - spreadsheets
KW - syntax
UR - http://www.scopus.com/inward/record.url?scp=85050198643&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85050198643&partnerID=8YFLogxK
U2 - 10.1002/smr.1895
DO - 10.1002/smr.1895
M3 - Article
AN - SCOPUS:85050198643
SN - 2047-7481
VL - 29
JO - Journal of Software: Evolution and process
JF - Journal of Software: Evolution and process
IS - 12
M1 - e1895
ER -