Computational Biology, Part 13 Spreadsheet Basics II Robert F. Murphy Copyright  1996, 1999, 2000, 2001. All rights reserved.

Slides:



Advertisements
Similar presentations
Sensitivity Analysis A systematic way of asking “what-if” scenario questions in order to understand what outcomes could possibly occur that would effect.
Advertisements

The Basics of Physics with Calculus – Part II
Example 2.2 Estimating the Relationship between Price and Demand.
Homework Discussion Homework 2 (Glade Manual Chapter 2) Using multiple worksheets in a model.
All rights reserved. Copyright G. Peifer 1 Using Computer Spreadsheets to Solve Equations 1.Log into the Network and open Microsoft Excel. 2.Finding.
Introduction to Excel Formulas, Functions and References.
Decision Analysis Tools in Excel
Microsoft Excel. What is Microsoft Excel? Spreadsheet program that allows users to organize data, complete calculations, make decisions, and graph data.
Chapter 07: Lecture Notes (CSIT 104) 1111 Exploring Microsoft Office Excel 2007 Chapter 7 Data Consolidation, Links, and Formula Auditing.
Microsoft Excel The Basics. spreadsheet A type of application program which manipulates numerical and string data in rows and columns of cells. The value.
Spreadsheet Demonstration
Tutorial 7: Using Advanced Functions and Conditional Formatting
Logging into ITAMS as an Exempt Employee To Login to ITAMS for the first time: Open your web browser. Click File, Open, and type the following address:
1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Spreadsheets in Decision Making: What If? Robert Grauer and Maryann Barber Exploring.
EXCEL PART1. Objectives  Understand spreadsheet software  Tour the Excel 2010 window  Understand formulas  Enter labels and values and use the Sum.
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
3 Components for a Spreadsheet Linear Programming Problem There is one cell which can be identified as the Target or Set Cell, the single objective of.
Step-by-Step Demonstration: Run Chart Tools (Excel Templates) 1.
Sensitivity Analysis A systematic way of asking “what-if” scenario questions in order to understand what outcomes could possibly occur that would affect.
Click the mouse to continue. Aligning cell contents You align data in a cell in relation to the edges of the cell. Aligned on the right side of the cell.
1 Excel Lesson 3 Organizing the Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall.1 Exploring Microsoft Office Excel Copyright © 2008 Prentice-Hall. All rights.
EXCEL INTERMEDIATE 1. WORKSHEETS Worksheet Tabs –Rename by double clicking –Can be moved by click and drag –Change colour by right click and choose Tab.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
In Business Series © Prentice Hall Microsoft Office Excel 2007 In Business Core Chapter 1 Introduction.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Computational Biology, Part E Basic Principles of Computer Graphics Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Computational Biology, Part 12 Spreadsheet Basics I Robert F. Murphy Copyright  1996, All rights reserved.
1 Performing Spreadsheet What-If Analysis Applications of Spreadsheets.
Creating Charts for the Agency Budget Creating Budget Charts, Slide 1Copyright © 2004, Jim Schwab, University of Texas at Austin.
Goal Seek and Solver. Goal seeking helps you n Find a specific value for a target cell by adjusting the value of one other cell whose value is allowed.
LOGO Chapter II Entering Excel Formulas and Formatting Data Friday, November 20, 2015.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Exploring Microsoft Office Excel 2007 Chapter 8 What-if Analysis Robert Grauer, Keith.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
Chapter 3: Referencing and Names Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
INTRODUCTION TO EXCEL Learning About Spreadsheets BTT 1O1.
Excel 2007 Part (3) Dr. Susan Al Naqshbandi
1 Using Conditional Formatting & Data Validation Applications of Spreadsheets.
Excel Lesson 1 Microsoft Excel Basics
Securing and Sharing Workbooks Lesson 11. The Review Tab Microsoft Excel provides several layers of security and protection that enable you to control.
Sensitivity Analysis A systematic way of asking “what-if” scenario questions in order to understand what outcomes could possibly occur that would effect.
DAY 9: MICROSOFT EXCEL – CHAPTER 6 Sravanthi Lakkimsetty Sept 16, 2015.
Chapter 3: Referencing and Names Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Computational Biology, Part 14 Recursion Relations Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Copyright © 2005 by Nelson, a division of Thomson Canada Limited 14-0 EXCEL CHAPTER 14 PHILIP BEDIENT.
Chapter 4 Decision Making. Agenda Function Goal Seek command AutoFilter command Worksheet operation Printing worksheet.
1 CA202 Spreadsheet Application Focusing on Specific Data using Filters Lecture # 5.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
Cell Column Drawing Toolbar Formatting Toolbar Formula Bar Help Box Menu Bar Name Box Rows Standard Toolbar Title Bar Worksheet.
Ing. Martina Majorová, FEM SUA Statistics Lecture 2 – Introduction to MS Excel 2003.
CTS130 Spreadsheet Lesson 6 Working with Math & Trig, Statistical, and Date & Time Functions.
How To Fix Excel Error ”Problem Sending The Command To The Program” On Windows 8 / 7?
Pmt Function Vlookup Function Excel Database.  Naming a Range is very useful Makes copying more clear because formula or function contains a name rather.
MS-EXCEL PART 3. Use data validation in Excel to make sure that users enter certain values into a cell. Data Validation Example In this example, we restrict.
Excel Lesson 15 Working with Auditing and Analysis Tools
Formula Auditing, Data Validation, and Complex Problem Solving
Cell referencing.
GO! with Microsoft Office 2016
Spreadsheet – Microsoft Excel 2010
TDA Direct Certification
Statistical Analysis with Excel
International Computer Driving Licence Syllabus version 5.0
Developing an Excel Application
EXCEL Introduction.
Microsoft Office Illustrated
Wyndor Example; Enter data
Microsoft Excel 101.
Linear Programming Excel Solver.
Intro to Excel CSCI-150.
Presentation transcript:

