BUS598 Excel Functions HandoutR2
BUS598 Excel Functions HandoutR2
BUS598
Excel Functions Handout
By
Fatma Abdel-Raouf
Table of Contents
Math and Trig Functions.................................................................................................................. 3
SUMPRODUCT........................................................................................................................... 3
RAND........................................................................................................................................ 6
Statistical Functions........................................................................................................................ 7
COUNTIF................................................................................................................................... 7
COUNTIFS............................................................................................................................... 11
NORM.INV............................................................................................................................... 12
Absolute and Relative Referencing................................................................................................ 15
What-If Analysis............................................................................................................................ 17
Scenario Manager...................................................................................................................... 17
Goal Seek................................................................................................................................... 22
Data Table.................................................................................................................................. 24
Solver............................................................................................................................................ 28
References.................................................................................................................................... 40
Example:
Grades for a student in a class are 80 in exam I, 90 in exam II, 85 in the final exam, and 92 for
the homeworks. If the weights are 20% for exam I, 25% for exam II, 40% for the final exam, and
15% for the homeworks, what is the weighted total course grade for this student? (The weighted
total course grade is the sum of the product of grades and weights).
Answer:
1. Put the grades in columns A and B.
2. Click on Insert Function in the Formulas tab, and in the Search for a function: dialog
box, type SUMPRODUCT and click Go.
3. Click Ok.
6. The answer is 86.3. The sum of the products of grades and weights (the weighted course
grade) is 86.3 points.
RAND
Returns an evenly distributed random real number greater than or equal to 0 and less than 1. A
new random real number is returned every time the worksheet is calculated.
=rand ()
One way to generate a random number is to:
1.
2.
Click on the Formulas tab, Function Library group, Math & Trig category, click on the
downward arrow and scroll down and select Rand.
Click Ok.
3. Click Ok .
This is your random number. Remember a new random real number is returned every time the
worksheet is calculated.
Statistical Functions
COUNTIF
Counts the number of cells within a range that meet the given criteria.
=COUNTIF (B2:B25,"Nancy")
Example:
Grades for students in your class are
80, 90, 85, 92, 90, 85, 95, 75, 70, 65, 90, 60, and 98.
You want to know how many students received a 90 in the class.
Answer:
1. Put the grades in column A.
2. Click on Insert Function in the Formulas tab, and in the Search for a function: dialog
box, type COUNTIF and click Go.
3. Click Ok
6. Your answer is 3. You have three students who received a 90 in the class.
If you want to know the number of students with grades > 90, in the criteria put >90
If you want to know the number of students with grades 90, in the criteria put >=90
COUNTIFS
If you have two criteria, choose the formula countifs. For example, if want to know the
number of students with grades 70 and <90. In the criteria 1 put >=70 and in criteria 2 put
<90.
NORM.INV
Returns the inverse of the normal cumulative distribution.
NORM.INV(probability,mean,standard_dev)
Example 1:
To qualify for a police academy, candidates must score in the top 10% on a general ability test.
Assume that test scores are normally distributed with a mean of 200 and a standard deviation of
20. What is the lowest score to qualify? (Source: Bluman (2009) Elementary Statistics 7 th
edition. McGraw Hill.)
Answer:
1. Click on the Formulas tab, Function Library group, More Functions category, Statistical
and click on the arrow and scroll down and select NORM.INV.
5. The answer is 225.63 so the lowest possible score to qualify for the police academy is 226.
Example 2:
An advertising company plans to market a product to low-income families in a specific
neighborhood. A survey of this neighborhood shows that the average income per family is
$25,000 and the standard deviation is $5,000. If income is normally distributed and the company
plans to target the bottom 20% of the families based on income in this neighborhood, what is the
cutoff income that the company should use.
Answer:
Same steps as an example 1 until step 2, then complete the fields with the following:
Probability= 0.2
Mean =25000
Standard_dev= 5000
Example:
You want to calculate the future value (FV) of different cash flows and different times but the
interest rate is the same. FV formula is:
FVn = PV (1+r)n
FVn=the FV in year n
PV= the present value
r=interest rate
n=number of years
Answer:
The data is in columns A and B below.
To get the FV, the following formula was used: =B4*(1+$C$1)^A4. In this formula, B4 and A4
are relative cell references and are replaced by B5 and A5 when the formula is copied down to
cell C5. Since C1 is an absolute cell reference, it remains the same as the formula is copied
down to C5, C6, etc...
At cell C5, B4 and A4 are replaced by B5 and A5 while C1 stays the same. Same is true for the
next cell C6
Notice the cell references in the formula in cell C6.
What-If Analysis
By using what-if analysis tools you are able to test several different sets of values in one or more
formulas to explore all the various results. This is a very useful tool which includes Scenario
Manager, Goal Seek, and Data Table.
Scenario Manager
Scenario manager in Excel is located under the Data tab, Data Tools group, What-If Analysis.
For each scenario, calculate the IRR based on these CFs, starting with the following data:
Answer:
1. With the Scenario Manager dialog box open (by choosing What-If Analysis under the
data tab), click Add.
2. Complete as follows:
3. Click OK, and put the values that define the best case scenario.
4. Click Add.
5. Complete steps 2-5 with the data for Most-Likely and Worst Case.
BUS598 Excel Functions Handout
Prepared by Fatma Abdel-Raouf
July 2012
Page 23 of 46
So in the best case scenario, your IRR is 22%, in the most-likely case it is 12%, and in the worst
case scenario it is 4%.
Goal Seek
Goal Seeks allows you to change specific value in your formula to reach your goal. For example,
if you are getting a mortgage loan to buy a house and you want your monthly payment to be of
specific value, you can use Goal Seek to ask Excel to change one variable (say the interest rate
or the amount of the loan) to reach your goal of monthly payment.
Example:
You want to get a $200,000 mortgage loan to buy a house with 5% interest rate. You use Excel
to get the monthly payment (PMT function in Excel, under financial functions).
Your monthly payment is $1,073.64. Suppose you want your monthly payment to be $1,000 and
you want to change the interest rate to achieve that goal. Use Goal Seek to get the interest rate
needed for a $1,000 monthly payment on your loan.
Answer:
1. To begin the Goal Seek, click on the data tab, under What-If Analysis choose Goal Seek
2. In the Set cell click on B6. The Set cell field tells Excel about the cell that has the
formula with value you want to change to achieve your goal (the monthly payment
amount).
3. In the To value put 1000. The To value field tells Excel about the goal you want to
reach, in this case $1000.
BUS598 Excel Functions Handout
Prepared by Fatma Abdel-Raouf
July 2012
Page 26 of 46
4. In By changing cell click on B4. The By changing cell field tells Excel about the cell that
has the variable you want to change to achieve your goal (the interest rate).
5. Click Ok
6. Tthe results apprear on your original worksheet. Cell B6 has the desired monthly
payment and cell B4 has the solution Excel reached for you. At an interest rate of 4%,
your monthly payment will decrease to $1,000, which is your goal. To accept the changes,
click Ok and Excel will keep these values on your worksheet.
Data Table
Data Table is similar to Scenario Manager but you can only vary one variable and see its effect on
your outcome. For example, you are getting a mortgage loan and you want to see how much is
your monthly payment is under different interest rates.
Example:
You want to get a loan of $20,000 to buy a car. The loan is for five years and the interest rate is
7%. The monthly payment on your loan is $396.02. You want to know how much your monthly
payment will be at different interest rates?
Answer:
1. Highlight the columns that have the values you want to replace. In this example we want
to replace the Monthly Payment.
2. To begin the Data Table, click on the Data tab, Data Tools group, What-If Analysis and
choose Data Table
3. If your data is in column form, in the Column input cell field, click on the cell reference
for the first substitution. In our example, click on cell A5.
4. Click OK.
5. Excel displays the results in the second column. You can reduce the number of decimal
points to two by clicking on the reduce decimal icon on the Home tab, Number group.
6. You get
Solver
Excel solver is a very useful feature. You can use it to solve for optimization problems such as
maximizing profit, minimizing cost, maximizing expected return on the portfolio, minimizing risk,
allocating resources among different uses, allocating advertising expenditures among different
sources to maximize revenue, quantities of output the firm should produce to maximize profit
given its constraints, and much more. It solves linear and non-linear equations.
Add Excel Sovler to your worksheet as follows:
1. Click on File, Options
2. Click on Add-Ins
4. Check the Solver Add-in box. You may want to go ahead and check the Analysis ToolPak
and ToolPak VBA, and click OK.
Once it is added, click on the Data tab, Analysis group and you will see the Solver icon.
Price
Variable Cost
# of Units
Produced
Standard
PC
$1,600
Economy
PC
$1,000
1,100
700
500
300
3. Click on Solver, in the Set Objective field, click on the cell that has the formula for profit,
cell B12. In the To field, check Max .
4. In the By Changing Variable Cells click on the cells that has the numbers for S and E,
cells B10:B11.
6. In cell reference, click on cell B10 (to choose S), in the next field, choose <=, in the
Constraint field put 200.
7. Click Add, and start your second constraint: In cell reference, click on cell B15, next field
<=, constraint field type 20,000.
8. Click Add, and start your third constraint: In cell reference, click on cell B16, next field <=,
constraint field type 2,000.
9. Click OK.
10.Now you have your optimization problem set up, click on Solve
Solver already solved for S and E and put the answer in the proper cells. S should be 100 and E
300. This gives the manufacturer a profit of $140,000. Notice that your constraints are satisfied
as well. To accept the answer, click on Ok.
You can also add as a constraint that S and E are integers since you cant produce a fraction of a
computer.
Example 2:
The Stock Corporation makes two products, paper and cardboard. The relationship between
the firms annual profit (in thousands of dollars), and its output of each good is:
= -50 + 40 Q1 + 30 Q2 5
Q21
-4
Q22 - 3 Q1 Q2
Where Q1 is the firms annual output of paper (in tons) and Q 2 is the firms annual output of
cardboard (in tons). Find the output of each good that the Stock Corporation should produce if it
BUS598 Excel Functions Handout
Prepared by Fatma Abdel-Raouf
July 2012
Page 42 of 46
3. Click on Solve
Your answer is 3.24 tons of paper and 2.54 tons of cardboard. Stock Corporations profit is
$52,817.
BUS598 Excel Functions Handout
Prepared by Fatma Abdel-Raouf
July 2012
Page 44 of 46
References
Cronan, John (2010). Microsoft Office Excel 2010 Quick Steps. 2 nd Edition. McGraw Hill.
Etheridge, Denise (2007). Microsoft Office: Excel 2007 Data Analysis. Wiley Publishing.
Frye, Curtis (2010). Microsoft Excel 2010 Step by Step. Microsoft Press.
Frye, Curtis (2010). Microsoft Excel 2010 Plain and Simple. Microsoft Press.
Jelen, Bill (2010). Microsoft Excel 2010 in Depth. 1 st Edition. Que.