The Lookup Technique to Replace Nested-IF Formulas in Spreadsheet Programming
Thomas A. Grossman, Ozgur Ozluk, Jan Gustavson

TL;DR
This paper explores the lookup technique as a safer, more testable alternative to nested-IF formulas in spreadsheets, enhancing transparency and reducing errors in contingent logic implementation.
Contribution
It introduces the lookup technique, detailing its principles, benefits, limitations, and potential for improving spreadsheet programming practices.
Findings
Lookup technique improves testability and auditability of spreadsheets.
It simplifies complex contingent logic with a single lookup formula.
Limitations exist for complex logical scenarios.
Abstract
Spreadsheet programmers often implement contingent logic using a nested-IF formula even though this technique is difficult to test and audit and is believed to be risky. We interpret the programming of contingent logic in spreadsheets in the context of traditional computer programming. We investigate the "lookup technique" as an alternative to nested-IF formulas, describe its benefits for testing and auditing, and define its limitations. The lookup technique employs four distinct principles: 1) make logical tests visible; 2) make outcomes visible; 3) make logical structure visible; and 4) replace a multi-function nested-IF formula with a single-function lookup formula. It can be used only for certain simple contingent logic. We describe how the principles can be applied in more complex situations, and suggest avenues for further research.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSpreadsheets and End-User Computing
