Implementing Nested FOR Loops as Spreadsheet Formulas

被引:1
|
作者
Mireault, Paul [1 ]
机构
[1] SSMI Int, Montreal, PQ, Canada
关键词
D O I
10.1007/978-3-319-50230-4_31
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A FOR loop is a computing structure that allows a set of calculations to be made repeatedly for each iteration of the loop where the number of iterations is known in advance. A nested loop happens when a loop is inside another loop. In a spreadsheet program like Microsoft Excel, one can program loops in VBA, its programming language. Spreadsheet developers who do not know how to program in VBA usually implement the equivalent of loops with static values (e.g. region codes and product types are typed as constants) or with formulas (e.g. the region code is the previous region code + 1). In this paper, we present similarities and differences between programming loops and spreadsheet formulas loops. We also present a set of formulas that implement nested loops for 1, 2 or 3 nested levels, along with a generalization for deeper nesting levels. We also provide model management formulas to help the spreadsheet developer ensure that his spreadsheet model covers all the iterations.
引用
收藏
页码:401 / 414
页数:14
相关论文
共 50 条
  • [1] TWINKLING LIGHTS AND NESTED LOOPS - DISTRIBUTED PROBLEM-SOLVING AND SPREADSHEET DEVELOPMENT
    NARDI, BA
    MILLER, JR
    INTERNATIONAL JOURNAL OF MAN-MACHINE STUDIES, 1991, 34 (02): : 161 - 184
  • [2] Bidirectional Spreadsheet Formulas
    Macedo, Nuno
    Pacheco, Hugo
    Sousa, Nuno Rocha
    Cunha, Alcino
    2014 IEEE SYMPOSIUM ON VISUAL LANGUAGES AND HUMAN-CENTRIC COMPUTING (VL/HCC 2014), 2014, : 161 - 168
  • [3] Refactoring meets Spreadsheet Formulas
    Badame, Sandro
    Dig, Danny
    2012 28TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE (ICSM), 2012, : 399 - 408
  • [4] BumbleBee: A Refactoring Environment for Spreadsheet Formulas
    Hermans, Felienne
    Dig, Danny
    22ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (FSE 2014), 2014, : 747 - 750
  • [5] Detecting Code Smells in Spreadsheet Formulas
    Hermans, Felienne
    Pinzger, Martin
    van Deursen, Arie
    2012 28TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE (ICSM), 2012, : 409 - 418
  • [6] Detecting and refactoring code smells in spreadsheet formulas
    Hermans, Felienne
    Pinzger, Martin
    van Deursen, Arie
    EMPIRICAL SOFTWARE ENGINEERING, 2015, 20 (02) : 549 - 575
  • [7] GridBook: Natural Language Formulas for the Spreadsheet Grid
    Ragavan, Sruti Srinivasa
    Hou, Zhitao
    Wang, Yun
    Gordon, Andrew D.
    Zhang, Haidong
    Zhang, Dongmei
    IUI'22: 27TH INTERNATIONAL CONFERENCE ON INTELLIGENT USER INTERFACES, 2022, : 345 - 368
  • [8] FLAME: A Small Language Model for Spreadsheet Formulas
    Joshi, Harshit
    Ebenezer, Abishai
    Sanchez, Jose Cambronero
    Gulwani, Sumit
    Kanade, Aditya
    Vu Le
    Radicek, Ivan
    Verbruggen, Gust
    THIRTY-EIGHTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 38 NO 12, 2024, : 12995 - 13003
  • [9] INTRODUCING CONDITIONAL ARRAY FORMULAS IN SPREADSHEET CLASSES
    Csernoch, Maria
    EDULEARN12: 4TH INTERNATIONAL CONFERENCE ON EDUCATION AND NEW LEARNING TECHNOLOGIES, 2012, : 7270 - 7279
  • [10] Detecting and refactoring code smells in spreadsheet formulas
    Felienne Hermans
    Martin Pinzger
    Arie van Deursen
    Empirical Software Engineering, 2015, 20 : 549 - 575