A B C D E F. = 1/3 1 divided by 3, that is, The product of cells A2 and C12. Cell C6 divided by the difference of D4 and E4

Similar documents
Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

Business Data Analysis MA0123. Dr Gavin Shaddick Department of Mathematical Sciences 4W 5.7

EXCEL PRACTICE 5: SIMPLE FORMULAS

Microsoft Excel 2010 Handout

Create your first workbook

Formulas Learn how to use Excel to do the math for you by typing formulas into cells.

Beginning Excel. Revised 4/19/16

Designed by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1

Course contents. Overview: Goodbye, calculator. Lesson 1: Get started. Lesson 2: Use cell references. Lesson 3: Simplify formulas by using functions

Create formulas in Excel

Linear Programming: Basic Concepts. Chapter 2: Hillier and Hillier

EDIT202 Spreadsheet Lab Prep Sheet

Chapter 13-1 Notes Page 1

Microsoft Excel 2016 LEVEL 2

Entering Data in the Spreadsheet

INFORMATION SHEET 24002/1: AN EXCEL PRIMER

Learning Worksheet Fundamentals

2 A little on Spreadsheets

Excel Forecasting Tools Review

Activity: page 1/10 Introduction to Excel. Getting Started

In this section you will learn some simple data entry, editing, formatting techniques and some simple formulae. Contents

Rev. C 11/09/2010 Downers Grove Public Library Page 1 of 41

INTRODUCTION TO MICROSOFT EXCEL: DATA ENTRY AND FORMULAS

Basic tasks in Excel 2013

Using Excel This is only a brief overview that highlights some of the useful points in a spreadsheet program.

Microsoft Excel Microsoft Excel

Excel Primer CH141 Fall, 2017

Getting Started With Excel

How to Set up a Budget Advanced Excel Part B

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

Spreadsheet Concepts Using Microsoft Excel

Microsoft Excel Level 2

A new workbook contains 256 worksheets. The worksheet is a grid of COLUMNS and ROWS. The intersection of a column and a row is called a CELL.

Ms excel. The Microsoft Office Button. The Quick Access Toolbar

6. Essential Spreadsheet Operations

The Ribbon The Ribbon contains multiple tabs, each with several groups of commands. You can add your own tabs that contain your favorite commands.

Basics of Spreadsheet

COMPUTER TECHNOLOGY SPREADSHEETS BASIC TERMINOLOGY. A workbook is the file Excel creates to store your data.

Excel Basics Tips & Techniques

Editing and Formatting Worksheets

1. What specialist uses information obtained from bones to help police solve crimes?

DOWNLOAD PDF MICROSOFT EXCEL ALL FORMULAS LIST WITH EXAMPLES

Section 3. Formulas. By the end of this Section you should be able to:

Using Microsoft Excel

Intermediate Excel 2013

Functions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators:

Chapter 10 Working with Graphs and Charts

lab MS Excel 2010 active cell

EXCEL 2003 DISCLAIMER:

EXCEL BASICS: MICROSOFT OFFICE 2007

Rev. B 12/16/2015 Downers Grove Public Library Page 1 of 40

A Tutorial for Excel 2002 for Windows

M i c r o s o f t E x c e l A d v a n c e d P a r t 3-4. Microsoft Excel Advanced 3-4

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Row 1 is called the header row which contains all the field names. Records start in row 2.

Using Microsoft Excel

Working with Data and Charts

Using Excel 2001 to Create a Data Table 11 of 29

Basic Math in Microsoft Excel

Excel Basics: Working with Spreadsheets

Intermediate Microsoft Excel

How did you ever do without it? - from the first VisiCalc ad, 1979

Microsoft Excel 2013 Series and Custom Lists (Level 3)

Homework 1 Excel Basics

Getting S tarted w ith E xcel

Introduction to Spreadsheets Part 1. The Quick and Easy guide to using Openoffice Calc

EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998

Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex

Exploring extreme weather with Excel - The basics

Agenda. Spreadsheet Applications. Spreadsheet Terminology A workbook consists of multiple worksheets. By default, a workbook has 3 worksheets.

Working with Excel CHAPTER 1

Excel 2010: Getting Started with Excel

Spreadsheets. Dr. Abdallah Mohamed

Working with Excel involves two basic tasks: building a spreadsheet and then manipulating the

Excel for Algebra 1 Lesson 5: The Solver

EXCEL BASICS: MICROSOFT OFFICE 2010

Excel 2013 for Beginners

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon.

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

1 GIAPETTO S WOODCARVING PROBLEM

PHLI Instruction (734) Introduction. Lists.

Training for ICDL Spreadsheets Spreadsheets 261

Excel. module. Lesson 1 Create a Worksheet Lesson 2 Create and Revise. Lesson 3 Edit and Format

Starting Excel application

Excel. Spreadsheet functions

Microsoft Excel 2007 Beginning The information below is devoted to Microsoft Excel and the basics of the program.

