Skip to content
SpreadsheetBench

SpreadsheetBench: Towards Challenging Real World Spreadsheet Manipulation

Zeyao Ma1, Bohan Zhang1, Jing Zhang1, Jifan Yu2, Xiaokang Zhang1, Xiaohan Zhang3, Sijia Luo1, Xi Wang1, Jie Tang2

1Renmin University of China, 2Tsinghua University, 3Zhipu.AI

Evaluating LLM Agents' Capabilities in Manipulating Complex, Real-World Spreadsheets

SpreadsheetBench is a challenging spreadsheet manipulation benchmark that (1) contains 912 questions exclusively derived from real-world scenarios, (2) includes spreadsheet files with tabular data in various formats, (3) features a more reliable evaluation metric akin to online judge platforms.

SpreadsheetBench construction pipeline and online-judge evaluation
Figure 1: The benchmark construction pipeline and OJ-style evaluation of SpreadsheetBench.

Key Features

  1. Real-World Questions: Built from 912 authentic user questions sourced from online Excel forums, reflecting genuine and complex spreadsheet manipulation needs.
  2. Diverse Spreadsheets: Includes real spreadsheets with intricate structures such as multiple tables, non-standard relational layouts, and abundant non-textual elements, mirroring actual user environments.
  3. Robust Evaluation: Introduces a reliable, online-judge-style evaluation metric using multiple test-case spreadsheets per instruction to assess the generalization and robustness of model-generated solutions.

Evaluation Metrics

Overall (Pass@1): The overall accuracy across all 912 questions and 2,729 spreadsheets.

Benchmark Statistics

Top Score (OVERALL)
912
Total Tasks
2,729
Total Spreadsheets

SpreadsheetBench incorporates complex questions based on real-world scenarios and diverse types of tables in spreadsheet files, compared to previous benchmarks. We present four data examples in SpreadsheetBench to illustrate the attributes of real-world problems and the challenging nature of our benchmark.

Text extraction workbook example

Example 1: A cell-level manipulation example question involves manipulating a non-standard relational table (missing header on column D and column E).


This example shows a cell-level manipulation data example which aims to extract a specific part of a text string from a column of cells. The instruction contains the demand of the user and an example manipulating action of the question, which rarely occur in synthetic instructions of the previous benchmarks. Furthermore, the table within the spreadsheet file is a non-standard relational table that lacks a complete table header. The final result is required to be filled in the cells from B3 to B14, which ensure the uniqueness of the answer.

Duty assignments workbook example

Example 2: A sheet-level manipulation example question involves manipulating multiple tables in one sheet (first table from A1 to B22; second table from E1 to T22).


This example shows a sheet-level manipulation data example aimed at creating a grid for a duty assignment schedule. The instruction contains the demand of the user, the current formula solution and the error encountered by the user. Besides, the spreadsheet file contains two relational tables in one sheet. The final result should be filled in a two dimensional position (i.e., F2 to T22).

Cross-sheet lookup workbook example

Example 3: A sheet-level manipulation example question involves manipulating multiple tables on multiple sheets.


This example shows a sheet-level manipulation data example aims to search across sheets based on a sheet name and two dates (i.e., first date and last date). The instruction contains a complex requirements, a detailed explanation, a manipulation example and the error encountered by the user. Moreover, the spreadsheet file contains multiple sheets, including the table to be manipulated (e.g., sheets named BUYING or SALES) and examples of possible answers (e.g., sheets named CASE1 or CASE2). The final result should be inserted into a two-dimensional location on the sheet named SH2.

Modified test case workbook example

Example 4: A test case modified from the question in Example 3.


This example shows a test case modified from the question in Example 3. This test case is constructed following the user's requirements in the instruction. The user expects to obtain a result that will search within a specific sheet name (cell G2). Only the rows with a date falling between the first date (cell C2) and last date (Cell E2) should be returned. Therefore, we modify the value of the sheet name (cell G2) to construct a new test case, as highlighted in yellow. This test case yields search results in the SALES sheet, rather than the original case that searches in the BUYING sheet. The values in the answer position also change, as highlighted in red. By modifying the sheet name, we can alter the sheet that is being searched, enabling a more comprehensive assessment of the solution's effectiveness.