4 - 1 Chapter 4: Advanced Excel Skills Management Science: The Art of Modeling with Spreadsheets, 2e PowerPoint Slides Prepared By: Alan Olinsky Bryant.

Slides:



Advertisements
Similar presentations
Copyright © 2013 Pearson Education, Inc. publishing as Prentice Hall2-1.
Advertisements

© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 1Advanced Formatting, Formulas, and Data Management Chapter 2Advanced Functions and Formulas.
Introduction to Excel Formulas, Functions and References.
Microsoft Office XP Microsoft Excel
Object Oriented Programming A programming concept which views programs as objects with properties and ways to manipulate the object and the properties.
Using Macros and Visual Basic for Applications (VBA) with Excel
Developing an Excel Application
Tutorial 8: Developing an Excel Application
Introduction to Excel Chapter 2 Excel Fundamentals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 1 1 Microsoft Office Excel 2003.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Chapter 15 Creating Database Forms and Reports Introduction Forms Reports.
Chapter 5: Database Forms and Reports
Spreadsheets and Non- Spatial Databases Unit 4: Module 15, Lecture 2- Advanced Microsoft Excel.
MANAGEMENT SCIENCE The Art of Modeling with Spreadsheets STEPHEN G. POWELL KENNETH R. BAKER Compatible with Analytic Solver Platform FOURTH EDITION CHAPTER.
MICROECONOMICS: Theory & Applications Chapter 2 Supply and Demand
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
MANAGEMENT SCIENCE The Art of Modeling with Spreadsheets STEPHEN G. POWELL KENNETH R. BAKER Compatible with Analytic Solver Platform FOURTH EDITION CHAPTER.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Exploring Formulas.
Lesson 10: Adding Flash, Video, and Sound Content Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver.
Lesson 11: Maximizing Site Design Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
VBA for Excel. What is a spreadsheet? u An Excel spreadsheet is a set of worksheets  Each worksheets is made up of rows and columns of cells  Rows are.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Record & run a macro Record & run a macro Save as a macro-
Chapter 8: Regression Analysis PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with Spreadsheets,
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
3 - 1 Chapter 3: Basic Excel Skills Management Science: The Art of Modeling With Spreadsheets, 2e PowerPoint Slides Prepared By: Alan Olinsky Bryant University.
Chapter 4: Organizing and Manipulating the Data in Databases
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
Lesson 12: Working with Code-editing Features Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver.
7 - 1 Chapter 7: Data Analysis for Modeling PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
5-1 Chapter 5 The Repetition Process in VB.NET. 5-2 Learning Objectives Understand the importance of the repetition process in programming. Describe the.
4 - 1 Chapter 4: Advanced Excel Skills Management Science: The Art of Modeling with Spreadsheets, 3e S.G. Powell K.R. Baker © John Wiley and Sons, Inc.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved
9-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Slide 5-1 Chapter 5 Terms Applications Software for Business Introduction to Information Systems Judith C. Simon.
Creating Macros in Excel Adding Automated Functionality to Excel & Office Applications.
Chapter 9: Short-Term Forecasting PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with.
4-1 Chapter 4 The Selection Process in VB.NET. 4-2 Learning Objectives Understand the importance of the selection process in programming. Describe the.
© 2010 Pearson Education, Inc. | Publishing as Prentice Hall.1 Computer Literacy for IC 3 Unit 2: Using Productivity Software Chapter 6: Creating and Formatting.
MANAGEMENT SCIENCE The Art of Modeling with Spreadsheets STEPHEN G. POWELL KENNETH R. BAKER Compatible with Analytic Solver Platform FOURTH EDITION OPTIMIZATION.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Operations Management - 5 th Edition Chapter 10 Supplement Roberta.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
6 - 1 Chapter 6: Analysis Using Spreadsheets PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with.
Computers Are Your Future Tenth Edition Spotlight 5: Microsoft Office Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
2-1 Chapter 2 Using VB.NET to Create a First Solution.
The Advantage Series ©2005 The McGraw-Hill Companies, Inc. All rights reserved Chapter 12 Introducing Visual Basic for Applications Microsoft Office Excel.
SJSU College of Business Business Productivity Tools Fall 2016 Summary of Lessons and Learning Objectives.
Chapter 3 – Demand, Supply, & Price ECONOMICS THEORY AND PRACTICE Seventh Edition Copyright © 2004 John Wiley & Sons, Inc. All rights reserved. Patrick.
Chapter 3: Basic Excel Skills
Chapter 4 PowerPoint Spreadsheet Analysis.
Excel Tutorial 8 Developing an Excel Application
MSAA PRESENTS: AN EXCEL TUTORIAL
International Computer Driving Licence Syllabus version 5.0
Managing Worksheets And Workbooks
Systems Analysis and Design Third Edition
Chapter 17: Optimization In Simulation
Computer Fundamentals
Introducing VBA Macros
Transportation and Transshipment Models
Exploring Microsoft Excel
Microsoft Excel 2007 – Level 2
Presentation transcript:

4 - 1 Chapter 4: Advanced Excel Skills Management Science: The Art of Modeling with Spreadsheets, 2e PowerPoint Slides Prepared By: Alan Olinsky Bryant University S.G. Powell K.R. Baker © John Wiley and Sons, Inc.

4 - 2 Chapter Coverage  Keyboard shortcuts  Controls  Cell comments  Naming cells and ranges  Advanced formulas and functions  Recording macros and using Visual Basic for Applications

4 - 3 Useful Keyboard Shortcuts: Moving, Scrolling and Entering Data

4 - 4 Useful Keyboard Shortcuts: Working in Cells or the Formula Bar

4 - 5 Useful Keyboard Shortcuts: Inserting, Deleting, Copying, Selecting

4 - 6 Useful Keyboard Shortcuts: Working with Worksheets and Macros

4 - 7 Controls  Excel controls allow the user to change the contents or behavior of a spreadsheet without interacting directly with individual cells.  Controls can be added to a spreadsheet to assist users to choose parameter inputs and to assist the analyst in performing sensitivity analysis.

4 - 8 Standard Controls The eleven standard controls are:  Check Box  Text Box  Command Button  Option Button  List Box  Combo Box  Toggle Button  Spin Button  Scroll Bar  Label  Image

4 - 9 Excel Tip: Using Controls  1. Place the Control toolbar on the screen (View►Toolbars►Control Toolbox).  2. Click on Design Mode.  3. Click on the desired control icon to select it.  4. Double click on the desired location in the spreadsheet to place the control icon there.  5. Click on Properties in the Control Toolbox to open the Properties window.  6. Edit Properties as needed.  7. Click on Exit Design Mode.

Use of Controls

Cell Comments  To insert a comment in a particular cell, highlight the cell and choose Insert►Comment.  Edit the comment by placing the cursor anywhere within the comment box.  To delete a comment, click on the border to highlight the comment and choose Delete.  All of the comments in a workbook can be displayed by choosing View►Comments.  When a cell containing a comment is copied, the contents and the comment are both copied to the new cell.

Cell Comments (continued)

Naming Cells and Ranges  Individual cells and ranges of cells can be given names, and these names can be used in formulas to make them more readable.  The simplest way to define a range name for a single cell is to place the cursor on that cell and note that the address of the cell appears in the Name box above column A.  Click in the Name box and enter the name of the cell there.  An alternative means for entering range names is to choose Insert►Name►Define.

Define Name Window

Documenting Range names using Paste List

Advantages and Disadvantages of Range Names  Advantages: Formulas are easier to understand Useful in Pivot Table and other applications  Disadvantages: Range names may reference incorrect cells or ranges Adds complexity to spreadsheet Requires additional effort Complicates copying

Advanced Formulas and Functions  Some of the tools of advanced formulas and functions: R1C1 references Mixed addresses Nesting calculations Parameterization Advanced functions

R1C1 Style  Excel allows us to switch back and forth between the normal style and the R1C1 style of referencing.  Some modelers use the R1C1 style when developing their models but switch to the normal style when the model is complete.  They enjoy the benefits of the more logical and more easily debugged R1C1 style without imposing this less-well known style on users.

Mixed Addresses Using mixed addresses in copying