Computational Biology, Part 13 Spreadsheet Basics II Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.

Recalculation When a cell value is changed, what determines whether other cells are recalculated? There are two options: When a cell value is changed, what determines whether other cells are recalculated? There are two options:  Automatic  The program recalculates every cell (if necessary) every time a cell changes  This is the default for most spreadsheet programs  Manual  The program waits for a user command before recalculating

Recalculation order When cells refer to each other, what determines the order in which the calculations are done? When cells refer to each other, what determines the order in which the calculations are done? Some (older) spreadsheets calculate cell values in a set order. Some (older) spreadsheets calculate cell values in a set order.  Columnwise  Top to bottom for 1st column then 2nd column...  A1 to An, B1 to Bn, C1 to Cn, etc.  Rowwise  Left to right for 1st row then 2nd row...

Forward References A formula that refers to a cell “ahead” in the recalculation order of the cell containing the formula is called a forward reference. A formula that refers to a cell “ahead” in the recalculation order of the cell containing the formula is called a forward reference. If the recalculation order is columnwise, references to cells to the right of the cell containing the formula are forward references. If the recalculation order is columnwise, references to cells to the right of the cell containing the formula are forward references. If the recalculation order is rowwise, references to cells below the cell containing the formula are forward references. If the recalculation order is rowwise, references to cells below the cell containing the formula are forward references.

Example of forward reference Given the following formulas, are there any forward references if the recalculation order is rowwise? Given the following formulas, are there any forward references if the recalculation order is rowwise?

Example of forward reference Given the following formulas, are there any forward references if the recalculation order is rowwise? Given the following formulas, are there any forward references if the recalculation order is rowwise? Yes, cell B2 has a forward reference to A3. Yes, cell B2 has a forward reference to A3.

Example of forward reference? Given the following formulas, are there any forward references if the recalculation order is columnwise? Given the following formulas, are there any forward references if the recalculation order is columnwise?

