LGT2425 Lecture 6 (Notes)
LGT2425 Lecture 6 (Notes)
TO BUSINESS ANALYTICS
Lecture 6: Spreadsheet models
1
Spreadsheet models
2
Nowlin Plastics produces a line of cell
phone covers
■ Make-versus-buy decision
– Comparing the costs of manufacturing in-house to the costs of
outsourcing production to another firm
■ Total cost of manufacturing
– Fixed cost
■ Portion of the total cost that does not depend on the production quantity
and remains the same no matter how much is produced
– Variable cost
■ Portion of the total cost that is dependent on and varies with the
production quantity
3
Influence diagram
■ Influence diagram
– A visual representation
that shows which entities
influence others in a
model
– Circular or oval symbols
called nodes
– Arrows connecting the
nodes show influence
4
Make Buy
5
Building a mathematical model
■ Define notation for every node in the influence diagram
– q = quantity (number of units) required
– FC = the fixed cost of manufacturing
– VC = the per-unit variable cost of manufacturing
– P = the per unit purchase cost
■ Total cost
– Total manufacturing cost=TMC(q)=FC+VC*q
– Total purchasing cost=TPC(q)=P*q
■ Example
– FC=$234,000, VC=$2, P=$3.5
– TMC(q)=234000+2q
– TPC(q)=3.5q
6
Building a mathematical model
■ Saving due to outsourcing
– S(q)=TMC(q)-TPC(q)
– For what quantities is it more cost-effective to outsource rather than
produce?
– For what values of q for S(q)>0?
■ Entries
– q, FC, VC and P
– q is decision variable
– FC, VC and P are parameters
■ Functions
– TMC, TPC and S
7
Spreadsheet model design
8
Spreadsheet model design
■ Three general principles
– Separate the parameters from the model
■ This enables the user to update the model parameters without the risk of
mistakenly creating an error in a formula
– Document the model and use proper formatting and color as needed
■ A good spreadsheet model is well documented
■ Clear labels and proper formatting and alignment facilitate navigation and
understanding (e.g., $ for cost)
– Use simple formulae
■ Clear, simple formulas can reduce errors and make maintaining the spreadsheet
easier
■ Long and complex calculations should be divided into several cells
■ S(q)=TMC(q)-TPC(q)=FC+VC*q-P*q=FC+(VC-P)*q
■ S(q)=234000+1.5q=234000+1.5*B11
9
What-if analysis
■ Data table
■ Goal seek
■ Scenario manager
10
Data table
■ Data table
– Excel tool which quantifies the impact of changing the value of a
specific input on an output of interest
■ One-way data table
– Summarizes a single input’s impact on the output
– E.g., q on S
■ Two-way data table
– Summarizes two inputs’ impact on the output
– E.g., q and P on S
11
One-way data table
12
Decision?
13
Two-way data table
■ Suppose that Nowlin has now received five different bids on the per-
unit cost for outsourcing
■ The five current bids are P=$2.89, $3.13, $3.50, $3.54, and $3.59
■ Quantify the differences in savings for various quantities and bids
14
Two-way data table
15
Decision?
16
Goal seek
■ Goal Seek
– Excel tool that allows the user to determine the value of an input
cell that will cause the value of a related output cell to equal
some specified value (the goal)
■ Example
– Want to know the value of the quantity where it becomes more
cost effective to manufacture rather than outsource
– Find q when S=0
17
Goal seek
■ Step 1. Click the DATA tab
■ Step 2. Click What-If Analysis in the
Data Tools group, and select Goal Seek
■ Step 3. When the Goal Seek dialog box
appears
– Enter B17 in the Set cell:
– Enter 0 in the To value:
– Enter B11 in the By changing cell:
– Click OK
■ Step 4. When the Goal Seek Status
dialog box appears, click OK
18
19
Scenario Manager
20
Middletown Amusement Park daily profit model
21
Scenarios
Partly Cloudy Rain Sunny
Season-pass Holders 3000 1200 8000
Admissions 1600 250 2400
Average Expenditure – Season-Pass Holders $15 $10 $18
Average Expenditure – Admissions $45 $20 $57
Cost of Operations $33,000 $27,000 $37,000
Profit?
22
23
24
25
SUM and SUMPRODUCT
■ SUM
– Function that adds up all of the numbers in a range of cells
■ SUMPRODUCT
– Function that returns the sum of the products of elements in a set
of arrays
– =SUMPRODUCT(array1, array2)
26
■ =SUMPRODUCT(B5:E7,B17:E19)
■ =B5*B17 + C5*C17 + D5*D17 + E5*E17
+ B6*B18 + . . . . . + E7*E19
27
IF and COUNTIF
28
VLOOKUP
■ This function allows the user to pull a subset of data from a larger table of data
based on some criterion
■ =VLOOKUP(value, table, index, range)
– value = the value to search for in the first column of the table
– table = the cell range containing the table
– index = the column in the table containing the value to be returned
– range = TRUE if looking for the first approximate match of value and
FALSE if looking for an exact match of value
29
VLOOKUP
■ = VLOOKUP(B18,$A$7:$C$11,3,TRUE)
■ The range is set to TRUE indicates a search
for the first approximate match
– Excel searches in the first column of
the table from the top until it finds a
number strictly greater than the value
of B18
– B18 is 44 percent, and the first value
in the table in column A larger than 44
percent is in cell A9 (51 percent)
– It then backs up one row (to row 8)
– Bonus Points = 10
30
Watch Window
■ Allow the user to observe the values of cells included in the Watch Window box list
■ Useful for large models when not all of the model is observable on the screen or
when multiple worksheets are used