In this appendix we provide a very brief description of how VBA functions are

Size: px
Start display at page:

Download "In this appendix we provide a very brief description of how VBA functions are"

Transcription

1 Option Pricing Models and Volatility Using Excel VBA By Fabrice Douglas Rouah and Gregory Vainberg Copyright 2007 by Fabrice Douglas Rouah and Gregory Vainberg APPENDIX A A VBA Primer In this appendix we provide a very brief description of how VBA functions are written with the VBA editor. The VBA editor is accessed under the Tools menu in Excel, by selecting Macro, and then Visual Basic Editor, or simply by pressing ALT and F11. The first step to writing VBA code is to insert a VBA module by selecting Module from the Insert menu. A VBA function always begins with the declaration statement Function and always ends with the statement End Function. The Function statement includes all parameters that are passed to the function. Funct i on SumNum( a, b) SumNum = a + b To use the function in Excel, the function name is typed into any cell, preceded by an equal sign ( ). Hence, in any cell we type =SumNum(5,4), which produces 9. If the numbers are in, say, cells A1 and A2, then we type =SumNum(A1,A2). Using built-in functions in Excel requires that the function name be preceded by Application. Hence, the built-in Sum function in Excel could be used, so that the function would be Funct i on SumNum2( a) SumNum = Appl i cat i on. Sum( a) If the numbers that need to be summed are in cells A1:A5, then in any cell we type =SumNum(A1:A5). SumNum2(A1:A5) It is sometimes useful to create VBA functions to apply built-in functions, to save space. The following function returns the standard normal cumulative distribution function: Funct i on Gauss( X) Gauss = Appl i cat i on. Nor msdi st ( X) 404

2 A VBA Primer 405 If there are many such Excel functions to invoke within the VBA function, we could use the With Application statement and precede each function with a period. Funct i on Gauss( X) Wi t h Appl i cat i on Gauss =. Nor msdi st ( X) End Wi t h Parameters can also be text strings, in which case the parameter name must be followed by As String in the function declaration. This is used often in the option pricing formulas, to incorporate the call and put price into a single function, as is the case with the BlackScholes() function. Funct i on Bl ackschol es( S, K, r, T, v, Put Cal l As St r i ng) d = ( Log( S / K) + T * ( r * v ^ 2) ) / ( v * Sqr ( T) ) bs_cal l = S * Gauss( d) - Exp( - r * T) * K * Gauss( d - v * Sqr ( T) ) I f Put Cal l = " Cal l " Then Bl ackschol es = bs_cal l El sei f Put Cal l = " Put " Then Bl ackschol es = bs_cal l - S + K * Exp( - r * T) Instead of the If-ElseIf-EndIf statements, we could use the Select statement, which is better than nesting If statements when there are many cases to choose from Sel ect Case Put Cal l Case " Cal l " Bl ackschol es = bs_cal l Case " Put " Bl ackschol es = bs_cal l - S + K * Exp( - r * T) End Sel ect Iterative processing in VBA is done analogously to other programming languages. The For loop, for example, processes a loop a given number of times. Funct i on Repeat ( n) For i = 1 To n MsgBox " I t er at i on Number i s " & i The iteration can also be run backwards from i n to i 1. This is accomplished with the Step statement, which specifies a step size of 1inthisexample: Funct i on Repeat 2( n) For i = n To 1 St ep - 1 MsgBox " I t er at i on Number i s " & i

3 406 A VBA PRIMER In both functions, the statements could both be changed to Next. When there are multiple loops nested within one another, however, including the looping variable with the Next statement makes the code easier to read. The Do-While loop executes a loop until a certain condition is met. The BisMet() function of Chapter 1, for example, finds the root of a function using a Do-While loop. The Do-While loop continues the bisection algorithm until a tolerance of EPS is met. Funct i on Bi smet ( f name As St r i ng, a, b) EPS = I f ( Run( f name, a) < Run( f name, b) ) Then tmp = b b = a a = t mp Do Whi l e ( Run( f name, a) - Run( f name, b) > EPS) mi dpt = ( b + a) / 2 I f Run( f name, mi dpt ) < 0 Then b = mi dpt El se a = mi dpt Loop Bi smet = ( b + a) / 2 Sometimes the VBA function needs to return an array of numbers rather than just a single value. In this case, it is convenient to define an array within VBA and assign the function value to the array name once the array is filled with the values to output. In this example, terminal values from the CRR binomial tree of Chapter 3 are transferred to the array Out(). The dimensions of an array are set by the Dim statement, and can later be redimensioned using the ReDim statement. When using the ReDim statement, the values contained in the array can be preserved using the Preserve option. The Option Base 1 statement sets the first element of the arrayto be indexed as 1 instead of as 0. The latter value is the default value, but in our opinion it is more intuitive to index array elements starting with 1. Opt i on Base 1 Funct i on CRRTr ee( Spot, T, si gma, n) dt = T / n u = Exp( si gma * ( dt ^ 0. 5) ) d = 1 / u p = ( Exp( r * dt ) - d) / ( u - d) Di m S( ) As Doubl e, Out ( ) As Doubl e ReDi m S( n + 1, n + 1) As Doubl e ReDi m Out ( n + 1) As Doubl e For j = i To n + 1 S( i, j ) = Spot * u ^ ( j - i ) * d ^ ( i - 1) I f j = n + 1 Then Out ( i ) = S( i, j )

