110 likes | 232 Vues
Explore the advantages of User Defined Functions (UDFs) in Excel, tailored for complexity management and quality control. This presentation, delivered at EuSPRIG 2012 in Manchester, outlines the methods to create powerful, reusable functions that simplify complex tasks by breaking them into independent components. Learn about the pros and cons of implementing UDFs versus traditional VBA functions, and discover strategies for creating open-source libraries to enhance accessibility and promote their use within the Excel community. Join us in mastering UDFs for high-quality spreadsheet solutions.
E N D
User Defined Spreadsheet Functions in Excel Dermot Balson Perth, Australia Jerzy Tyszkiewicz University of Warsaw, Poland
Why User Defined Functions? • Method to control complexity divide task into inpependent simpler pieces • Write once, use often makes sense to invest in quality • Method to deliver high quality components shape-independent integration Euspirg 2012, Manchester
Which one to choose? The same function in VBA Peyton Jones, Blackwell, Burnett “A user-centered approach to functions in Excel. Proceedings ICFP 2003. Euspirg 2012, Manchester
vs. • Less powerful • Safe • Same paradigm • Easy start • More powerful • Security concerns • New paradigm • Difficult start Euspirg 2012, Manchester
User Defined Spreadsheet Functions Euspirg 2012, Manchester
Yes we can! * Excel does have the capability to declare and call User Defined Spreadsheet Functions • Immediately • Out of the box ________________________________________ *From "Bob the Builder" children’s animated TV series Euspirg 2012, Manchester
Plan of the talk • how we do it • limitations and workarounds • auditing • side effects • speed of computation • construction of function libraries • how to popularize it Euspirg 2012, Manchester
Computation speed Adding 200 calls Recomputing all calls Euspirg 2012, Manchester
How to popularize UDSFs? • Difficult to create ... • ... but not so difficult to use • So let’s create "open source" libraries ... • ... for everyone to use (and get attracted) • And let EuSPRIG keep a repository Euspirg 2012, Manchester
Summary • UDSFs are possible in Excel • Serious limitations • Some workarounds are possible • Function libraries are possible • Can you help? Euspirg 2012, Manchester