Budget Exercise for Intermediate Excel

MICROSOFT OFFICE. Courseware: Exam: Sample Only EXCEL 2016 CORE. Certification Guide

Excel Basics Fall 2016

What Is Excel? Multisheet Files Multiple Document Interface Built-in Functions Customizable Toolbars Flexible Text Handling

MS Office 2016 Excel Pivot Tables - notes

Performing Basic Calculations

Microsoft Office Excel Training

IDS 101 Introduction to Spreadsheets

Microsoft Excel 2007 Lesson 7: Charts and Comments

CHAPTER 1 GETTING STARTED

Excel for Gen Chem General Chemistry Laboratory September 15, 2014

MATLAB Project: Getting Started with MATLAB

Microsoft Excel Basics Ben Johnson

= 3 + (5*4) + (1/2)*(4/2)^2.

Transcription:

Background Information on Excel and Solver Excel Basics -- A Brief Refresher Excel is a popular spreadsheet program. Spreadsheets are the most common way of performing calculations on personal computers, and among the most widespread personal computer applications programs. Spreadsheets perform calculations on a two-dimensional grid of cells. Customarily, the grid rows are labeled by numbers (1,,,...) and the columns by letter codes (A through Z, then AA through AZ, then BA through BZ, and so forth). 1 In Excel, the grid is actually three-dimensional: each Excel file is a "book" consisting of two-dimensional "sheets" stacked on top of one another. Typically, we will try to do most of our calculations on a single sheet (usually called "Sheet1"). Each cell in the grid can either be empty, contain a number, contain text, or contain a formula. To enter or change the contents of a cell, click on it. Formulas start with the "=" sign. Formulas specify that the contents of the cell are formed by a calculation that may involve other cells. For example: Formula Specifies = A+B7 The sum of cells A and B7 = 1/ 1 divided by, that is, 0... =A*C1 =C/(D-E) The product of cells A and C1 Cell C divided by the difference of D and E Ranges of cells can be specified with a ":" -- for example, "B:D" denotes the -by- block of cells with B in the upper left corner, and D in the lower right. Excel also provides a variety of mathematical functions that operate on ranges, including SUM,

PRODUCT, AVERAGE, and SUMPRODUCT. For example, the formula =SUM(A1:A1) denotes the sum of cells A1 through A1. SUMPRODUCT is bit more obscure, but will be quite useful in this course. You specify two ranges of cells of the same shape. SUMPRODUCT multiplies together the corresponding cells in the two ranges, and then adds all the resulting products into a single number. Thus, =SUMPRODUCT(A1:C1,A:C) is equivalent to =A1*A+B1*B+C1*C. When typing formulas, you don t have to type in cell coordinates or ranges with the keyboard; instead you can just point or drag with the mouse. When you build large mathematical models with spreadsheets, it becomes tiresome to type in all the formulas one-by-one. Excel s Copy and Paste functions (on the Edit menu) provide a fast way to build up large spreadsheets. When you Copy and Paste a formula from one cell to another, Excel s usual behavior is to treat its references as relative. For example, if cell A contains the formula =A1+1, the "A1" really means "the cell one above this one". If we were to copy the formula to cell D, it would appear as "=D+1". The same thing applies to the column part of each cell reference: consider the following spreadsheet fragment: 1 1 =A1* The "A1" in cell B1 is relativing, meaning that it really refers to "the cell one to the left of me." Copying the contents of cell B1 to cells C1 through F1 yields 1 1 =A1* =B1* =C1* =D1* =E1* and Excel displays 1 1 8 1

You can make the row and/or column parts of a cell reference absolute by inserting $ signs. For example, "$A1" will always refer to column A wherever you copy the formula to, but the row part of the reference remains relative. On the other hand, "A$1" will always refer to row 1, but the column part of the reference (A) remains relative. Finally, "$A$1" will always refer to cell A1, no matter where you paste it. Let s say we wanted to build a -by- multiplication table. We can start by entering 1 0 =A1+1 =A1+1 =B$1*$A which displays as 1 0 1 1 1 We now copy cell B1 to cells C1 through F1, and cell A to cells A through A, yielding 1 0 =A1+1 =B1+1 =C1+1 =D1+1 =E1+1 =A1+1 =B$1*$A =A+1 =A+1 =A+1 =A+1