4 A VBA Primer 407 FIGURE A.1 The CRR Binomial Tree CRRTr ee = Appl i cat i on. Tr anspose( Out ) The Out() array produces a row vector, so the array must be transposed if the terminal prices are to be outputted as a column vector. To output the n 1terminal values, we must use the combination of the keys SHIFT, CTRL, and ENTER. This is illustrated with the Excel file Appendix and Figure A.1 below, using a spot price of S 100, a time to maturity of T 0 5 years, an annual volatility of 0 30, and n 5steps. In cell E4, we type CRRTree(C4,C5,C6,C7) and press ENTER, which produces the terminal price S(1, n 1) Next, since n 1 6 cells are needed for the output, we highlight cells E4:E9, press F2 (EDIT), and then CTRL-SHIFT-ENTER simultaneously. To output the entire tree values, it is convenient to Dim the Out() array as Variant, so that blank values can be outputted to cells where there is no price (the lower diagonal of the array), rather than zeros. The output is achieved in the second loop. Funct i on CRRTr ee2( Spot, T, si gma, n) dt = T / n u = Exp( si gma * ( dt ^ 0. 5) )

5 408 A VBA PRIMER d = 1 / u p = ( Exp( r * dt ) - d) / ( u - d) Di m S( ) As Doubl e, Out ( ) As Var i ant ReDi m S( n + 1, n + 1) As Doubl e ReDi m Out ( n + 1, n + 1) As Var i ant For j = i To n + 1 S( i, j ) = Spot * u ^ ( j - i ) * d ^ ( i - 1) For j = 1 To n + 1 I f j >= i Then Out ( i, j ) = S( i, j ) El se Out ( i, j ) = " " CRRTr ee2 = Out Referring to Figure A.1, to output the entire CRR binomial tree in cell C13 we type CRRTree2(C4,C5,C6,C7) and press ENTER, which produces S(1, 1) 100. Since a six-by-six array is needed for the output, we highlight cells C13:H18, press F2, and press CTRL-SHIFT- ENTER simultaneously. If a tree with more steps is required, we change the value of n 1 in cell C7, and we select a larger number of cells to highlight.

3. (1.0 point) To quickly switch to the Visual Basic Editor, press on your keyboard. a. Esc + F1 b. Ctrl + F7 c. Alt + F11 d.

3. (1.0 point) To quickly switch to the Visual Basic Editor, press on your keyboard. a. Esc + F1 b. Ctrl + F7 c. Alt + F11 d. Excel Tutorial 12 1. (1.0 point) Excel macros are written in the programming language. a. Perl b. JavaScript c. HTML d. VBA 2. (1.0 point) To edit a VBA macro, you need to use the Visual Basic. a. Manager

More information

CSE 123 Introduction to Computing

CSE 123 Introduction to Computing CSE 123 Introduction to Computing Lecture 11 Programming with Arrays SPRING 2012 Assist. Prof. A. Evren Tugtas Array Variables Review For detailed information on array variables look at the notes of Lecture

More information

Introduction to VBA for Excel-Tutorial 7. The syntax to declare an array starts by using the Dim statement, such that:

Introduction to VBA for Excel-Tutorial 7. The syntax to declare an array starts by using the Dim statement, such that: Introduction to VBA for Excel-Tutorial 7 In this tutorial, you will learn deal with arrays. We will first review how to declare the arrays, then how to pass data in and how to output arrays to Excel environment.

More information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

Appendix A1 Visual Basics for Applications (VBA)

Appendix A1 Visual Basics for Applications (VBA) Credit Risk Modeling Using Excel and VBA with DVD By Gunter Löffler and Peter N. Posch 2011 John Wiley & Sons, Ltd. Appendix A1 Visual Basics for Applications (VBA) MACROS AND FUNCTIONS In this book, we

More information

IDENTIFYING UNIQUE VALUES IN AN ARRAY OR RANGE (VBA)

IDENTIFYING UNIQUE VALUES IN AN ARRAY OR RANGE (VBA) Date: 20/11/2012 Procedure: Identifying Unique Values In An Array Or Range (VBA) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 IDENTIFYING UNIQUE VALUES IN AN ARRAY OR

More information

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide VBA Visual Basic for Applications Learner Guide 1 Table of Contents SECTION 1 WORKING WITH MACROS...5 WORKING WITH MACROS...6 About Excel macros...6 Opening Excel (using Windows 7 or 10)...6 Recognizing

More information

Agenda. Arrays 01/12/2009 INTRODUCTION TO VBA PROGRAMMING. Arrays Matrices.

