• Analysis ToolPak in Excel and VBA

    This note is an introduction to using Analysis ToolPak, a Microsoft Excel add-in program. The note describes most of the tools available in Analysis ToolPak, illustrates the steps through screenshots and provides examples of the program’s utility in Excel and Visual Basic for Applications (VBA). The note also shows how to automate use of these tools with VBA. The tools explained in the note are ANOVA, correlation, descriptive statistics, exponential smoothing, F-test two-sample for variances, Fourier analysis, random numbers, histogram, moving average, random number generation, rank and percentile, regression, sampling, t-test and z-test.
    詳細資料
  • Loops and Arrays in Excel VBA

    A loop is used in Microsoft Excel to repeat a piece of code, while an array is a group of variables with the same data type and name. This note is an introduction to different types of loops and their use with arrays in Excel Visual Basic for Applications (VBA), with brief definitions and examples. Loops types included are for-next, for-each, do while (do until), do-loop (with while and until), and nested loops. For arrays, the note presents static and dynamic arrays with examples.
    詳細資料
  • Subs, Functions and Event Procedures in Excel VBA

    A sub, function, or event procedure is a set of commands to perform a task in a Visual Basic for Applications (VBA) code. One important reason for subs and functions is the reusability of VBA code. For example, if an Excel VBA application requires a calculation to be performed multiple times in its code, the user can enter a reference to a sub or function, rather than rewriting the same code for each calculation.<br><br>This note is an introduction to sub, functions, and event procedures in Excel VBA with brief definitions, examples, and screenshots. The note demonstrates how to use them in a variety of settings.
    詳細資料
  • Simulation in Excel and VBA

    This note is an introduction to simulation in Excel and VBA. The note uses examples to demonstrate different methods of doing simulation in Excel and VBA (Visual Basic for Applications). Concepts explained in this note include random number generation, probability distributions, data tables, loops and arrays, histograms, and descriptive statistics.
    詳細資料
  • Simulation in Excel and VBA

    This note is an introduction to simulation in Excel and VBA. The note demonstrates different ways of doing simulation in Excel and Excel VBA with examples. The concepts used and explained in the note are random number, probability distributions, data tables, loops and arrays, histograms and descriptive statistics.
    詳細資料
  • Solver in Excel and VBA

    This note is an introduction to Solver in Excel and Visual Basic for Applications (VBA). Solver is a Microsoft Excel tool that determines variables and objective function values of linear, integer, binary, and non-linear optimization models. These models are used in insurance, finance, operations, logistics, engineering, and medicine. This note uses screenshots to help demonstrate various examples of the use of Solver, including assembling a portfolio of ideal stocks and assigning the location of fire stations in cities.
    詳細資料
  • Variables, Logical Statements and Logical Operators in Excel VBA

    Variables are used to keep changeable information or values such as text, dates, and numbers used in a macro or Visual Basic Application (VBA) code. A logical statement is a collection of Boolean-type expressions that can be either true or false, and logical operators are used in Excel VBA to connect logical statements. <br><br>This note is an introduction to variables and logical statements in Excel VBA with brief definitions and examples. It includes different data types for variable declaration, logical statements, logical operators, if-then statements, and case structures.
    詳細資料
  • How to Record a Macro in Excel

    An Excel macro is a series of commands that can perform certain tasks automatically, such as obtaining data from another Excel file or the web, updating computations, generating reports, and running models. Macros can save time, reduce user errors, and complete tasks that would be extremely difficult for a user to do otherwise. This note uses examples and screenshots to introduce macros and macro recording in Microsoft Excel.
    詳細資料
  • How to Retrieve Data From Web to Excel

    The web query feature of Microsoft Excel can be a great help in retrieving data from the web. A web query can be set up in Excel in a similar way to browsing a web page. In this note, historical stock prices are obtained from the web for use in Microsoft Excel, and a macro recorder is used to process the data and view and modify the corresponding Visual Basic for Applications (VBA) code.
    詳細資料