[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-680952-105":3,"doc-detail-680952-en":80,"detail-sidebar-cat-0-en-105":114,"doc-similar-680952":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","parsing-excel-formulas-a-grammar-and-its-application-on-four-large-datasets","Parsing Excel formulas: A grammar and its application on four large datasets","","This paper develops a concise grammar for spreadsheet formulas to enable reliable parsing and downstream analysis of spreadsheet codebases. The grammar accurately parses 99.99% of over eight million unique formulas extracted from four spreadsheet datasets and generates parse trees for further manipulation. Using the grammar, the study evaluates formula characteristics in three dimensions—complexity, functionality, and data utilization—revealing that most formulas are simple, data dependencies are often non-local, and referring mechanisms appear in under 1% of formulas.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/parsing-excel-formulas-a-grammar-and-its-application-on-four-large-datasets/680952/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/parsing-excel-formulas-a-grammar-and-its-application-on-four-large-datasets/680952.png","ImageObject",300,407,{"name":42,"@type":43},"Valentina","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-10","2026-11-06",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"Why is a spreadsheet formula grammar needed for research?","Question",{"text":62,"@type":63},"Spreadsheet studies often rely on formula parsing, but existing approaches use incomplete or implied grammars, limiting reliability. A consistent, official-compatible grammar enables parsing into usable parse trees for analysis tasks such as extracting references, metrics, and code smells.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How well does the proposed grammar parse the dataset formulas?",{"text":67,"@type":63},"The grammar successfully parses 99.99% of more than eight million unique formulas extracted from four spreadsheet datasets.",{"name":69,"@type":60,"acceptedAnswer":70},"What three dimensions does the paper use to analyze formula characteristics?",{"text":71,"@type":63},"The analysis evaluates complexity, functionality, and data utilization, answering research questions about formula size/complexity, common functions/operations, and how input data is used.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},680952,1793935798,{"code":4,"msg":81,"data":82},"success",{"doc_id":78,"user_id":83,"nickname":42,"user_avatar":84,"doc_module":4,"category_id":85,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":86,"file_id":87,"file_url":88,"file_type":89,"file_size":90,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":91,"language":92,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":93,"faqs":94,"seo_title":95,"seo_description":12,"update_tm":79,"read_time":96,"preview_page_count":33,"preview_urls":97},13056703020460,"https://ap-avatar.wpscdn.com/avatar/be000253dac470eee5d?_k=1778207105932848923",8,"JOURNAL OF SOFTWARE: EVOLUTION AND PROCESS  \nJ. Softw. Evol. and Proc. 0000; 00:1–24  \nPublished online in Wiley InterScience ([www.interscience.wiley.com). DOI: 10.1002/smr](www.interscience.wiley.com). DOI: 10.1002/smr)  \nParsing Excel formulas: A grammar and its application on four  \nlarge datasets  \nEfthimia Aivaloglou 1 􀀃 , David Hoepelman 1 , Felienne Hermans 1  \nSoftware Engineering Research Group, Delft University of Technology, Mekelweg 4, 2628 CD, Delft, The Netherlands  \nSUMMARY  \nSpreadsheets 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 eight million unique formulas extracted from four 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 utilize the grammar to analyze the characteristics of the formulas of the four datasets in three 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. Copyright 􀀍c 0000 John Wiley & Sons, Ltd.  \nReceived    \nKEY WORDS: spreadsheets; syntax; formula grammar  \n1. INTRODUCTION  \nSpreadsheets are widely used in industry: Winston [1] estimates that 90% of all analysts in industry perform calculations in spreadsheets. Their use is diverse, ranging from inventory administration to educational applications and from scientiﬁc modeling to ﬁnancial systems. In a survey held in 2003 by the US Bureau of Labor Statistics [2], over 60% of 77 million surveyed workers in the US reported using spreadsheets, making this the third most common use of computers, after email and word processing. A more recent survey among 95 companies world-wide placed spreadsheets fourth, after email, browsing and word processing, accounting for 7.4% of computer time [3] . It is estimated that the number of spreadsheet programmers is bigger than that of software programmers [4, 5] .  \nBecause of their widespread use, spreadsheets have been the topic of research since the nineties [6] . Recent research has often focused on analyzing and visualizing spreadsheets [7, 8] . More recently, researchers have attempted to detect data and table clones in spreadsheets [9, 10] and to deﬁne spreadsheet smells: applications of Fowler's code smells to spreadsheets [11, 12, 13], followed by approaches to refactor spreadsheets [14, 15] and to apply testing practices on spreadsheets [16] . These research works analyze the formulas within spreadsheets, and therefore often involve formula parsing. This is done by using simple grammars which have not been  \n􀀃 Correspondence to: Software Engineering Research Group, Delft University of Technology, Mekelweg 4, 2628 CD, Delft, The Netherlands. E-mail: [e.aivaloglou@tudelft.nl](e.aivaloglou@tudelft.nl)  \nCopyright 􀀍c 0000 John Wiley & Sons, Ltd.  \nPrepared using smrauth. cls [Version: 2012/07/12 v2 .10]  \n2 E. AIVALOGLOU ET AL.  \nevaluated (like in [15] or the formula pattern recovery technique in [13]), through implied, undeﬁned grammars ([7, 11, 12, 14, 16]), or through entirely bypassing formula parsing and using string comparison operations ([10]) .  \nThe above analyses are our main motivation towards deﬁning a formula grammar. Having such a grammar will enable parsing spreadsheet formulas into processable parse trees which can in turn","cbCaic4NuzoIAaKR","https://ap.wps.com/l/cbCaic4NuzoIAaKR","pdf",2538176,24,"English","# Summary\n# Introduction\n## Motivation for a formula grammar\n## Research goals and questions\n## Contributions","[{\"question\":\"Why is a spreadsheet formula grammar needed for research?\",\"answer\":\"Spreadsheet studies often rely on formula parsing, but existing approaches use incomplete or implied grammars, limiting reliability. A consistent, official-compatible grammar enables parsing into usable parse trees for analysis tasks such as extracting references, metrics, and code smells.\"},{\"question\":\"How well does the proposed grammar parse the dataset formulas?\",\"answer\":\"The grammar successfully parses 99.99% of more than eight million unique formulas extracted from four spreadsheet datasets.\"},{\"question\":\"What three dimensions does the paper use to analyze formula characteristics?\",\"answer\":\"The analysis evaluates complexity, functionality, and data utilization, answering research questions about formula size/complexity, common functions/operations, and how input data is used.\"}]","Parsing Excel formulas: A grammar and its application on four large datasets | PDF",60,[98,102,106,110],{"page_no":22,"url":99,"width":100,"height":101},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1faaf703b3aa0f4278dcc48ce604ce29.webp",983,1291,{"page_no":26,"url":103,"width":104,"height":105},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c5960bd0245794f09aa0b917cb86191f.webp",982,1290,{"page_no":30,"url":107,"width":108,"height":109},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/391947943bc798e1193fc2739fe36e61.webp",981,1289,{"page_no":33,"url":111,"width":112,"height":113},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/ac5630adcfd58584089b6fc288ba9ef5.webp",980,1287,{"code":4,"msg":81,"data":115},[116,120,124,128,132,137,142,145,150,153,157],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":122,"slug":123},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":126,"slug":127},"Exam",70,"exam",{"id":129,"doc_module":4,"doc_module_name":25,"category_name":130,"show_sort_weight":96,"slug":131},5,"Comic","comic",{"id":133,"doc_module":4,"doc_module_name":25,"category_name":134,"show_sort_weight":135,"slug":136},6,"Technology",50,"technology",{"id":138,"doc_module":4,"doc_module_name":25,"category_name":139,"show_sort_weight":140,"slug":141},7,"Healthcare",40,"healthcare",{"id":85,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":143,"slug":144},30,"research-report",{"id":146,"doc_module":4,"doc_module_name":25,"category_name":147,"show_sort_weight":148,"slug":149},9,"Religion & Spirituality",20,"religion-spirituality",{"id":148,"doc_module":4,"doc_module_name":25,"category_name":151,"show_sort_weight":148,"slug":152},"World Cup","world-cup",{"id":154,"doc_module":4,"doc_module_name":25,"category_name":155,"show_sort_weight":154,"slug":156},10,"Lifestyle","lifestyle",{"id":158,"doc_module":4,"doc_module_name":25,"category_name":159,"show_sort_weight":129,"slug":160},19,"General","general",{"list":162,"token":11},[163,169,175,181,188,195,202,209,216,223],{"doc_id":164,"doc_title":165,"file_type":89,"home_preview_img_url":166,"slug":167,"view_count":158,"category_name":29,"create_tm":168},82020,"Holographic Neural PCFG for Unsupervised Parsing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808702460/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=3vpJOzti62a9AT9JBk2Q%2Bx7ZInU%3D","holographic-neural-pcfg-for-unsupervised-parsing",1784177627,{"doc_id":170,"doc_title":171,"file_type":89,"home_preview_img_url":172,"slug":173,"view_count":26,"category_name":29,"create_tm":174},670646,"Fingerprint Based Student Attendance Management System with Automatic Excel Computation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988345955/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=mBL3ID5oJJQ38VGahjacPBMsqyE%3D","fingerprint-based-student-attendance-management-system-with-automatic-excel-computation",1793570581,{"doc_id":176,"doc_title":177,"file_type":89,"home_preview_img_url":178,"slug":179,"view_count":154,"category_name":29,"create_tm":180},330552,"ViroISDC: a method for calling integration sites of hepatitis B virus based on feature encoding","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909608421/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=Fx6c4ihqA0RagTMWC2FXYd8vs4E%3D","viroisdc-a-method-for-calling-integration-sites-of-hepatitis-b-virus-based-on-feature-encoding",1789989385,{"doc_id":182,"doc_title":183,"file_type":89,"home_preview_img_url":184,"slug":185,"view_count":186,"category_name":29,"create_tm":187},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=Ck6Hg05UfqJfL45JOMgBr%2FehI04%3D","xnx-gas-detector-calibration-2023",7896,1776136863,{"doc_id":189,"doc_title":190,"file_type":89,"home_preview_img_url":191,"slug":192,"view_count":193,"category_name":29,"create_tm":194},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=N7YoPZqKXPCQtdoCqYoGvD4rLt4%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6934,1776136851,{"doc_id":196,"doc_title":197,"file_type":89,"home_preview_img_url":198,"slug":199,"view_count":200,"category_name":29,"create_tm":201},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=10042uTyqkLQKcBvDKsskKEWzKM%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5867,1788211707,{"doc_id":203,"doc_title":204,"file_type":89,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":29,"create_tm":208},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=LtP1xB7Qqzj9zwMmqE4%2BcN2AtAo%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716,{"doc_id":210,"doc_title":211,"file_type":89,"home_preview_img_url":212,"slug":213,"view_count":214,"category_name":29,"create_tm":215},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=Q%2BR62Z1dr3dL%2FEEJnuzOIKqFFLk%3D","developmental-biology-twelfth-edition",1250,1787780705,{"doc_id":217,"doc_title":218,"file_type":89,"home_preview_img_url":219,"slug":220,"view_count":221,"category_name":29,"create_tm":222},121,"Letter of Intent Sample for School","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693418846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=V%2BHHMj6wFtoilcyYAKBBnkiIuYY%3D","letter-of-intent-sample-for-school",1059,1776135210,{"doc_id":224,"doc_title":225,"file_type":89,"home_preview_img_url":226,"slug":227,"view_count":228,"category_name":29,"create_tm":229},129209,"Laboratory Manual for Principles of General Chemistry - J. A. Beran - 11th Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840760175/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112179&Signature=OmNwumFC7soBqAi5DBdfTzqv6og%3D","laboratory-manual-for-principles-of-general-chemistry-j-a-beran-11th-edition",887,1786011673]