which displays as 1 0 1 1 1 Finally we copy B to the remaining empty cells. Consider what happens when cell B gets copied to, say, cell D. In the "B$1" in cell B, the "B" is relative, that is, it mean "this row". So, when we copy to cell D, it changes to "D". However, the "$1" is an absolute (non-changing) reference to row 1, so it stays the same. Similarly, the "$A" in "$A" means "always column A" and stays the same, but the "" is relative and means "this row." Thus, when copied to D, the formula becomes "=D$1+$A", which is the same as *, or. After copying the contents of B to all the empty cells, the entire grid of formulas becomes 1 0 =A1+1 =B1+1 =C1+1 =D1+1 =E1+1 =A1+1 =B$1*$A =C$1*$A =D$1*$A =E$1*$A =F$1*$A =A+1 =B$1*$A =C$1*$A =D$1*$A =E$1*$A =F$1*$A =A+1 =B$1*$A =C$1*$A =D$1*$A =E$1*$A =F$1*$A =A+1 =B$1*$A =C$1*$A =D$1*$A =E$1*$A =F$1*$A =A+1 =B$1*$A =C$1*$A =D$1*$A =E$1*$A =F$1*$A which displays as 1 0 1 1 1 8 10 9 1 1 8 1 1 0 10 1 0 So, we were able to make the table by entering only "0" and three formulas, and then doing some copying and pasting. In general, this type of trick is very useful for creating large spreadsheets.

Modeling in Excel In this course, we will use Excel to build mathematical models of business situations. Much as pointed out in Chapter 1 of the text, mathematical models tend to have four basic components: Uncontrollable inputs, also called data or parameters: these are numbers that describe things like the cost of raw materials, the number of hours of labor needed to assemble a product, and so forth. The business decision maker cannot directly control these values, but they might change from time to time. In your spreadsheet, these inputs will typically be represented by cells containing simple numbers or "self-contained" formulas like "=1/". Controllable inputs, also called decision variables: these are numbers that the decision maker can control, within limits, such as the amount of a particular product to build this month. Typically, each decision variable will have its own spreadsheet cell. Mathematical relationships and intermediate calculations: these are based on both kinds of inputs. Outputs: the "interesting" results of the calculations. A special kind of output, called an objective function, is a single number that attempts to measure the desirability of a particular set of decisions. Not all models have a single obvious objective function, but we will concentrate on those that do. The objective function will typically be something like profit (which we would like to maximize, that is, make as large as possible), or cost (which we would like to minimize, that is, make as small as possible). Models with a single objective function are called optimization models. Many models also contain constraints which specify limits on, or relationships between, certain inputs, intermediate calculations, or outputs. When building a mathematical model in Excel, one typically wants to express constraints as requirements that the contents of certain cells fall into a specified range. The most common and intuitive example is a requirement that certain cells not contain negative numbers. In order for others to comprehend you spreadsheets, or even for you to understand them yourself after putting them aside for more than a week or so, it is important that they be well organized. Spreadsheets are easier to create than computer programs, but like computer programs, forethought and planning in their construction almost always pays off in a result that is easier to use and modify. The best organization depends on what you re modeling, but a general rule of thumb is to partition your spreadsheet into distinct areas for uncontrollable inputs, controllable

inputs, intermediate calculations, and outputs. Further grouping within these areas, for example grouping together similar data or constraints, is another good idea. It is generally hard to read a spreadsheet in which inputs, calculations, and outputs are jumbled together. Using Solver Once you ve created a spreadsheet model of a business situation, you can start playing "what if" games with it. You can try different values for the controllable inputs, and see what happens to the outputs, and check if all the contraints are satisfied. Spreadsheets were originally developed with this kind of process in mind. Modern spreadsheets can sometimes do better. They give you a way of telling the spreadsheet enough about the structure of your model that it can, using MS/OR technology, attempt to recommend the best possible values of the controllable inputs. Excel calls this mechanism Solver. To use it, you select Solver from the Tools menu. The Solver Parameters dialog box then appears. Solver calls the objective function of your model the "target cell". In the Target Cell section of the Solver Parameters box, you specify the coordinates of a single cell, and whether you want to maximize (Max) or minimize (Min) that cell. In solver, controllable inputs are called "changing cells". In the Changing Cells section of the Solver Parameters box, you can type a list of cells and/or ranges that represent decision variables. You can also specify these cells/ranges by clicking or dragging the mouse. The Solver Parameters box also lets you specify constraints. It displays a list of constraint conditions to which you can Add, Change, or Delete. Note: try to avoid embedding controllable input data into your constraint conditions. Suppose that cell E is a decision variable representing the number of crates of a product that can be shipped through one of your distributors each month. The distributor can only handle up to 1000 crates/month, so it is tempting to add the constraint E <= 1000 to the model. But then the uncontrollable input "1000" is buried in the Solver parameters, and not immediately obvious on the spreadsheet itself. It's better to put the constant value 1000 into another cell, say G, and use the contraint E <= G. We will concentrate on linear models. If your model is linear, it is best to click the Options button in the Solver Parameters box, and click on "Assume Linear Model". In the Solver Parameters, if you now click Solve, Solver attempts to find the values of the changing cells that produce either the maximum or minimum value in the target cell (depending on which you asked for), subject to all the constraints being satisfied. For linear models, it will generally succeed if the model has been properly constructed and is not too immense. When it is done, a dialog box will pop up. If you click OK, the spreadsheet will reappear.