Bai 4 Practical
Bai 4 Practical
In Excel, What-if analysis is a process of changing cells' values to see how those
changes will affect the worksheet's outcome. You can use several different sets of
values to explore all the different results in one or more formulas.
What-if Excel is used by almost every data analyst and especially middle to higher
management professionals to make better, faster and more accurate decisions based
on data. What-if analysis is useful in many situations, such as:
What-If Analysis in Excel allows you to try out different values (scenarios) for
formulas. The following example helps you master what-if analysis quickly and easily.
Assume you own a book store and have 100 books in storage. You sell a certain %
for the highest price of $50 and a certain % for the lower price of $20.
You can download the following workbook, Lab6WhatIF.xlsx, from the announcement
page.
If you sell 60% for the highest price, cell D10 calculates a total profit of 60 * $50 + 40
* $20 = $3800.
Note: You can simply type in a different percentage into cell C4 to see the
corresponding result of a scenario in cell D10. However, what-if analysis enables you
to easily compare the results of different scenarios. Read on.
1. On the Data tab, click What-If Analysis and select Scenario Manager from the list.
3. Type a name (60% highest), select cell C4 (% sold for the highest price) for the
Changing cells and click on OK.
4. Enter the corresponding value 0.6 and click on OK again.
Finally, your Scenario Manager should be consistent with the picture below:
Note: to see the result of a scenario, select the scenario and click on the Show button.
Excel will change the value of cell C4 accordingly for you to see the corresponding
result on the sheet.
Scenario Summary
To easily compare the results of these scenarios, execute the following steps.
1. Click the Summary button in the Scenario Manager.
2. Next, select cell D10 (total profit) for the result cell and click on OK.
Result:
Conclusion: if you sell 70% for the highest price, you obtain a total profit of $4100, if
you sell 80% for the highest price, you obtain a total profit of $4400, etc. That's how
easy what-if analysis in Excel can be.
Goal Seek
What if you want to know how many books you need to sell for the highest price, to
obtain a total profit of exactly $4700? You can use Excel's Goal Seek feature to find
the answer.
Result. You need to sell 90% of the books for the highest price to obtain a total profit
of exactly $4700.