W5 Lesson 4 - Introduction To Spreadsheet Modeling - Module
W5 Lesson 4 - Introduction To Spreadsheet Modeling - Module
1
Introduction to Spreadsheet Modeling
Spreadsheet models, like most mathematical models, deal with inputs, decision
variables, and outputs. For the purposes of the model, inputs are given fixed values. The
decision variables are obviously those variables that a decision maker can control.
Determined by the decision variables and the inputs are the outputs which are ultimately
the values of interest.
Let us assume that a manager needs to order for a particular seasonal product. The
said product is set to be discontinued soon, so this will be the only order that the manager
will need to make for the product. The following are the inputs: the per item or unit
variable cost ordered, the fixed cost of the order, the price charged per item sold, per item
salvage value if there is anything left in inventory after the product has been taken out of
the shelves, and finally the demand for the product. The number of items to be ordered is
the decision variable. The ultimate value of interest is the profit (or loss) - the key output –
from the product. The said output can also be broken down into contributors to these
outputs which are sales revenue, total ordering cost and the leftover salvage value. All of
these need to be calculated to achieve profit.
The process of placing inputs and decision variables into a spreadsheet, relating
them appropriately through the use of formulas, in order to obtain outputs is called
spreadsheet modeling. After completing this process, the manager, analyst, or decision
maker can proceed in several directions. A sensitivity analysis can be performed to see the
Course Module
Management Science
2
Introduction to Spreadsheet Modeling
changes in the input or decision variables when one or more outputs change. Subject to
certain constraints, another way or direction is to obtain the values decision variables that
either minimize or maximize a certain output. The creation and use of charts to graphically
show particular parameters are related in the model.
Getting the logic correct and the production of useful results is a big part of
spreadsheet modeling. Good spreadsheet modeling practices and the readability of your
spreadsheet models should be foremost in your mind. This is because other people will
read and try to make sense of the spreadsheet models you have created. The following
features will help ensure and improve readability:
It is very important to consider that if no one can understand what you have in your
spreadsheet model then even when you have ensured correctness of your logic and
formulas you will not get very far. The flexibility of spreadsheets is the source of its
power. Much like a big canvass, a blank spreadsheet is just waiting for someone to
inject useful data and formulas. A lot is allowed in spreadsheets, almost anything.
However, its power can be abused if there is no overall plan for what needs to be
done. Therefore, you need to plan ahead, and when your plan starts to go sideways,
or it does not look good after you fill in the spreadsheet, you need to revise your
plan immediately.
readable. Although, you do not really need to go through each and all of the stages when
you finally build your own model. Often, there is no problem if you target the last stage
right away once you already get more familiar the modeling process.
Example 1
Course Module
Management Science
4
Introduction to Spreadsheet Modeling
=-750-8*B4+IF(B3>B4,18*B4,18*B3+6*(B4-B3))
The formula gets the difference of the fixed and variable costs
Excel Function: IF
Excel’s IF function has the syntax:
=IF (condition, result If True, If False)
=IF(Score>=90,”A”,”B”)
=IF(AND(Score1<60,Score2<60),”Fail”,”Pass”)
=-B3-B4*B9+IF(B8>B9,B5*B9,10*B8+B6*(B9-B8))
Course Module
Management Science
6
Introduction to Spreadsheet Modeling
This is the exact same formula as in Figure 1but is more flexible now.
The profit automatically recalculates when inputs are changed. Most
important of all is that inputs are no longer hard coded in the formula. Yet
still despite being more flexible, the profit formula is not very readable. To
make it more readable, you must use range names.
Given that range names are already used for cells B3 to B6, B8 and B9,
the model in Figure 3 looks exactly the same as that of Figure 2 but the
formula in cell B10 will now look like:
=-Fixed_Cost-Variable_Cost*Order+IF(Demand>Order,Selling_Price*Order,
Selling_Price*Demand+Discount_price*(Order-Demand))
The formula above although quite long, is now easier to read. And if
Mr. Clark or the decision maker wants to see the breakdown of profit into its
various costs and revenues it can be shown in the following figure:
Management Science
7
Introduction to Spreadsheet Modeling
The formulas in cells B12, B13, B15, and B16 of Figure 4 are pretty
straightforward. B12 is obviously the fixed cost, B13 is the variable cost
multiplied by the order, B15 is the selling price multiplied by the order, and
B16 is the discount price multiplied by the number of shirts that went on
discount which is none. The profit formula now in cell B17 is:
=-(B12+B13)+(B15+B16)
Course Module
Management Science
8
Introduction to Spreadsheet Modeling
B. Cost Projections
Our next example and discussion will be on Excel’s charting capabilities with
a goal of obtaining a graphical image of the projected costs.
Example 2
Our goal will be to create a model that will enable the company to
experiment on labor costs and growth rates in wood for the manager to see
numerically and graphically how the costs of their bookshelves will vary in the
coming years.
Course Module
Management Science
10
Introduction to Spreadsheet Modeling
usage of relative and absolute addresses be able to copy formulas, and from multiple
series of data to be able to create line charts.
Solution
The solution starts by listing the key variables in a table before the actual
start of spreadsheet model development. In doing so, you are forced to examine
which are inputs, which are decision variables, which are outputs, and the roles of
these variables.
_________________________________________________________________________________________
_______
Input Variables Labor and wood requirements per bookshelf, current unit
costs of labor and wood, anticipated unit cost annual increase
Output Variables Projected total bookshelf cost, and projected unit costs of labor
and wood
________________________________________________________________________________________________
Table 2 Key Variables for Bookshelf Manufacturing example
0 corresponding to the current year, columns B-D which are three rows
corresponds to the projected unit costs, and for total bookshelf costs are two
columns E-F. Headings should reflect the design, but this certainly is not the only
possible design. What is important is before diving in, you should already have
some logical design in mind.
3.) Projected unit costs of wood– In the range B19:F25, the dollar values are all
calculated from Excel formulas. In our example (Figure 6), the logic is
straightforward, but you must always have a strategy in mind before entering
formulas. You enter a single formula that you are then able to copy is how you
should always try to design your spreadsheet. This actually saves work and
lessens errors. In columns B and C, for the costs per board foot enter the formula
=B9in cell B19 then copies it to cell C19. Now in cell B20 enter the general
formula =B19*(1+B$10) and then copy it to the range B20:C25. It is already
Course Module
Management Science
12
Introduction to Spreadsheet Modeling
assumed that you already know the rules for absolute and relative addresses
which means a dollar sign for absolute, and no dollar sign for relative.
Excel Tip:
To facilitate copying relative and absolute addresses are used in Excel
formulas. An absolute address is a column or row that is appended or preceded
with a dollar sign. It does not change when copied. A relative address is when no
dollar sign precedes a row or column address. This makes the said address
change when copied. If your keyboard’s F4 key works you should be able to get a
short-cut on the relative and absolute addresses when you select a cell in a
formula and repeatedly press F4.
4.) Projected unit labor costs–For the calculation of projected hourly labor costs,
in cell D19, enter the formula =B13and then in cell D20 enter the formula
=D19*(1+B$14) after which copy it down column D until D25.
5.) Projected bookshelf costs –The sum of both labor cost and wood cost make up
each bookshelf cost. By carefully using absolute and relative addresses, you will
be able to enter a single formula for both types of wood and for all the projected
years. In cell E19, enter the formula =B$5*B19+B$6*$D19and then copy itto
the range E19:F25. This formula considers that units of wood and labor hours
per bookshelf is at rows 5 and 6 while labor costs current and projected are in
column D. All other references are relative to allow copying.
6.) Chart–Any table of data gets additional value with the use of a chart especially in
the world of business. Charting in Excel is a skill worth mastering. Some
possibilities will be shown in our example, but you can always experiment with
other possibilities on your own. Now create the chart. Select the range E18:F25
which certainly includes the labels in row 18. The next step is to click on the
Insert ribbon also known as the Insert tab then click on the Line dropdown list
or the Insert Line or Area Chart dropdown. After which from the dropdown list
go to “2-D line” and select “Line with Markers”. Then in an instant, you get the
chart that you want. One series for Mahogany and the other series for Narra.
When you select or highlight the chart, a Chart Tools ribbon appears. Depending
on your version of Excel, you either get 2 or 3 tabs from the Chart Tools. These
Management Science
13
Introduction to Spreadsheet Modeling
are the Design, Layout, and Format tabs. In other versions the tabs are Design
and Format. The most important is the Select Data button from the Design Tab.
From the Select Data, you will be able to choose data ranges for charting in case
the default choices of Excel are wrong. The default choices are actually based on
the range you select when you created the chart.
Now click on “Select Data” to see the dialogue box of Figure 8. The left
side shows one or multiple series that you can control being charted. On the right
Course Module
Management Science
14
Introduction to Spreadsheet Modeling
side the data used for the horizontal axis is what you can control. There is also an
Edit option in the Select Data dialogue box.
Upon clicking on the Edit button, an Axis Labels dialogue box appears and
upon selecting A19:A25 your horizontal labels are now correct with the current
year being zero (0) instead of one (1) when it was not corrected yet. Another
example of editing is when you double-click on the Vertical Axis you can rescale
it to start at $300.00 instead of $0.00 by editing or formatting using the Format
Axis.
Professional looking charts are always a plus factor. Be sure to allot time in fine-
tuning your charts. Excel charts are much more informative to a decision-maker
or manager than the table of numbers it is based from. The purpose of
permitting experimentation with various scenarios is what many models are
built for. Models should be built in such a way that managers or decision-makers
only needs to enter any desired values in the input cells then all the outputs
including the chart will automatically change or update. Take for example how
Course Module
Management Science
16
Introduction to Spreadsheet Modeling
the chart and the data table are affected if the anticipated increases in wood
costs are twice as high. The immediate effect is shown in the following figure:
C. Break-even Analysis
Example 3
Excel Objective: To learn range names and how to work with them.
Solution:
Course Module
Management Science
18
Introduction to Spreadsheet Modeling
________________________________________________________________________________________________
Input Variables Various unit costs, average order size, response rate
Decision Variable Number mailed
Key Output Variable Profit
Other Output Variables Number of responses, revenue, and cost totals _______
Table 3 Key Variables in HQ Sweaters Problem
Note that the model in Figure 12 uses the blue (inputs) - red (decision
variable) – gray (bottom line output) format we have previously discussed.
The range names are shown by the list to the right.
Excel Tip:
to use labels as range names when the cells to be range-named appear next
to a column or row of labels.
After creating range names, pasting the range names for documentation
purposes is very simple. Just select the Use in Formula from the Formulas tab and click the Paste
List option. This list though is not automatically updated whenever you change, add, or delete any
of the range names which means you have to do the same process again.
Course Module
Management Science
20
Introduction to Spreadsheet Modeling
break-even? Since we are able to play around with the input value of the Response rate you will
discover that the company experiences break-even at roughly 5.77% Response rate (5.769231%
to be exact) as evidenced by Figure 16.
Not all people know that money aside from its own face value has a time
element of value. Your P1000 today is not the same as your P1000 next year or
P1000 five years, ten years, and so on. Would you prefer to receive P1000 today or
P1100 exactly a year from now? If the prevailing interest rate is 10%, then you may
want to receive P1100 a year from now. This is the concept of interest rate. Interest
rate is that percentage of an amount lent, deposited (bank pays savers interest for
keeping money in their account), or borrowed (the principal amount) that a lender
charges or a borrower pays.
This concept is particularly important for investment decisions to be made
by business owners, managers, and business organizations.
Course Module
Management Science
22
Introduction to Spreadsheet Modeling
This result tells us how to compute the NPV of any sequence of cash
flow in today’s peso. Converting any cash flow to today’s peso is made easy by
multiplying (1+r)n to the cash flow received n years from now.
To find the investment’s NPV you need to add up the value (in today’s
peso) of the cash flows. Assuming that r is equal to 0.2, we can calculate the NPV for
the two investments in question as follows:
_24,000_ -14,000_
Investment1NPV = -10,000 + (1+0.20) + (1+0.20)2 = P277.78
1
_8,000_-1,000__
Investment2NPV = -6,000 + (1+0.20)1 + (1+0.20)2 = -P27.78
It is very important to note that when NPV is greater than zero, the
project or investment will increase the value of the company, investments or
projects with NPV lower than zero decreases the value of a company, while projects
or investment where NPV is equal to zero keeps the value of a company unchanged.
Given these, it is very clear to see that Investment 1 is the better choice.
and Investment 2 in their proper placement according to the Time 0, 1, and 2. 0 being
current or present year, 1 for 1 year from now, and 2 for 2 years from now. Note that cash
flows are both inflows and outflows of cash.
The PV formula in cell C7 is =C5/(1+r_)^C$4the caret symbol ^ raises
a number to a power. In this case since it is the current year it is raised to zero. To get the
PV for the remaining years, year 1 and year 2 for both Investment 1 and 2 copy this formula
clicking C7:E8.
Finally, for the NPV in cell A5 we compute for the NPV of Investment 1
by adding the PV of each year 0-2 in C7:E7 with the formula =SUM (C7:E7) while for
Investment 2 NPV simply copy this formula in cell A5 to cell A6.
Excel’s NPV function is a little tricky as its formula does not consider
the current year of our example. It uses the syntax NPV (rate, range of cells) but it
automatically assumes that the first cash flow is one year from now which is not applicable
to our example. To compute the actual NPV the formula in cell C11 would be
=C7+NPV(r_,D5:E5)the range doe not include the value in C5 as it is already in the present
year’s value but adding C7 which has the formula =C5/(1+r_)^C$4it somewhat converts
the value into a PV or NPV value. After which simply copy the formula in cell C11 to C12.
You will now see that both computations in A5 and A6 produce the same result or values in
C11 and C12. The decision can now be made by the business owner or manager on which
investment to take.
Management Science
25
Introduction to Spreadsheet Modeling
1. Albright, S.C., & Winston, W.I. (2012). Management Science Modeling (4th ed.). Boston, MA:
South-Western, Cengage Learning.
Course Module