Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 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. Power Point Slides Revised By: Tony Ratcliffe, James Madison University

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

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

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

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

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

7 Controls 4 - 7 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.

8 Standard Controls 4 - 8 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

9 Excel Tip: Using Controls 4 - 9 1. Place the Control toolbar on the screen (Developer ► Controls ► Insert). 2. Select the desired control icon (under Form Controls). 3. Click on the desired location for placement. 4. Click on Controls ► Properties (or right-click on the icon and select Format Control...). 5. Edit Properties as needed.

10 Use of Controls 4 - 10

11 Cell Comments 4 - 11 To insert a comment in a particular cell, highlight the cell and choose Review ► New 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 Review ► Comments ► Show All Comments. When a cell containing a comment is copied, the contents and the comment are both copied to the new cell.

12 Cell Comments (continued) 4 - 12

13 Naming Cells and Ranges 4 - 13 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 Formulas ► Defined Names ► Define Name.

14 Naming Cells and Ranges 4 - 14

15 Documenting Range Names Using Paste List 4 - 15

16 Advantages and Disadvantages of Range Names 4 - 16 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

17 Advanced Formulas and Functions 4 - 17 Some of the tools of advanced formulas and functions:  R1C1 references  Mixed addresses  Nesting calculations  Parameterization  Advanced functions

18 R1C1 Style 4 - 18 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.

19 Mixed Addresses 4 - 19 Using mixed addresses in copying

20 Nesting Calculations 4 - 20 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))

21 Parameterization 4 - 21 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 = aP b In this function, the parameter b measures the percentage change in quantity that results from a percentage change in price.

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

23 Advanced Functions 4 - 23 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

24 Using Nested Functions 4 - 24

25 Recording Macros and Using VBA* 4 - 25 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.

26 Calculating Cumulative Returns using Excel 4 - 26

27 Record Macro Window 4 - 27

28 Visual Basic Editor 4 - 28

29 Cumulative Return Macro as Recorded 4 - 29

30 Cumulative Return Macro as Edited 4 - 30

31 User-defined Function to Calculate Cumulative Return 4 - 31

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

33 4 - 33 Copyright 2011 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.


Download ppt "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."

Similar presentations


Ads by Google