Spreadsheet data manipulation using examples

Sumit Gulwani, William R. Harris, Rishabh Singh

Communications of the ACM · 2012 · 297 citations · 23 references

Concepts

TL;DR

Millions of computer users must manipulate large spreadsheet data but lack programming skills to automate these tasks. The study introduces a programming‑by‑example approach enabling users to automate repetitive spreadsheet tasks. The method uses a domain‑specific language and a synthesis algorithm to learn programs from user examples, with instantiations for string syntactic, string semantic, and spreadsheet layout transformations. The add‑in was successfully evaluated on multiple benchmarks from Excel help forums.

Abstract

Millions of computer end users need to perform tasks over large spreadsheet data, yet lack the programming knowledge to do such tasks automatically. We present a programming by example methodology that allows end users to automate such repetitive tasks. Our methodology involves designing a domain-specific language and developing a synthesis algorithm that can learn programs in that language from user-provided examples. We present instantiations of this methodology for particular domains of tasks: (a) syntactic transformations of strings using restricted forms of regular expressions, conditionals, and loops, (b) semantic transformations of strings involving lookup in relational tables, and (c) layout transformations on spreadsheet tables. We have implemented this technology as an add-in for the Microsoft Excel Spreadsheet system and have evaluated it successfully over several benchmarks picked from various Excel help forums.

References

23