Example of forward reference? Given the following formulas, are there any forward references if the recalculation order is columnwise? Given the following formulas, are there any forward references if the recalculation order is columnwise? No, the results are No, the results are

Dynamic recalculation Modern spreadsheets do not recalculate in any set order. They dynamically determine which cells need to be updated. Modern spreadsheets do not recalculate in any set order. They dynamically determine which cells need to be updated.

Circular references A formula that refers to a cell containing a reference to the original cell is called a circular reference. A formula that refers to a cell containing a reference to the original cell is called a circular reference. Circular references can only be resolved by iteration, following the recalculation order. Circular references can only be resolved by iteration, following the recalculation order. Circular references may either converge or diverge, depending on whether they approach a limiting value or not. Circular references may either converge or diverge, depending on whether they approach a limiting value or not.

Example of circular references The following cells contain circular references. Are they convergent or divergent? The following cells contain circular references. Are they convergent or divergent?

Enabling iterations If we enter these formulas into cells A1 and B1, the program will give an error message If we enter these formulas into cells A1 and B1, the program will give an error message In order to use a spreadsheet with circular references, we need to set the program to use iterations to attempt to resolve the references. In order to use a spreadsheet with circular references, we need to set the program to use iterations to attempt to resolve the references.

Enabling iterations For Excel, select Options... from Tools and select the Calculation tab. The default settings should be shown. For Excel, select Options... from Tools and select the Calculation tab. The default settings should be shown.

Enabling iterations Check the Iteration box and leave the default of 100 for Maximum Iterations. Note that calculation options are saved along with the spreadsheet and set when loading a spreadsheet IF IT IS THE FIRST ONE LOADED. Check the Iteration box and leave the default of 100 for Maximum Iterations. Note that calculation options are saved along with the spreadsheet and set when loading a spreadsheet IF IT IS THE FIRST ONE LOADED. The program should begin calculating values, ending with a number very close to 1 in cell A1 and a number very close to 2 in cell B1. The program should begin calculating values, ending with a number very close to 1 in cell A1 and a number very close to 2 in cell B1.

Convergent circular references Here is a graph of the values in the cells versus iteration number. Here is a graph of the values in the cells versus iteration number.

Another example Are the following circular references convergent or divergent? Are the following circular references convergent or divergent?

Divergent circular references Here is a graph of the values in the cells versus iteration number. Here is a graph of the values in the cells versus iteration number.

Self references and initial values Cells can make circular references to themselves (called self references). Cells can make circular references to themselves (called self references). Excel assumes a value of zero for a cell before the first iteration of a self reference (or a circular reference to a cell that has not yet been evaluated). Excel assumes a value of zero for a cell before the first iteration of a self reference (or a circular reference to a cell that has not yet been evaluated). Thus, entering =A1+1 into cell A1 will result in the value 100 (assuming maximum iterations is set to 100). Thus, entering =A1+1 into cell A1 will result in the value 100 (assuming maximum iterations is set to 100).

Using manual recalculation for circular references In a complicated model involving circular references, it is often useful to turn off automatic recalculation so that you can control when recalculation is done (e.g., after all formulas have been entered). Recalculation can be initiated using  =. In a complicated model involving circular references, it is often useful to turn off automatic recalculation so that you can control when recalculation is done (e.g., after all formulas have been entered). Recalculation can be initiated using  =.

Summary: Recalculation Recalculation Timing Recalculation Timing  Automatic or Manual Recalculation Order Recalculation Order  Columnwise, Rowwise or Dynamic Circular References Circular References  Resolved by iteration  Convergent or divergent

Goal Seek Varies one cell in order to have another cell reach a particular value Varies one cell in order to have another cell reach a particular value Uses a non-linear fitting method with empirical derivatives Uses a non-linear fitting method with empirical derivatives

Lookup Functions HLOOKUP HLOOKUP VLOOKUP VLOOKUP

Basic Spreadsheet Functions (Demonstration D1) (Demonstration D1) (Exercise C1) (Exercise C1)