Chap 07 Spreadsheet Models
Chap 07 Spreadsheet Models
Spreadsheet Models
1
Introduction
• Spreadsheet models are mathematical and logic-based models.
• Referred to as what-if models.
• They provide easy-to-use, sophisticated mathematical and logical
functions, allowing for easy instantaneous recalculation for a
change in model inputs.
• They are less expensive, often come preloaded on computers, and
are fairly easy to use, and the most used business analytics tool.
2
Building Good
Spreadsheet Models
3
Building Good Spreadsheet Models
• Considering the cost of producing a single product.
• 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.
4
Building Good Spreadsheet Models
• Influence diagram: Visual representation that shows which
entities influence others in a model.
5
Figure 7.1 - An Influence Diagram for Nowlin’s
Manufacturing Cost
6
Figure 7.2 - An Influence Diagram for comparing
Manufacturing versus Outsourcing cost for Nowlin plastics
7
Building Good Spreadsheet Models
• Building a Mathematical Model
• Let us first consider the cost of manufacturing the required units of
the Viper.
• As the influence diagram shows, this cost is a function of the fixed
cost, the variable cost per unit, and the quantity required.
• 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
• TMC(q) = total cost to manufacture q units
8
Building Good Spreadsheet Models
• The cost-volume model for producing q units is
TMC(q) = FC + (VC × q)
• For the Viper, FC = $234,000 and VC = $2, so
TMC(q) = $234,000 + $2q
• Mathematical model for purchasing q units is
TPC(q) = Pq
P = the per unit purchase cost
TPC(q) = the total cost to outsource or purchase q units
• Mathematically, this question is, “For what values of q is S(q) > 0?”
10
Building Good Spreadsheet Models
• Spreadsheet Design and Implementing the Model in a
Spreadsheet
• For the Nowlin Plastics problem, we have defined the following
components
q, FC, VC, TMC(q), P, TPC(q), S(q)
• TMC, TPC, and S are the functions of other components, whereas q,
FC, VC, and P are not.
13
Building Good Spreadsheet Models
• The general principles of spreadsheet model design and
construction are:
• 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.
• Use simple formulas - Clear, simple formulas can reduce errors and
make maintaining the spreadsheet easier. Long and complex
calculations should be divided into several cells.
14
What-If Analysis
15
What-If Analysis
• Data Table: Excel tool which quantifies the impact of changing the
value of a specific input on an output of interest.
16
Figure 7.4 The Input for Constructing a One-Way
Data Table for Nowlin Plastics
17
Figure 7.5 Results of One-Way data table for Nowlin
Plastics
18
Figure 7.6 - The input for constructing a Two-Way
data table for Nowlin Plastics
19
Figure 7.7 - Results of Two-Way data table for
Nowlin Plastics
20
What-If Analysis
• 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).
21
What-If Analysis
22
What-If Analysis
23
Some Useful Excel Functions for
Modeling SUM and SUMPRODUCT
IF and COUNTIF VLOOKUP
24
SUM and SUMPRODUCT
• SUM: Function that adds up all of the numbers in a range of cells.
25
Figure 7.10 - WHAT-IF model for Foster Generators
26
IF and COUNTIF
• IF: =IF(condition, result if condition is true, result if condition is
false)
• COUNTIF: Counts the number of components having a positive
order quantity.
• General form is =COUNTIF(range, condition)
• Illustration:
• Gambrell Manufacturing produces car stereos.
• Gambrell likes to keep its components inventory to a minimum.
• Hence, it uses an inventory policy known as an order-up-to policy.
• Order-up-to policy - Whenever the inventory on hand drops below a
certain level, enough units are ordered to return the inventory to that
predetermined level.
27
Figure 7.11 - Gambrell Manufacturing Component
Ordering Model
28
Figure 7.11 - Gambrell Manufacturing Component
Ordering Model
31
Auditing Spreadsheet
Models
32
Auditing Spreadsheet Models
• Excel contains a variety of tools to assist you in the development
and debugging of spreadsheet models.
34
Figure 7.14 - Trace Precedents for Foster Generator
35
Figure 7.15 - Trace Dependents for the Foster
Generators Model
36
Auditing Spreadsheet Models
Show Formulas
37
Auditing Spreadsheet Models
Evaluate Formulas: This button allows you to investigate the
calculations of a cell in great detail.
38
Figure 7.17 - The Evaluate Formula dialog box for Gambrell
Manufacturing cell B17 after four clicks of the Evaluate Button
39
Auditing Spreadsheet Models
• Error Checking: This button provides an automatic means of
checking for mathematical errors within formulas of a worksheet.
40
Figure 7.18 - The Error Checking dialog box for a
Division by Zero Error
41
Auditing Spreadsheet Models
• Watch Window: Located in the Formula Auditing group, allows
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.
42
Figure 7.19 - The Watch Window for cell B17 of the
Gambrell Manufacturing Model
43