NL2Formula: Generating Spreadsheet Formulas from Natural Language Queries
Not on the map. Why?
Abstract (arXiv)
Writing formulas on spreadsheets, such as Microsoft Excel and Google Sheets, is a widespread practice among users performing data analysis. However, crafting formulas on spreadsheets remains a tedious and error-prone task for many end-users, particularly when dealing with complex operations. To alleviate the burden associated with writing spreadsheet formulas, this paper introduces a novel benchmark task called NL2Formula, with the aim to generate executable formulas that are grounded on a spreadsheet table, given a Natural Language (NL) query as input. To accomplish this, we construct a comprehensive dataset consisting of 70,799 paired NL queries and corresponding spreadsheet formulas, covering 21,670 tables and 37 types of formula functions. We realize the NL2Formula task by providing a sequence-to-sequence baseline implementation called fCoder. Experimental results validate the effectiveness of fCoder, demonstrating its superior performance compared to the baseline models. Furthermore, we also compare fCoder with an initial GPT-3.5 model (i.e., text-davinci-003). Lastly, through in-depth error analysis, we identify potential challenges in the NL2Formula task and advocate for further investigation.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 15 of its 35 references that are in the map. First posted on arXiv 20 Feb 2024.
Builds on
15 of 35 references.
References · 15
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2020TAPAS: Weakly Supervised Table Parsing via Pre-trainingcited by 432
- 2019TabFact: A Large-scale Dataset for Table-based Fact Verificationcited by 425
- 2021TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Financecited by 402
- 2020TaBERT: Pretraining for Joint Understanding of Textual and Tabular Datacited by 395
- 2019CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databasescited by 180
- 2016Language to Logical Form with Neural Attentioncited by 158
- 2020TUTA: Tree-based Transformers for Generally Structured Table Pre-trainingcited by 100
- 2017Learning a Neural Semantic Parser from User Feedbackcited by 98
3 more
- 2016Neuro-Symbolic Program Synthesiscited by 84
- 2021SpreadsheetCoder: Formula Prediction from Semi-structured Contextcited by 41
- 2018Neural-Guided Deductive Search for Real-Time Program Synthesis from Examplescited by 39
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 4.
8 papers.
- 2024Auto-Formula: Recommend Formulas in Spreadsheets using Contrastive Learning for Table Representationscited by 12
- 2025Finch: Benchmarking Finance & Accounting across Spreadsheet-Centric Enterprise Workflowscited by 9
- 2026SpreadsheetBench 2: Evaluating Agents on End-to-End Business Spreadsheet Workflowscited by 7
- 2025Text-to-Pipeline: Bridging Natural Language and Data Preparation Pipelinescited by 5
- 2026MBABench: Evaluating LLM Agents on End-to-End Spreadsheet Tasks in Financecited by 4
- 2026SpreadsheetArena: Decomposing Preference in LLM Generation of Spreadsheet Workbookscited by 1
- 2026BlueFin: Benchmarking LLM Agents on Financial Spreadsheetscited by 1
- 2025Synthetic Function Demonstrations Improve Generation in Low-Resource Programming Languagescited by 0
- 2026SpreadsheetBench 2: Evaluating Agents on End-to-End Business Spreadsheet Workflows29 Jun 2026
- 2026BlueFin: Benchmarking LLM Agents on Financial Spreadsheets29 May 2026
- 2026MBABench: Evaluating LLM Agents on End-to-End Spreadsheet Tasks in Finance21 May 2026
- 2026SpreadsheetArena: Decomposing Preference in LLM Generation of Spreadsheet Workbooks16 Feb 2026
- 2025Finch: Benchmarking Finance & Accounting across Spreadsheet-Centric Enterprise Workflows15 Dec 2025
- 2025Text-to-Pipeline: Bridging Natural Language and Data Preparation Pipelines21 May 2025
- 2025Synthetic Function Demonstrations Improve Generation in Low-Resource Programming Languages24 Mar 2025
- 2024Auto-Formula: Recommend Formulas in Spreadsheets using Contrastive Learning for Table Representations19 Apr 2024