Final Exam Review: VBA
|
|
|
- Beryl McCoy
- 9 years ago
- Views:
Transcription
1 Engineering Fundamentals ENG Session 14B Final Exam Review: VBA 1 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
2 Final Programming Exam Topics Flowcharts Assigning Variables Flow Control Conditional Statements For Loops Functions Definition Line How to call What is returned to the spreadsheet Macros (sub) Definition Line How do you get variables into/out of sub 2 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
3 What is going on?? Function sind(angle) 'Function to compute the sine of 'an angle in degrees 'angle=angle, degrees 'calculate the value for pi Pi = 4 * Atn(1) 'calculate sine sind = Sin(angle * Pi / 180) End Function All functions start with a line defining the function Function name(arguments) Calculations One calculation must be named the same as your function. The function outputs this value when the function is used. VBE puts this here automatically 3 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
4 The Concept of Assignment Information within program is stored: Directly as constant (example, 9.81), whose value does not change Symbolically as a variable (a=9.81), whose value can be changed = 10 4 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi a Variable (memory location) Assignment Constant (Value) Assignments must have: single variable on left valid value on right
5 Equal Sign In programming the equal sign means: Is replaced by Is assigned the result of Valid assignment examples: c=a+b, x=x+1 Equal sign does NOT mean equality as in algebra Invalid assignment examples: a+b=c; 3=x+y+99 5 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
6 What is going on?? Function sind(angle) 'Function to compute the sine of 'an angle in degrees 'angle=angle, degrees 'calculate the value for pi Pi = 4 * Atn(1) 'calculate sine sind = Sin(angle * Pi / 180) End Function These are comments. They are important. VBA has some functions (like Atn* and Sin) but doesn't have others (like Pi) *Atn is arctangent 6 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
7 Some Built-In Numeric VBA Functions Purpose VBA Function Excel Function Absolute value Abs(x) ABS(x) Truncate to integer Int(x) INT(x) Round x to n digits after decimal Round(x,n) ROUND(x) Square root Sqr(x) SQRT(x) Exponential, e Exp(x) EXP(x) Natural log Log(x) LN(x) Base-10 log - LOG10(x) Base-b log - LOG(x,b) Value of pi - PI() Sine Sin(x) SIN(x) Cosine Cos(x) COS(x) Tangent Tan(x) TAN(x) Arcsine - ASIN(x) Arccosine - ACOS(x) Arctangent Atn(x) ATAN(x) Arctangent (4 quadrant) - ATAN2(x,y) Degrees to radians - RADIANS(x) Radians to degrees - DEGREES(x) X modulo y X Mod y MOD(x,y) Random number Rnd() RAND() Bold indicates functions that differ between VBA and Excel. Table from: Chapra, S.C. Power Programming With VBA/EXCEL, pg //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
8 Using Excel Functions in VBA Some functions can be called from Excel to use in your VBA code. Calling an Excel function in VBA: Application.WorksheetFunction.functionname(argum ent) Example: inverse cosine of 0.5 Application.WorksheetFunction.acos(0.5) Do a help search on Visual Basic Functions List of Worksheet Functions Available to Visual Basic Using Microsoft Excel Worksheet Function in Visual Basic 8 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
9 Sending Multiple Arguments to a Function A 2 +B 2 =C 2 VBA Function Hyp(A,B) 9 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
10 Flowchart Symbols Start Start or Stop Input X,xmin Input or Output x=xmin+5 Process Step? Test for Branching Flow of Process Graphically represent sequential problems and decision choices. Typical Symbols are: Start/Stop Input/Output Process Step Test for Branching (decision) Flow of Process 10 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
11 If/Then/Else Statements in VBA VBA syntax for an if/then/else statement: If condition Then True statements Else False statements End If Indentation is IMPORTANT 11 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
12 If/Then Statements in VBA Do not need to include the else if it's not needed VBA syntax for an If/Then statement If condition Then True statements End If 12 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
13 If/Then/ElseIf Statements in VBA Can also have nested If statements VBA syntax for an If/Then/ElseIf statement If condition 1 Then True statements 1 ElseIf condition 2 Then True statements 2 Else False statements End If 13 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
14 Loops Used for repetitive calculations For Loops Continue loop for known number of times Repetitively execute statements 14 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
15 For/Next Loop If we know that the loop should run n times, there is a special loop to deal with these cases. For/Next loop VBA syntax: For counter = start To finish Statements Next counter 15 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
16 Start Factorial Function N = number i fact_calc Initialize variable: fact_calc=1 For i=1 to N fact_calc=fact_calc*i fact_calc End T F Function fact_calc(n) This Function will calculate the Factorial of n initialize fact_calc fact_calc=1 For i = 1 To n fact_calc = fact_calc * i Next i End Function =6*4 = 24 =fact_calc*i =24*5 = //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi =fact_calc*i =1*1 = 1 =fact_calc*i =1*2=2 =fact_calc*i =2*3 = 6 =fact_calc*i
17 For/Next Loop Options Specifying step size For counter = start To finish Step increment Statements Next counter Default step size is one. If you want a different step size you can specifiy it. Example: For i = 1 To 10 Step 2 Will count: 1,3,5,7,9 17 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
18 For/Next Loop Options Alternative way of exiting the loop: For counter = start To finish Statements If condition Then Exit For Statements Next counter The loop will terminate when it encounters an Exit For statement. Any number of Exit For statements may be placed in the loop. Exit For statements may be placed anywhere. 18 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
19 Functions Review We can now write our own functions in Excel Functions are good for... Doing repetitive calculations Returning a single value (answer) to the cell What if we want to do more? //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
20 Writing Macros Ability to do many, many things including: Formatting cells Performing calculations Grabbing data from cells Putting data into cells Display pop-up messages, dialog and input boxes And more... Let's start with a simple example. 20 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
21 Option Explicit Sub Factorial() 'Names, Section #, Team # 'Date 'Variable Declaration Dim n As Single, c As Single, initial As Single Dim i as Integer 'input data Sheets("Sheet1").Select Range("B8").Select n = ActiveCell.Value Initial =1 'calculation For i = 1 To n 'compute factorial c = initial * i initial = c Next i 'output results Range("B9").Select ActiveCell.Value = c What is going on?? Forces you to define the type of all variables (good programming practice). Declaring the macro program to be a subroutine program, Factorial. The parentheses are for the routine's arguments. In this case, there are no arguments. Defining the variable types End Sub 21 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
22 Declaring Variables Why declare variables? Macros will run faster and use less memory You will avoid problems with misspelled variable names VBA syntax for declaring variables: Dim varname As type, varname As type,... Good practice to: Place all your Dim statements at the beginning of the program. Group them by type. Option Explicit Sub Example() 'Variable declaration Dim i As Integer, n As Integer Dim t As Long Dim x As Single, v As Single Dim z As Double //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
23 Numeric Variable Types Integers (whole numbers used for counting) Integer type (range from -32,768 to 32,757 or 2 bytes) Long type (range from -2,147,483,648 to 2,147,483,647 or 4 bytes) Real or floating-point (decimal numbers used for measuring) Single type (about 7 significant digits of precision or 4 bytes) Good for most engineering and scientific calculations Double type (about 15 significant digits of precision or 8 bytes) 23 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
24 Variant Data Type Your code will work if you declare the variables like this, but not as you may expect... Dim x, v As Single VBA will make the following assignments: v is a single type x is a variant type The variant type allows the macro to choose which data type it should be. Warning: this will slow down your macro. 24 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
25 Option Explicit Sub Factorial() What is going on?? 'Names, Section #, Team # 'Date 'Variable Declaration Dim n As Single, c As Single, initial as Single Dim i as Integer 'input data Sheets("Sheet1").Select Range("B8").Select n = ActiveCell.Value Initial =1 'calculation For i = 1 To n 'compute factorial c = initial * i initial = c Next i 'output results Range("B9").Select ActiveCell.Value = c End Sub Grabbing data from your spreadsheet and assigning the values to variables Outputting value of variable c to cell B9. These are Object-Oriented Programming (OOP) statements 25 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
26 More Useful OOP Statements Clear a section of the worksheet Range( t3:z40 ).ClearContents Move the current active cell ActiveCell.Offset(0,1).Select Moves the active cell 0 rows, 1 column to the right ActiveCell.Offset(1,0).Select Moves the active cell 1 row down, 0 columns 26 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
27 Running The Program Go back to Excel Go to: Tools Macro Macros Select the macro you want (Factorial) Click the run button Or.. Go to: View Toolbars Forms In the forms toolbar select the button button (rectangle) Size the button on your spreadsheet In the Assign Macro dialogue box, select Factorial Rename the button to something descriptive like Run Factorial 27 //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
28 Simple Factorial Program Results... A B C D 1 Simple Factorial Addition Program Program 2 3 Names 4 Section ## Run 5 Team ## 6 Date 7 Final Value 5 8 First Number 12 Factorial Section Number Total //coe/dfs/home/engclasses/eng1101/f03/ethics/en1.e05.finalcoursewrapup.sxi
Chapter 5 Functions. Introducing Functions
Chapter 5 Functions 1 Introducing Functions A function is a collection of statements that are grouped together to perform an operation Define a function Invoke a funciton return value type method name
FX 260 Training guide. FX 260 Solar Scientific Calculator Overhead OH 260. Applicable activities
Tools Handouts FX 260 Solar Scientific Calculator Overhead OH 260 Applicable activities Key Points/ Overview Basic scientific calculator Solar powered Ability to fix decimal places Backspace key to fix
Getting Started with MasteringPhysics
Getting Started with MasteringPhysics POWERED BY MYCYBERTUTOR STUDENT EDITION MasteringPhysics helps you when you need it most when you are stuck working out a problem. Designed specifically for university
Excel & Visual Basic for Applications (VBA)
Excel & Visual Basic for Applications (VBA) Object-oriented programming (OOP) Procedures: Subs and Functions, layout VBA: data types, variables, assignment 1 Traits of Engineers Florman s Engineering View
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 [email protected] DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic
Simple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language
Simple C++ Programs Engineering Problem Solving with C++, Etter/Ingber Chapter 2 Simple C++ Programs Program Structure Constants and Variables C++ Operators Standard Input and Output Basic Functions from
VB.NET Programming Fundamentals
Chapter 3 Objectives Programming Fundamentals In this chapter, you will: Learn about the programming language Write a module definition Use variables and data types Compute with Write decision-making statements
Excel & Visual Basic for Applications (VBA)
Excel & Visual Basic for Applications (VBA) The VBA Programming Environment Recording Macros Working with the Visual Basic Editor (VBE) 1 Why get involved with this programming business? If you can't program,
A Concise Guide for Beginners LIEW VOON KIONG
I A Concise Guide for Beginners LIEW VOON KIONG Disclaimer II Excel VBA Made Easy- A Concise Guide for Beginners is an independent publication and is not affiliated with, nor has it been authorized, sponsored,
This activity will guide you to create formulas and use some of the built-in math functions in EXCEL.
Purpose: This activity will guide you to create formulas and use some of the built-in math functions in EXCEL. The three goals of the spreadsheet are: Given a triangle with two out of three angles known,
Module 2 - Multiplication Table - Part 1-1
Module 2 - Multiplication Table - Part 1 TOPICS COVERED: 1) VBA and VBA Editor (0:00) 2) Arrays (1:15) 3) Creating a Multiplication Table (2:34) 4) TimesTable Subroutine (3:08) 5) Improving Efficiency
1. a procedure that you perform frequently. 2. Create a command. 3. Create a new. 4. Create custom for Excel.
Topics 1 Visual Basic Application Macro Language What You Can Do with VBA macro Types of VBA macro Recording VBA macros Example: MyName () If-Then statement Example: CheckCell () For-Next Loops Example:
OpenOffice.org 3.2 BASIC Guide
OpenOffice.org 3.2 BASIC Guide Copyright The contents of this document are subject to the Public Documentation License. You may only use this document if you comply with the terms of the license. See:
The OptQuest Engine Java and.net Developer's Guilde
The OptQuest Engine Java and.net Developer's Guilde Table Of Contents Introduction to optimization... 1 What is optimization?... 1 How the OptQuest Engine works... 1 Using the documentation... 2 Platforms...
Microsoft' Excel & Access Integration
Microsoft' Excel & Access Integration with Office 2007 Michael Alexander and Geoffrey Clark J1807 ; pwiueyb Wiley Publishing, Inc. Contents About the Authors Acknowledgments Introduction Part I: Basic
Programming in Access VBA
PART I Programming in Access VBA In this part, you will learn all about how Visual Basic for Applications (VBA) works for Access 2010. A number of new VBA features have been incorporated into the 2010
0 Introduction to Data Analysis Using an Excel Spreadsheet
Experiment 0 Introduction to Data Analysis Using an Excel Spreadsheet I. Purpose The purpose of this introductory lab is to teach you a few basic things about how to use an EXCEL 2010 spreadsheet to do
Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information.
Excel Tutorial Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information. Working with Data Entering and Formatting Data Before entering data
Exercise 4 Learning Python language fundamentals
Exercise 4 Learning Python language fundamentals Work with numbers Python can be used as a powerful calculator. Practicing math calculations in Python will help you not only perform these tasks, but also
MATLAB Basics MATLAB numbers and numeric formats
MATLAB Basics MATLAB numbers and numeric formats All numerical variables are stored in MATLAB in double precision floating-point form. (In fact it is possible to force some variables to be of other types
Graphing Calculator Scientific Calculator Version 2.0
Graphing Calculator Scientific Calculator Version 2.0 2006-1012 Infinity Softworks, Inc. www.infinitysw.com/ets August 7, 2012 1! Table of Contents Table of Contents 1 Overview! 3 2 Navigation! 4 3 Using
Hands-on Exercise 1: VBA Coding Basics
Hands-on Exercise 1: VBA Coding Basics This exercise introduces the basics of coding in Access VBA. The concepts you will practise in this exercise are essential for successfully completing subsequent
fx-92b Collège 2D+ User s Guide http://edu.casio.com http://edu.casio.com/forum/ CASIO Worldwide Education Website CASIO EDUCATIONAL FORUM
E fx-92b Collège 2D+ User s Guide CASIO Worldwide Education Website http://edu.casio.com CASIO EDUCATIONAL FORUM http://edu.casio.com/forum/ Contents Important Information... 2 Sample Operations... 2 Initializing
SOME EXCEL FORMULAS AND FUNCTIONS
SOME EXCEL FORMULAS AND FUNCTIONS About calculation operators Operators specify the type of calculation that you want to perform on the elements of a formula. Microsoft Excel includes four different types
Visual Logic Instructions and Assignments
Visual Logic Instructions and Assignments Visual Logic can be installed from the CD that accompanies our textbook. It is a nifty tool for creating program flowcharts, but that is only half of the story.
Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.
Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to
Chapter 5 Programming Statements. Chapter Table of Contents
Chapter 5 Programming Statements Chapter Table of Contents OVERVIEW... 57 IF-THEN/ELSE STATEMENTS... 57 DO GROUPS... 58 IterativeExecution... 59 JUMPING... 61 MODULES... 62 Defining and Executing a Module....
MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11
MS Excel Handout: Level 2 elearning Department 2016 Page 1 of 11 Contents Excel Environment:... 3 To create a new blank workbook:...3 To insert text:...4 Cell addresses:...4 To save the workbook:... 5
Microsoft Access 2010 Part 1: Introduction to Access
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Access 2010 Part 1: Introduction to Access Fall 2014, Version 1.2 Table of Contents Introduction...3 Starting Access...3
Construction Administrators Work Smart with Excel Programming and Functions. OTEC 2014 Session 78 Robert Henry
Construction Administrators Work Smart with Excel Programming and Functions OTEC 2014 Session 78 Robert Henry Cell References C O P Y Clicking into the Formula Bar or the Active Cell will cause color coded
Using Excel to Execute Trigonometric Functions
In this activity, you will learn how Microsoft Excel can compute the basic trigonometric functions (sine, cosine, and tangent) using both radians and degrees. 1. Open Microsoft Excel if it s not already
TI-Nspire CAS Graphing Calculator
TI-Nspire CAS Graphing Calculator Contents Opening a New Document 2 Setting Auto/Approximate Mode 2 Setting Degree Mode 2 Copying and Pasting a Expression or Equation 3 Accessing the Catalogue 3 Defining
User Guide. facebook.com/desmosinc @desmos [email protected]
User Guide Learn more about graphing functions, plotting tables of data, evaluating equations, exploring transformations, and more! If you have questions that aren t answered in here, send us an email
Microsoft Excel Tutorial
Microsoft Excel Tutorial by Dr. James E. Parks Department of Physics and Astronomy 401 Nielsen Physics Building The University of Tennessee Knoxville, Tennessee 37996-1200 Copyright August, 2000 by James
Introduction. Syntax Statements. Colon : Line Continuation _ Conditions. If Then Else End If 1. block form syntax 2. One-Line syntax. Do...
3 Syntax Introduction Syntax Statements Colon : Line Continuation _ Conditions If Then Else End If 1. block form syntax 2. One-Line syntax Select Case Case Case Else End Select Do...Loop For...Next While...Wend
Chapter One Introduction to Programming
Chapter One Introduction to Programming 1-1 Algorithm and Flowchart Algorithm is a step-by-step procedure for calculation. More precisely, algorithm is an effective method expressed as a finite list of
Word 2010: Mail Merge to Email with Attachments
Word 2010: Mail Merge to Email with Attachments Table of Contents TO SEE THE SECTION FOR MACROS, YOU MUST TURN ON THE DEVELOPER TAB:... 2 SET REFERENCE IN VISUAL BASIC:... 2 CREATE THE MACRO TO USE WITHIN
Creating Datalogging Applications in Microsoft Excel
Creating Datalogging Applications in Microsoft Excel Application Note 1557 Table of contents Introduction 2 Steps for creating a scanning program 2 Using Excel for datalogging 4 Running the application
Introduction to Microsoft Access 2003
Introduction to Microsoft Access 2003 Zhi Liu School of Information Fall/2006 Introduction and Objectives Microsoft Access 2003 is a powerful, yet easy to learn, relational database application for Microsoft
fx-83gt PLUS fx-85gt PLUS User s Guide
E fx-83gt PLUS fx-85gt PLUS User s Guide CASIO Worldwide Education Website http://edu.casio.com CASIO EDUCATIONAL FORUM http://edu.casio.com/forum/ Contents Important Information... 2 Sample Operations...
Creating Applications using Excel Macros/Visual Basic for Applications (VBA)
Creating Applications using Excel Macros/Visual Basic for Applications (VBA) A macro is a sequence of instructions that tells Microsoft Excel what to do. These macros allow you to automate everyday tasks
MATLAB Programming. Problem 1: Sequential
Division of Engineering Fundamentals, Copyright 1999 by J.C. Malzahn Kampe 1 / 21 MATLAB Programming When we use the phrase computer solution, it should be understood that a computer will only follow directions;
Creating a Simple Macro
28 Creating a Simple Macro What Is a Macro?, 28-2 Terminology: three types of macros The Structure of a Simple Macro, 28-2 GMACRO and ENDMACRO, Template, Body of the macro Example of a Simple Macro, 28-4
Getting Started with Access 2007
Getting Started with Access 2007 1 A database is an organized collection of information about a subject. Examples of databases include an address book, the telephone book, or a filing cabinet full of documents
VBA PROGRAMMING FOR EXCEL FREDRIC B. GLUCK 608-698-6304
VBA PROGRAMMING FOR EXCEL FREDRIC B. GLUCK [email protected] [email protected] 608-698-6304 Text VBA and Macros: Microsoft Excel 2010 Bill Jelen / Tracy Syrstad ISBN 978-07897-4314-5 Class Website
Financial Data Access with SQL, Excel & VBA
Computational Finance and Risk Management Financial Data Access with SQL, Excel & VBA Guy Yollin Instructor, Applied Mathematics University of Washington Guy Yollin (Copyright 2012) Data Access with SQL,
C Programming Language
C Programming Language Lecture 4 (10/13/2000) Instructor: Wen-Hung Liao E-mail: [email protected] Extension: 62028 Building Programs from Existing Information Analysis Design Implementation Testing
Display Format To change the exponential display format, press the [MODE] key 3 times.
Tools FX 300 MS Calculator Overhead OH 300 MS Handouts Other materials Applicable activities Activities for the Classroom FX-300 Scientific Calculator Quick Reference Guide (inside the calculator cover)
RIT Installation Instructions
RIT User Guide Build 1.00 RIT Installation Instructions Table of Contents Introduction... 2 Introduction to Excel VBA (Developer)... 3 API Commands for RIT... 11 RIT API Initialization... 12 Algorithmic
Like any function, the UDF can be as simple or as complex as you want. Let's start with an easy one...
Building Custom Functions About User Defined Functions Excel provides the user with a large collection of ready-made functions, more than enough to satisfy the average user. Many more can be added by installing
3.4 System Dynamics Tool: STELLA Version 9 Tutorial 2. Introduction to Computational Science: Modeling and Simulation for the Sciences
3.4 System Dynamics Tool: STELLA Version 9 Tutorial 2 Introduction to Computational Science: Modeling and Simulation for the Sciences Angela B. Shiflet and George W. Shiflet Wofford College 2006 by Princeton
2. Descriptive statistics in EViews
2. Descriptive statistics in EViews Features of EViews: Data processing (importing, editing, handling, exporting data) Basic statistical tools (descriptive statistics, inference, graphical tools) Regression
The KmPlot Handbook. Klaus-Dieter Möller Philip Rodrigues David Saxton
Klaus-Dieter Möller Philip Rodrigues David Saxton 2 Contents 1 Introduction 6 2 First Steps With KmPlot 8 2.1 Simple Function Plot.................................... 8 2.2 Edit Properties........................................
MICROSOFT EXCEL FORMULAS
MICROSOFT EXCEL FORMULAS Building Formulas... 1 Writing a Formula... 1 Parentheses in Formulas... 2 Operator Precedence... 2 Changing the Operator Precedence... 2 Functions... 3 The Insert Function Button...
Plots, Curve-Fitting, and Data Modeling in Microsoft Excel
Plots, Curve-Fitting, and Data Modeling in Microsoft Excel This handout offers some tips on making nice plots of data collected in your lab experiments, as well as instruction on how to use the built-in
Excel. Microsoft Office s spreadsheet application can be used to track. and analyze numerical data for display on screen or in printed
Excel Microsoft Office s spreadsheet application can be used to track and analyze numerical data for display on screen or in printed format. Excel is designed to help you record and calculate data, and
Parameters and Expressions
7 Parameters and Expressions A large optimization model invariably uses many numerical values. As we have explained before, only a concise symbolic description of these values need appear in an AMPL model,
What is Microsoft Excel?
What is Microsoft Excel? Microsoft Excel is a member of the spreadsheet family of software. Spreadsheets allow you to keep track of data, create charts based from data, and perform complex calculations.
InTouch HMI Scripting and Logic Guide
InTouch HMI Scripting and Logic Guide Invensys Systems, Inc. Revision A Last Revision: 7/25/07 Copyright 2007 Invensys Systems, Inc. All Rights Reserved. All rights reserved. No part of this documentation
Almost all spreadsheet programs are based on a simple concept: the malleable matrix.
MS EXCEL 2000 Spreadsheet Use, Formulas, Functions, References More than any other type of personal computer software, the spreadsheet has changed the way people do business. Spreadsheet software allows
Using Excel and VBA CHANDAN SENGUPTA SECOND EDITION. WILEY John Wiley & Sons, Inc.
Using Excel and VBA SECOND EDITION CHANDAN SENGUPTA WILEY John Wiley & Sons, Inc. Contents About This Book CHAPTER 1 Introduction to Hnancial Analysis and Modeling 1 Steps in Creating a Model 5 How This
Visual Basic Programming for Excel
Visual Basic Programming for Excel Zhenming Su, Ph.D. Institute for Fisheries Research 212 Museums Annex Building 1109 N. University Ave. Ann Arbor, MI 48109-1084 USA Phone: (734) 663-3554 Ext. 123 Fax:
Programming MS Excel in Visual Basic (VBA)
Programming MS Excel in Visual Basic (VBA) Part 2-Branching & Looping, Message Boxes & Alerts by Kwabena Ofosu, Ph.D., P.E., PTOE Abstract This course is the second of a four-part series on computer programming
Tutorial 2: Using Excel in Data Analysis
Tutorial 2: Using Excel in Data Analysis This tutorial guide addresses several issues particularly relevant in the context of the level 1 Physics lab sessions at Durham: organising your work sheet neatly,
FX 115 MS Training guide. FX 115 MS Calculator. Applicable activities. Quick Reference Guide (inside the calculator cover)
Tools FX 115 MS Calculator Handouts Other materials Applicable activities Quick Reference Guide (inside the calculator cover) Key Points/ Overview Advanced scientific calculator Two line display VPAM to
MS Access Lab 2. Topic: Tables
MS Access Lab 2 Topic: Tables Summary Introduction: Tables, Start to build a new database Creating Tables: Datasheet View, Design View Working with Data: Sorting, Filtering Help on Tables Introduction
AIMMS Function Reference - Arithmetic Functions
AIMMS Function Reference - Arithmetic Functions This file contains only one chapter of the book. For a free download of the complete book in pdf format, please visit www.aimms.com Aimms 3.13 Part I Function
BA II Plus. Guidebook. Texas Instruments Instructional Communications. Dave Caldwell David Santucci Gary Von Berg
BA II Plus Guidebook Guidebook developed by: Texas Instruments Instructional Communications With contributions by: Dave Caldwell David Santucci Gary Von Berg 1997 by Texas Instruments Incorporated. Important
Performing Simple Calculations Using the Status Bar
Excel Formulas Performing Simple Calculations Using the Status Bar If you need to see a simple calculation, such as a total, but do not need it to be a part of your spreadsheet, all you need is your Status
Sample- for evaluation only. Advanced Excel. TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc.
A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc. 2010 Advanced Excel TeachUcomp, Inc. it s all about you Copyright: Copyright 2010 by TeachUcomp, Inc. All rights reserved. This publication,
A Microsoft Access Based System, Using SAS as a Background Number Cruncher David Kiasi, Applications Alternatives, Upper Marlboro, MD
AD006 A Microsoft Access Based System, Using SAS as a Background Number Cruncher David Kiasi, Applications Alternatives, Upper Marlboro, MD ABSTRACT In Access based systems, using Visual Basic for Applications
Using Object- Oriented JavaScript
Using Object- Oriented JavaScript In this chapter, you will: Study object-oriented programming Work with the Date, Number, and Math objects Defi ne custom JavaScript objects Using Object-Oriented JavaScript
MODELLING. IF...THEN Function EXCEL 2007. Wherever you see this symbol, make sure you remember to save your work!
MODELLING IF THEN IF...THEN Function EXCEL 2007 Wherever you see this symbol, make sure you remember to save your work! IF.Then Function Some functions do not calculate values but instead do logical tests
Microsoft Excel 2010 Tutorial
1 Microsoft Excel 2010 Tutorial Excel is a spreadsheet program in the Microsoft Office system. You can use Excel to create and format workbooks (a collection of spreadsheets) in order to analyze data and
Introducing VBA Message Boxes
Introducing VBA Message Boxes It's All About Communication When you build a tool for someone else to use it is important that that person, "the user", knows what's going on and feels confident using it.
Chapter 12 Programming Concepts and Languages
Chapter 12 Programming Concepts and Languages Chapter 12 Programming Concepts and Languages Paradigm Publishing, Inc. 12-1 Presentation Overview Programming Concepts Problem-Solving Techniques The Evolution
ESPResSo Summer School 2012
ESPResSo Summer School 2012 Introduction to Tcl Pedro A. Sánchez Institute for Computational Physics Allmandring 3 D-70569 Stuttgart Germany http://www.icp.uni-stuttgart.de 2/26 Outline History, Characteristics,
Excel 2007 Basic knowledge
Ribbon menu The Ribbon menu system with tabs for various Excel commands. This Ribbon system replaces the traditional menus used with Excel 2003. Above the Ribbon in the upper-left corner is the Microsoft
http://school-maths.com Gerrit Stols
For more info and downloads go to: http://school-maths.com Gerrit Stols Acknowledgements GeoGebra is dynamic mathematics open source (free) software for learning and teaching mathematics in schools. It
Designed by Jason Wagner, Course Web Programmer, Office of e-learning ZPRELIMINARY INFORMATION... 1 LOADING THE INITIAL REPORT... 1 OUR EXAMPLE...
Excel & Cognos Designed by Jason Wagner, Course Web Programmer, Office of e-learning ZPRELIMINARY INFORMATION... 1 LOADING THE INITIAL REPORT... 1 OUR EXAMPLE... 2 DEFINED NAMES... 2 BUILDING THE DASHBOARD:
MS Access: Advanced Tables and Queries. Lesson Notes Author: Pamela Schmidt
Lesson Notes Author: Pamela Schmidt Tables Text Fields (Default) Text or combinations of text and numbers, as well as numbers that don't require calculations, such as phone numbers. or the length set by
Algebra. Exponents. Absolute Value. Simplify each of the following as much as possible. 2x y x + y y. xxx 3. x x x xx x. 1. Evaluate 5 and 123
Algebra Eponents Simplify each of the following as much as possible. 1 4 9 4 y + y y. 1 5. 1 5 4. y + y 4 5 6 5. + 1 4 9 10 1 7 9 0 Absolute Value Evaluate 5 and 1. Eliminate the absolute value bars from
Microsoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro.
Microsoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro. Do you need to always add gridlines, bold the heading
Excel macros made easy
IT Training Excel macros made easy Jane Barrett, IT Training & Engagement Team Information System Services Version 1.1 Scope Learning outcomes Understand the concept of what a macro is and what it does.
5: Magnitude 6: Convert to Polar 7: Convert to Rectangular
TI-NSPIRE CALCULATOR MENUS 1: Tools > 1: Define 2: Recall Definition --------------- 3: Delete Variable 4: Clear a-z 5: Clear History --------------- 6: Insert Comment 2: Number > 1: Convert to Decimal
Excel Spreadsheets: Getting Started
Excel Spreadsheets: Getting Started EXCEL REVIEW 2003-2004 Excel Spreadsheets: Getting Started Review this guide for tips on some of the basic skills you need to get started building and using spreadsheets.
EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.
EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. Excel is powerful tool and can make your life easier if you are proficient in using it. You will need to use Excel to complete most of your
EXCEL SPREADSHEET MANUAL
EXCEL SPREADSHEET MANUAL to accompany MATHEMATICS WITH APPLICATIONS, EIGHTH EDITION and MATHEMATICS WITH APPLICATIONS, FINITE VERSION, EIGHTH EDITION LIAL HUNGERFORD Paula Grafton Young Salem College J.
Using Loops to Repeat Code
Using s to Repeat Code Why You Need s The macro recording tools in Microsoft Word and Microsoft Excel make easy work of creating simple coding tasks, but running a recorded macro is just that you do a
Statgraphics Getting started
Statgraphics Getting started The aim of this exercise is to introduce you to some of the basic features of the Statgraphics software. Starting Statgraphics 1. Log in to your PC, using the usual procedure
Microsoft Excel 2010 Part 3: Advanced Excel
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Excel 2010 Part 3: Advanced Excel Winter 2015, Version 1.0 Table of Contents Introduction...2 Sorting Data...2 Sorting
Using the Advanced Tier Data Collection Tool. A Troubleshooting Guide
Using the Advanced Tier Data Collection Tool A Troubleshooting Guide Table of Contents Mouse Click the heading to jump to the page Enable Content/ Macros... 4 Add a new student... 6 Data Entry Screen...
Review of Matlab for Differential Equations. Lia Vas
Review of Matlab for Differential Equations Lia Vas 1. Basic arithmetic (Practice problems 1) 2. Solving equations with solve (Practice problems 2) 3. Representing functions 4. Graphics 5. Parametric Plots
Excel Level Two. Introduction. Contents. Exploring Formulas. Entering Formulas
Introduction Excel Level Two This workshop introduces you to formulas, functions, moving and copying data, using autofill, relative and absolute references, and formatting cells. Contents Introduction
National Database System (NDS-32) Macro Programming Standards For Microsoft Word Annex - 8
National Database System () Macro Programming Standards For Microsoft Word Annex - 8 02/28/2000 /10:23 AM ver.1.0.0 Doc. Id: RNMSWS softcopy : word page : 1/6 Objectives A well-defined system needs to
The FTS Real Time System lets you create algorithmic trading strategies, as follows:
Algorithmic Trading The FTS Real Time System lets you create algorithmic trading strategies, as follows: You create the strategy in Excel by writing a VBA macro function The strategy can depend on your