Agenda. Arrays 01/12/2009 INTRODUCTION TO VBA PROGRAMMING. Arrays Matrices. INTRODUCTION TO VBA PROGRAMMING LESSON6 dario.bonino@polito.it Agenda Matrices 1 Allow to store vectorial data Geometric vectors Sets of data having something in common... Declared as Dim array_name (begin

More information

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis.

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis. Section 1 Multiple Choice MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam 1. Spreadsheets are known as the of business analysis. A. German motor car B. Mexican jumping bean C. Swiss army

More information

Ms Excel Vba Continue Loop Through Range Of

Ms Excel Vba Continue Loop Through Range Of Ms Excel Vba Continue Loop Through Range Of Rows Learn how to make your VBA code dynamic by coding in a way that allows your 5 Different Ways to Find The Last Row or Last Column Using VBA In Microsoft

More information

BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation

BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation BASIC EXCEL SYLLABUS Section 1: Getting Started Unit 1.1 - Excel Introduction Unit 1.2 - The Excel Interface Unit 1.3 - Basic Navigation and Entering Data Unit 1.4 - Shortcut Keys Section 2: Working with

More information

Opening a Data File in SPSS. Defining Variables in SPSS

Opening a Data File in SPSS. Defining Variables in SPSS Opening a Data File in SPSS To open an existing SPSS file: 1. Click File Open Data. Go to the appropriate directory and find the name of the appropriate file. SPSS defaults to opening SPSS data files with

More information

AC : SPREADSHEET TECHNIQUES FOR ENGINEERING PROFESSORS: THE CASE OF EXCEL AND ENGINEERING ECONOMICS

AC : SPREADSHEET TECHNIQUES FOR ENGINEERING PROFESSORS: THE CASE OF EXCEL AND ENGINEERING ECONOMICS AC 2007-1453: SPREADSHEET TECHNIQUES FOR ENGINEERING PROFESSORS: THE CASE OF EXCEL AND ENGINEERING ECONOMICS John Ristroph, University of Louisiana-Lafayette JOHN H. RISTROPH is an emeritus Professor of

More information

Tutorial 1: Getting Started with Excel

Tutorial 1: Getting Started with Excel Tutorial 1: Getting Started with Excel Microsoft Excel 2010 Objectives Understand the use of spreadsheets and Excel Learn the parts of the Excel window Scroll through a worksheet and navigate between worksheets

More information

IFA/QFN VBA Tutorial Notes prepared by Keith Wong

IFA/QFN VBA Tutorial Notes prepared by Keith Wong IFA/QFN VBA Tutorial Notes prepared by Keith Wong Chapter 5: Excel Object Model 5-1: Object Browser The Excel Object Model contains thousands of pre-defined classes and constants. You can view them through

More information

Math 227 EXCEL / MEGASTAT Guide

Math 227 EXCEL / MEGASTAT Guide Math 227 EXCEL / MEGASTAT Guide Introduction Introduction: Ch2: Frequency Distributions and Graphs Construct Frequency Distributions and various types of graphs: Histograms, Polygons, Pie Charts, Stem-and-Leaf

More information

Getting started 7. Writing macros 23

Getting started 7. Writing macros 23 Contents 1 2 3 Getting started 7 Introducing Excel VBA 8 Recording a macro 10 Viewing macro code 12 Testing a macro 14 Editing macro code 15 Referencing relatives 16 Saving macros 18 Trusting macros 20

More information

d2vbaref.doc Page 1 of 22 05/11/02 14:21

d2vbaref.doc Page 1 of 22 05/11/02 14:21 Database Design 2 1. VBA or Macros?... 2 1.1 Advantages of VBA:... 2 1.2 When to use macros... 3 1.3 From here...... 3 2. A simple event procedure... 4 2.1 The code explained... 4 2.2 How does the error

More information

An introduction to programming in Visual Basic AGEC

An introduction to programming in Visual Basic AGEC This document was generated at 11:55 AM on Wednesday, March 01, 2017 An introduction to programming in Visual Basic AGEC 642-2017 I. Introduction The purpose of this tutorial is to provide you with the

More information

Excel Part 3 Textbook Addendum

Excel Part 3 Textbook Addendum Excel Part 3 Textbook Addendum 1. Lesson 1 Activity 1-1 Creating Links Data Alert and Alternatives After completing Activity 1-1, you will have created links in individual cells that point to data on other

More information

Workbooks (File) and Worksheet Handling

Workbooks (File) and Worksheet Handling Workbooks (File) and Worksheet Handling Excel Limitation Excel shortcut use and benefits Excel setting and custom list creation Excel Template and File location system Advanced Paste Special Calculation

More information

A guide to writing Excel formulas and VBA macros. Mark McIlroy

A guide to writing Excel formulas and VBA macros. Mark McIlroy A guide to writing Excel formulas and VBA macros Mark McIlroy Other books by the author The Wise Investor Introduction to the Stockmarket SQL Essentials Introduction to Computer Science Starting a Small

More information

Sébastien Mathier wwwexcel-pratiquecom/en Arrays are "variables" that allow many values to be stored We have already covered this topic in Lesson 3, but now we will go into greater depth Why use arrays?

More information

Visual Basic for Applications

Visual Basic for Applications Visual Basic for Applications Programming Damiano SOMENZI School of Economics and Management Advanced Computer Skills damiano.somenzi@unibz.it Week 1 Outline 1 Visual Basic for Applications Programming

More information

MICROSOFT EXCEL KEYBOARD SHORCUTS

MICROSOFT EXCEL KEYBOARD SHORCUTS MICROSOFT EXCEL KEYBOARD SHORCUTS F1 Displays the Office Assistant or (Help > Microsoft Excel Help) F2 Edits the active cell, putting the cursor at the end F3 Displays the (Insert > Name > Paste) dialog

More information

Excel 2013 KPMG Excel Formulas and Functions

Excel 2013 KPMG Excel Formulas and Functions Excel 2013 KPMG Excel Formulas and Functions Introduction This document looks at linking between Excel Sheets and Excel Workbooks, including copy/paste link, creating three dimensional formulas, and using

More information

Lab 5 Excel Spreadsheet Introduction

Lab 5 Excel Spreadsheet Introduction Lab 5 Excel Spreadsheet Introduction Step 1 Start Excel Under Start, select All Programs the Microsoft Office then Excel. Select the File tab and save your file as lab5 on your network drive. Step 2 Spreadsheet

More information

Outline. Midterm Review. Using Excel. Midterm Review: Excel Basics. Using VBA. Sample Exam Question. Midterm Review April 4, 2014

Outline. Midterm Review. Using Excel. Midterm Review: Excel Basics. Using VBA. Sample Exam Question. Midterm Review April 4, 2014 Midterm Review Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers April 4, 2017 Outline Excel spreadsheet basics Use of VBA functions and subs Declaring/using variables

More information

Introduction to MATLAB Programming

Introduction to MATLAB Programming July 23, 2017 Appendix D Introduction to MATLAB Programming Contents D.1 Getting Started............................. 2 D.2 Basic m-file................................ 3 D.2.1 Printing..................................

More information

3.3 Here are VBA and MATLAB implementations of the algorithm:

3.3 Here are VBA and MATLAB implementations of the algorithm: 1 CHAPTER 3 3.1 (a) (b) (c) (101101) (101.101) (0.01101) 5 (1 ) (0 ) (1 ) (1 ) (0 ) (1 ) 3 8 4 1 45 4 1 0.5 0.15 5.65 4 1 (1 ) (0 ) (1 ) (1 (0 1 ) (1 ) (1 0.5 0.15 0.0315 0.4065 3 0 3 ) (0 1 4 1 ) (0 )

More information

Review for Programming Exam and Final May 4-9, Ribbon with icons for commands Quick access toolbar (more at lecture end)

Review for Programming Exam and Final May 4-9, Ribbon with icons for commands Quick access toolbar (more at lecture end) Review for Programming Exam and Final Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers May 4-9, 2017 Outline Schedule Excel Basics VBA Editor and programming variables

More information

Customizing the Excel 2013 program window. Getting started with Excel 2013

Customizing the Excel 2013 program window. Getting started with Excel 2013 Customizing the Excel 2013 program window 1 2 Getting started with Excel 2013 Working with data and Excel tables Creating workbooks Modifying workbooks Modifying worksheets Merging and unmerging cells

More information

How to Use Do While Loop in Excel VBA

How to Use Do While Loop in Excel VBA We have already covered an introduction to looping and the simplest type of loops, namely the For Next Loop and the For Each Next Loop, in previous tutorials. We discovered that the For Next Loop and the

More information

Ms Excel Dashboards & VBA

Ms Excel Dashboards & VBA Ms Excel Dashboards & VBA 32 hours, 4 sessions, 8 hours each Day 1 Formatting Conditional Formatting: Beyond Simple Conditional Formats Data Validation: Extended Uses of Data Validation working with Validation

More information

MS Excel VBA Class Goals

MS Excel VBA Class Goals MS Excel VBA 2013 Class Overview: Microsoft excel VBA training course is for those responsible for very large and variable amounts of data, or teams, who want to learn how to program features and functions

More information

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan DATA 301 Introduction to Data Analytics Microsoft Excel VBA Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic

More information

Appendix A Microsoft Office Specialist exam objectives

Appendix A Microsoft Office Specialist exam objectives A 1 Appendix A Microsoft Office Specialist exam objectives This appendix covers these additional topics: A Excel 2013 Specialist exam objectives, with references to corresponding coverage in ILT Series

More information

Visual basic tutorial problems, developed by Dr. Clement,

Visual basic tutorial problems, developed by Dr. Clement, EXCEL Visual Basic Tutorial Problems (Version January 20, 2009) Dr. Prabhakar Clement Arthur H. Feagin Distinguished Chair Professor Department of Civil Engineering, Auburn University Home page: http://www.eng.auburn.edu/users/clemept/

More information

EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING

EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING TABLE OF CONTENTS 1. What is VBA? 2. Safety First! 1. Disabling and Enabling Macros 3. Getting started 1. Enabling the Developer tab 4. Basic

More information

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and VBA AND MACROS VBA is a major division of the stand-alone Visual Basic programming language. It is integrated into Microsoft Office applications. It is the macro language of Microsoft Office Suite. Previously

More information

Navigating T hrough a W ork book

Navigating T hrough a W ork book Lesson 14 - Navigating Through a Workbook 175 Lesson 14 Navigating T hrough a W ork book Les s on Topics Moving Around a Workbook Using Panes Print Titles Multiple Windows of a Workbook Les s on Objectives

More information

Creating a data file and entering data

Creating a data file and entering data 4 Creating a data file and entering data There are a number of stages in the process of setting up a data file and analysing the data. The flow chart shown on the next page outlines the main steps that

More information

CS 2113 Midterm Exam, November 6, 2007

CS 2113 Midterm Exam, November 6, 2007 CS 2113 Midterm Exam, November 6, 2007 Problem 1 [20 pts] When the following VBA program is executed, what will be displayed in the message box? Option Explicit Sub problem1() Dim m As Integer, n As Integer

More information

Switches between worksheet and menu / Ribbon. Calculates all worksheets in all open workbooks. Highlights shortcut keys of Menu and Ribbon items.

Switches between worksheet and menu / Ribbon. Calculates all worksheets in all open workbooks. Highlights shortcut keys of Menu and Ribbon items. Check for updates http://www.excelbee.com/all-excel-shortcuts/ Shortcut with Function Key Function Keys Description F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Open "Microsoft Office Excel Help". Edit an Excel

More information

download instant at

download instant at CHAPTER 1 - LAB SESSION INTRODUCTION TO EXCEL INTRODUCTION: This lab session is designed to introduce you to the statistical aspects of Microsoft Excel. During this session you will learn how to enter

More information

How to Create a For Next Loop in Excel VBA!

How to Create a For Next Loop in Excel VBA! Often when writing VBA code, one may need to repeat the same action or series of actions more than a couple of times. One could, in this case, write each action over and over in one s code or alternatively

More information

Excel 2016 In Easy Steps

Excel 2016 In Easy Steps We have made it easy for you to find a PDF Ebooks without any digging. And by having access to our ebooks online or by storing it on your computer, you have convenient answers with excel 2016 in easy steps.

More information

Microsoft Excel > Shortcut Keys > Shortcuts

Microsoft Excel > Shortcut Keys > Shortcuts Microsoft Excel > Shortcut Keys > Shortcuts Function Keys F1 Displays the Office Assistant or (Help > Microsoft Excel Help) F2 Edits the active cell, putting the cursor at the end* F3 Displays the (Insert

More information

Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools

Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools This Macro Enabled Excel workbook contains a collection of useful tools that enables the user to Get, Post or Lookup data from MS

More information

Reals 1. Floating-point numbers and their properties. Pitfalls of numeric computation. Horner's method. Bisection. Newton's method.

Reals 1. Floating-point numbers and their properties. Pitfalls of numeric computation. Horner's method. Bisection. Newton's method. Reals 1 13 Reals Floating-point numbers and their properties. Pitfalls of numeric computation. Horner's method. Bisection. Newton's method. 13.1 Floating-point numbers Real numbers, those declared to be

More information

S III. Case Study: TI Calculator Numerics

S III. Case Study: TI Calculator Numerics Introduction S III. Case Study: TI Calculator Numerics Texas Instruments started a research project in 1965 to design a pocket calculator. The first pocket calculators appeared in the early 1970 from the

More information

Office 2016 Excel Basics 06 Video/Class Project #18 Excel Basics 6: Customize Quick Access Toolbar (QAT) and Show New Ribbon Tabs

Office 2016 Excel Basics 06 Video/Class Project #18 Excel Basics 6: Customize Quick Access Toolbar (QAT) and Show New Ribbon Tabs **These pdf Notes are for video 6-8. Scroll down to see notes for all three videos. Office 2016 Excel Basics 06 Video/Class Project #18 Excel Basics 6: Customize Quick Access Toolbar (QAT) and Show New

More information

Acknowledgements About the Author Starting off on the Right Foot p. 1 Basic Terminology p. 2 Title Bar p. 3 Menu Bar p. 3 Active Cell p.

Acknowledgements About the Author Starting off on the Right Foot p. 1 Basic Terminology p. 2 Title Bar p. 3 Menu Bar p. 3 Active Cell p. Acknowledgements p. a About the Author p. e Starting off on the Right Foot p. 1 Basic Terminology p. 2 Title Bar p. 3 Menu Bar p. 3 Active Cell p. 3 Toolbar Collections p. 3 Toolbar Collections p. 4 Help

More information

90 + Excel Keyboard Shortcuts. for Mac users. How to master key board shortcuts

90 + Excel Keyboard Shortcuts. for Mac users. How to master key board shortcuts 90 + Excel Keyboard Shortcuts for Mac users How to master key board shortcuts 1. Take down a handful (may be 5 or 10) shortcuts that you think you ll use the most often and pin them to your desk. Make

More information

Computer Worksheet 4

Computer Worksheet 4 GB Computational Maths 2003-04 1 Computer Worksheet 4 The Bisection Method This sheet shows how to code the bisection method using the Excel spread sheet with a number of user defined functions. The instruction

More information

Computer Science Lab Exercise 1

Computer Science Lab Exercise 1 1 of 10 Computer Science 127 - Lab Exercise 1 Introduction to Excel User-Defined Functions (pdf) During this lab you will experiment with creating Excel user-defined functions (UDFs). Background We use

More information

10 Ways To Efficiently Analyze Your Accounting Data in Excel

10 Ways To Efficiently Analyze Your Accounting Data in Excel 10 Ways To Efficiently Analyze Your Accounting Data in Excel Live Demonstration Investment advisory services are offered through CliftonLarsonAllen Wealth Advisors, LLC, an SEC-registered investment advisor.

More information

Introduction to COSY INFINITY

Introduction to COSY INFINITY Introduction to COSY INFINITY 1 COSY INFINITY is the first arbitrary order beam physics code. It is a DA (Differential Algebra) based, new generation code for the study and design of beam physics systems:

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

More information

New Perspectives on Microsoft Excel Module 1: Getting Started with Excel

New Perspectives on Microsoft Excel Module 1: Getting Started with Excel New Perspectives on Microsoft Excel 2016 Module 1: Getting Started with Excel 1 Objectives, Part 1 Open and close a workbook Navigate through a workbook and worksheet Select cells and ranges Plan and create

More information

Mastering the Actuarial Tool Kit

Mastering the Actuarial Tool Kit Mastering the Actuarial Tool Kit By Sean Lorentz, ASA, MAAA Quick, what s your favorite Excel formula? Is it the tried and true old faithful SUMPRODUCT formula we ve all grown to love, or maybe once Microsoft

More information

Flexcel Reports Designers Guide

Flexcel Reports Designers Guide Flexcel Reports Designers Guide Documentation: May, 2010 Copyright 2010 by tmssoftware.com bvba Web: http://www.tmssoftware.com Email : info@tmssoftware.com 1 P a g e Table of contents Introduction...

More information

New Root-Seeking Algorithms

New Root-Seeking Algorithms By Namir C Shammas This article presents a pair of new root-seeking algorithms that use an innovative approach. Testing these algorithms shows that they can reach a good approximation to the root in less

More information

Documentation of DaTrAMo (Data Transfer- and Aggregation Module)

Documentation of DaTrAMo (Data Transfer- and Aggregation Module) 1. Introduction Documentation of DaTrAMo (Data Transfer- and Aggregation Module) The DaTrAMo for Microsoft Excel is a solution, which allows to transfer or aggregate data very easily from one worksheet

More information

Table of Contents Data Validation... 2 Data Validation Dialog Box... 3 INDIRECT function... 3 Cumulative List of Keyboards Throughout Class:...

Table of Contents Data Validation... 2 Data Validation Dialog Box... 3 INDIRECT function... 3 Cumulative List of Keyboards Throughout Class:... Highline Excel 2016 Class 10: Data Validation Table of Contents Data Validation... 2 Data Validation Dialog Box... 3 INDIRECT function... 3 Cumulative List of Keyboards Throughout Class:... 4 Page 1 of

More information

Manual Calculation Definition Excel 2010 Vba Set

Manual Calculation Definition Excel 2010 Vba Set Manual Calculation Definition Excel 2010 Vba Set The default is to calculate them automatically, unless certain criteria are met. written for users of the following Microsoft Excel versions: 2007, 2010,

More information

Autodesk Inventor Tutorials by Sean Dotson VBA Functions in Parts Part Two Latest Revision: 3/17/03 For R Sean

Autodesk Inventor Tutorials by Sean Dotson   VBA Functions in Parts Part Two Latest Revision: 3/17/03 For R Sean Autodesk Inventor Tutorials by Sean Dotson www.sdotson.com sean@sdotson.com VBA Functions in Parts Part Two Latest Revision: 3/17/03 For R6 2003 Sean Dotson (sdotson.com) Inventor is a registered trademark

More information

Business Process Procedures

Business Process Procedures Business Process Procedures 14.40 MICROSOFT EXCEL TIPS Overview These procedures document some helpful hints and tricks while using Microsoft Excel. Key Points This document will explore the following:

More information

Basic Shortcut Keys File menu options in current program Edit options in current program Universal Help (for all programs)

Basic Shortcut Keys File menu options in current program Edit options in current program Universal Help (for all programs) Basic Shortcut Keys Alt + F Alt + E F1 Ctrl + A Ctrl + X Shift + Del ns Ctrl + V Shift + Ins Home Ctrl + Home End Ctrl + End Shift + Home Shift + End Ctrl + Ctrl + File menu options in current program

More information

Formulas and Functions

Formulas and Functions Conventions used in this document: Keyboard keys that must be pressed will be shown as Enter or Ctrl. Controls to be activated with the mouse will be shown as Start button > Settings > System > About.

More information

Solving General Linear Equations w/ Excel

Solving General Linear Equations w/ Excel Solving General Linear Equations w/ Ecel Matri Operations in Ecel Ecel has commands for: Multiplication (mmult) matri multiplication Transpose (transpose) transpose a matri Determinant (mdeterm) calc the

More information

COURSE CONTENT Excel with VBA Training

COURSE CONTENT Excel with VBA Training COURSE CONTENT Excel with VBA Training MS Excel - Advance 1. Excel Quick Overview Use of Excel, its boundaries & features 2. Data Formatting & Custom setting Number, Text, Date, Currency, Custom settings.

More information

Technology Assignment: Scatter Plots

Technology Assignment: Scatter Plots The goal of this assignment is to create a scatter plot of a set of data. You could do this with any two columns of data, but for demonstration purposes we ll work with the data in the table below. You

More information

Themes & Templates Applying a theme Customizing a theme Creatingfilefromtemplate Creating yourowncustomize Template Using templates Editing templates

Themes & Templates Applying a theme Customizing a theme Creatingfilefromtemplate Creating yourowncustomize Template Using templates Editing templates Introducing Excel Understanding Workbooks and Worksheets Moving around a Worksheet Introducing the Ribbon Accessing the Ribbon by using your keyboard Using Shortcut Menus Customizing Your Quick Access

More information

Excel 101. DJ Wetzel Director of Financial Aid Greenville Technical College

Excel 101. DJ Wetzel Director of Financial Aid Greenville Technical College Excel 101 DJ Wetzel Director of Financial Aid Greenville Technical College Introduction Spreadsheets are made up of : Columns identified with alphabetic headings Rows - identified with numeric headings.

More information

Excel Charts for LCAP. Marin County Office of Education February 2015

Excel Charts for LCAP. Marin County Office of Education February 2015 Excel Charts for LCAP Marin County Office of Education February 2015 GOALS Data tables We ll learn how to use Excel to create a data table Ready made charts We ll learn how to download charts that already

More information

Corrections Version 4.5, last updated May 1, 2004

Corrections Version 4.5, last updated May 1, 2004 Corrections Version 4.5, last updated May 1, 2004 This book requires far more corrections than I had anticipated, and for which I am wholly responsible and very sorry. Please make the following text corrections:

More information

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION Lesson 1 - Recording Macros Excel 2000: Level 5 (VBA Programming) Student Edition LESSON 1 - RECORDING MACROS... 4 Working with Visual Basic Applications...

More information

I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS...

I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS... EXCEL 2010 BASICS Microsoft Excel I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS... 6 The Mouse... 6 What Are Worksheets?... 6 What is a Workbook?...

More information

e.g. D6 contains =bmi($a6,$d$4)

e.g. D6 contains =bmi($a6,$d$4) e) Produce a table which labels columns by heights from 1.55m to 1.95m in steps of 5 cm and rows by weights from 50kg to 95kg in steps of 5kg. At each intersection compute the corresponding body mass index.

More information

Unit 6 - Software Design and Development LESSON 3 KEY FEATURES

Unit 6 - Software Design and Development LESSON 3 KEY FEATURES Unit 6 - Software Design and Development LESSON 3 KEY FEATURES Last session 1. Language generations. 2. Reasons why languages are used by organisations. 1. Proprietary or open source. 2. Features and tools.

More information

Microsoft Excel Keyboard Shortcuts

Microsoft Excel Keyboard Shortcuts Microsoft Excel Keyboard Shortcuts Here is a complete list of keyboard shortcuts for Microsoft Excel. Most of the shortcuts will work on all Excel versions on Windows based computer. Data Processing Shortcuts

More information

Secrets Of Ms Excel Vba Macros For Beginners Save Your Time With Visual Basic Macros

Secrets Of Ms Excel Vba Macros For Beginners Save Your Time With Visual Basic Macros Secrets Of Ms Excel Vba Macros For Beginners Save Your Time With Visual Basic Macros We have made it easy for you to find a PDF Ebooks without any digging. And by having access to our ebooks online or

More information

VBA Handout. References, tutorials, books. Code basics. Conditional statements. Dim myvar As <Type >

VBA Handout. References, tutorials, books. Code basics. Conditional statements. Dim myvar As <Type > VBA Handout References, tutorials, books Excel and VBA tutorials Excel VBA Made Easy (Book) Excel 2013 Power Programming with VBA (online library reference) VBA for Modelers (Book on Amazon) Code basics

More information

Excellence with Excel: Quiz Questions Module 6 Graphs and Charts

Excellence with Excel: Quiz Questions Module 6 Graphs and Charts Excellence with Excel: Quiz Questions Module 6 Graphs and Charts 1. Suppose that you have a company s annual revenue by year. How could you create a simple column chart for this data? a. Select all the

More information

Computational Mathematics/Information Technology. Worksheet 2 Iteration and Excel

Computational Mathematics/Information Technology. Worksheet 2 Iteration and Excel Computational Mathematics/Information Technology Worksheet 2 Iteration and Excel This sheet uses Excel and the method of iteration to solve the problem f(x) = 0. It introduces user functions and self referencing

More information

Excel Tips and Tricks

Excel Tips and Tricks Excel Tips and Tricks References Excel Annoyances - Curtis Frye Excel Hacks - O Reilly http://www.exceltip.com (Joseph Rubin) http://exceltips.vitalnews.com/ (Allen Wyatt) Some Excel Basics as well as

More information

Introducing Microsoft Office Specialist Excel Module 1. Adobe Captivate Wednesday, May 11, 2016

Introducing Microsoft Office Specialist Excel Module 1. Adobe Captivate Wednesday, May 11, 2016 Slide 1 - Introducing Microsoft Office Specialist Excel 2013 Introducing Microsoft Office Specialist Excel 2013 Module 1 Page 1 of 25 Slide 2 - Lesson Objectives Lesson Objectives Understand what Microsoft

More information

The Microsoft Excel Course is divided into 4 levels

The Microsoft Excel Course is divided into 4 levels MS Excel is a very powerful tools used by most of the data analyst in the industry. In this course you will learn how to Master Excel and make it perform any kind of data analysis and Visualization. You

More information

Creating If/Then/Else Routines

Creating If/Then/Else Routines 10 ch10.indd 147 Creating If/Then/Else Routines You can use If/Then/Else routines to give logic to your macros. The process of the macro proceeds in different directions depending on the results of an

More information

A Tutorial for ECE 175

A Tutorial for ECE 175 Debugging in Microsoft Visual Studio 2010 A Tutorial for ECE 175 1. Introduction Debugging refers to the process of discovering defects (bugs) in software and correcting them. This process is invoked when

More information

To be able to modify a worksheet and use functions, you will: Select ranges of cells on a worksheet by using the mouse.

To be able to modify a worksheet and use functions, you will: Select ranges of cells on a worksheet by using the mouse. L E S S O N 3 Modifying a workbook Suggested teaching time 60-70 minutes Lesson objectives To be able to modify a worksheet and use functions, you will: a b c Select ranges of cells on a worksheet by using

More information

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials Fundamentals We build up instructions from three types of materials Constants Expressions Fundamentals Constants are just that, they are values that don t change as our macros are executing Fundamentals

More information

GAUSS T U T O R I A L

GAUSS T U T O R I A L Social Science Research Lab American University Washington, D.C. http://www.american.edu/ssrl 202.885.3862 GAUSS T U T O R I A L GAUSS is a powerful matrix-oriented computer programming environment. It

More information

IBM Rational Rhapsody Gateway Add On. User Manual

IBM Rational Rhapsody Gateway Add On. User Manual User Manual Rhapsody IBM Rational Rhapsody Gateway Add On User Manual License Agreement No part of this publication may be reproduced, transmitted, stored in a retrieval system, nor translated into any

More information

Guide for Transitioning From Fixed To Flexible Scenario Format

Guide for Transitioning From Fixed To Flexible Scenario Format Guide for Transitioning From Fixed To Flexible Scenario Format Updated December 23 2016 GGY AXIS 5001 Yonge Street Suite 1300 Toronto, ON M2N 6P6 Phone: 416-250-6777 Toll free: 1-877-GGY-AXIS Fax: 416-250-6776

More information

Spreadsheet Microsoft Excel 2010

Spreadsheet Microsoft Excel 2010 Spreadsheet Microsoft Excel 2010 Prepared by: Teo Siew Copyright 2017 MAHSA UNIVERSITY Faculty of Business, Finance, and Hospitality Spreadsheet A type of application program which manipulates numerical

More information

Welcome to AEM Part Six: Accessible Microsoft Office Word Document Design.

Welcome to AEM Part Six: Accessible Microsoft Office Word Document Design. Welcome to AEM Part Six: Accessible Microsoft Office Word Document Design. 1 Lets review the agenda for this presentation. First, we will review the three principles of accessible Word document creation,

More information

<excelunusual.com> Easy Zoom -Chart axis Scaling Using VBA - by George Lungu. <www.excelunusual.com> 1. Introduction: Chart naming: by George Lungu

<excelunusual.com> Easy Zoom -Chart axis Scaling Using VBA - by George Lungu. <www.excelunusual.com> 1. Introduction: Chart naming: by George Lungu Easy Zoom -Chart axis Scaling Using VBA - by George Lungu Introduction: - In certain models we need to be able to change the scale of the chart axes function of the result of a simulation - An Excel chart

More information

Some useful shortcut keys applicable for both Excel and Word (16 to 19 is only for Excel): Sr.No. Shortcut Keys Description

Some useful shortcut keys applicable for both Excel and Word (16 to 19 is only for Excel): Sr.No. Shortcut Keys Description Some useful shortcut keys applicable for both Excel and Word (16 to 19 is only for Excel): Sr.No. Shortcut Keys Description 1 Ctrl + C Copy the selected data 2 Ctrl + X Cut the selected data 3 Ctrl + V

More information