Nesting Calculations  Excel allows functions to be used within other functions. This is referred to as nesting. So, for example, we could nest a SUM function within an IF function: IF(SUM(A1:A10)>0, F9*F10, G9*G10  In fact, we can nest functions as many times as we like (in most cases), as long as the resulting calculations can be performed by the functions themselves.  For example, we can nest IF functions within IF functions (although there is a limit of seven IFs in one formula), as in: IF(D2>D3, G7, IF(B2>B3,G8,G9))  Or we can nest several different functions: MIN(MAX(D4:D10), SUM(E4:E10), MIN(F4:F10))

Parameterization  A well-parameterized function is one which represents the relationship between two or more variables accurately, with parameters that have a natural meaning in the problem being modeled.  Picking the best parameterization for the problem at hand is part of the art of modeling.  For example, a demand relationship between the price of a product and the quantity demanded could be modeled using the constant-elasticity function: Q = aPb In this function, the parameter b measures the percentage change in quantity that results from a percentage change in price.

Example of Parameterization A flexible four-parameter function for market share growth.

Advanced Functions  AND and OR  SUMIF and COUNTIF  VLOOKUP and HLOOKUP  INDEX, SMALL and MATCH  Text and date functions  ROUND, CEILING, FLOOR, and INT  RAND and RANDBETWEEN  Financial functions

Using Nested Functions

Recording Macros and Using VBA*  Macros are small computer programs that automate frequently-performed tasks.  Macros are written in the Visual Basic for Applications (VBA) language and stored in Visual Basic modules.  Excel provides a mechanism for creating macros simply by recording the steps involved, so many simple macros can be created by users who have little or no programming knowledge.

Calculating Cumulative Returns using Excel

Record Macro Window

Visual Basic Editor

Cumulative Return Macro as Recorded Sub Cumulative_return() ' Macro recorded 2/27/2006 by The Tuck School Columns("C:D").Select Selection.Insert shift:=xlToRight Range("C4").Select ActiveCell.FormulaR1C1 = "=RC[-1]+1" Range("C4").Select Selection.Copy Range("C5:C25").Select ActiveSheet.Paste Range("D4").Select Application.CutCopyMode = False Range("D4").Select ActiveCell.FormulaR1C1 = "=PRODUCT(R4C3:RC[-1])-1" Range("D4").Select Selection.AutoFill Destination:=Range("D4:D25"), Type:=xlFillDefault Range("D4:D25").Select End Sub

Cumulative Return Macro as Edited Sub CumulativeEdited() 'declare ranges for the user's data, the return + 1, and the cumulative return Dim userdata As Range, plusOneRng As Range, cumRetRng As Range Set userdata = Selection 'insert two new columns ActiveSheet.Columns(userdata.Column + 1).Select Selection.Insert shift:=xlToLeft 'select where the new data is going to be added Set plusOneRng = userdata.Cells(1).Offset(0, 1) Set cumRetRng = userdata.Cells(1).Offset(0, 2) 'create a column with the returns + 1 plusOneRng.Select ActiveCell.FormulaR1C1 = "=RC[-1]+1" plusOneRng.Select Selection.Copy userdata.Offset(0, 1).Select ActiveSheet.Paste 'create a column with the cumulative returns cumRetRng.Select ActiveCell.FormulaR1C1 = _ "=PRODUCT(R" & cumRetRng.row & "C" & cumRetRng.Column - 1 & ":RC[-1])-1" cumRetRng.Select Selection.AutoFill Destination:=Range(userdata.Offset(0, 2).Address), _ Type:=xlFillDefault End Sub

User-defined Function to Calculate Cumulative Return Public Function CumulativeReturn (Returns As Range) Dim cell As Range Dim TotalRet As Double TotalRet = 1# For Each cell In Returns.Cells TotalRet = TotalRet * (cell.Value + 1#) Next CumulativeReturn = TotalRet - 1# End Function

Summary  Keyboard shortcuts  Controls  Cell comments  Naming cells and ranges  Advanced formulas and functions  Recording macros and using Visual Basic for Applications

Copyright 2008 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in section 117 of the 1976 United States Copyright Act without express permission of the copyright owner is unlawful. Request for further information should be addressed to the Permissions Department, John Wiley & Sons, Inc. The purchaser may make back-up copies for his/her own use only and not for distribution or resale. The Publisher assumes no responsibility for errors, omissions, or damages caused by the use of these programs or from the use of the information herein.