What-If Analysis in Excel allows you to experiment with data to see how changes in one or more variables affect the outcome of formulas in your worksheet. This is particularly useful for financial modeling, budgeting, and forecasting. In this section, we will cover two powerful What-If Analysis tools: Scenario Manager and Goal Seek.
Scenario Manager
Key Concepts
- Scenario Manager: Allows you to create and save different sets of input values (scenarios) and switch between them to see how they affect the results.
- Scenarios: Different sets of values that you can apply to a worksheet to see how they affect the results.
Steps to Use Scenario Manager
-
Open Scenario Manager:
- Go to the Data tab on the Ribbon.
- Click on What-If Analysis in the Forecast group.
- Select Scenario Manager.
-
Add a Scenario:
- In the Scenario Manager dialog box, click Add.
- Enter a name for the scenario (e.g., "Best Case").
- Select the cells that will change (e.g., B2, B3, B4).
- Click OK.
-
Enter Scenario Values:
- Enter the values for the scenario.
- Click OK to save the scenario.
-
View Scenarios:
- In the Scenario Manager dialog box, select a scenario and click Show to apply it to the worksheet.
Practical Example
Suppose you have a simple budget model with the following cells:
- B2: Revenue
- B3: Costs
- B4: Profit (calculated as B2 - B3)
You can create different scenarios to see how changes in revenue and costs affect profit.
| | A | B | |---|---------|---------| | 1 | | Budget | | 2 | Revenue | 10000 | | 3 | Costs | 7000 | | 4 | Profit | =B2-B3 |
-
Add Scenarios:
- Best Case: Revenue = 12000, Costs = 6000
- Worst Case: Revenue = 8000, Costs = 8000
-
View Scenarios:
- Switch between "Best Case" and "Worst Case" to see how the profit changes.
Goal Seek
Key Concepts
- Goal Seek: Allows you to find the input value needed to achieve a specific goal in a formula.
Steps to Use Goal Seek
-
Open Goal Seek:
- Go to the Data tab on the Ribbon.
- Click on What-If Analysis in the Forecast group.
- Select Goal Seek.
-
Set Goal Seek Parameters:
- In the Goal Seek dialog box, set the following:
- Set cell: The cell containing the formula you want to achieve a specific value for (e.g., B4).
- To value: The goal value you want to achieve (e.g., 5000).
- By changing cell: The cell that Excel will change to achieve the goal (e.g., B2).
- In the Goal Seek dialog box, set the following:
-
Run Goal Seek:
- Click OK to run Goal Seek.
- Excel will adjust the input value to achieve the goal.
Practical Example
Using the same budget model, suppose you want to find out what revenue is needed to achieve a profit of 5000.
-
Set Goal Seek Parameters:
- Set cell: B4 (Profit)
- To value: 5000
- By changing cell: B2 (Revenue)
-
Run Goal Seek:
- Excel will adjust the revenue to 12000 to achieve a profit of 5000.
Exercises
Exercise 1: Using Scenario Manager
- Create a new worksheet with the following data:
| | A | B | |---|---------|---------| | 1 | | Budget | | 2 | Revenue | 15000 | | 3 | Costs | 9000 | | 4 | Profit | =B2-B3 |
- Add the following scenarios:
- Optimistic: Revenue = 18000, Costs = 8000
- Pessimistic: Revenue = 12000, Costs = 10000
- Switch between the scenarios and observe the changes in profit.
Exercise 2: Using Goal Seek
- Using the same worksheet, find out what revenue is needed to achieve a profit of 7000.
- Document the steps and the result.
Solutions
Solution 1: Using Scenario Manager
- Add Scenarios:
- Optimistic: Revenue = 18000, Costs = 8000
- Pessimistic: Revenue = 12000, Costs = 10000
- View Scenarios:
- Optimistic: Profit = 10000
- Pessimistic: Profit = 2000
Solution 2: Using Goal Seek
- Set Goal Seek Parameters:
- Set cell: B4 (Profit)
- To value: 7000
- By changing cell: B2 (Revenue)
- Run Goal Seek:
- Excel will adjust the revenue to 16000 to achieve a profit of 7000.
Conclusion
In this section, you learned how to use Scenario Manager and Goal Seek for What-If Analysis in Excel. These tools allow you to experiment with different input values and find the necessary inputs to achieve specific goals, making them invaluable for financial modeling and decision-making. In the next section, we will explore Data Validation techniques to ensure data integrity in your worksheets.
Mastering Excel: From Beginner to Advanced
Module 1: Introduction to Excel
- Getting Started with Excel
- Understanding the Excel Interface
- Basic Excel Terminology
- Creating and Saving Workbooks
- Entering and Editing Data
Module 2: Basic Excel Functions
- Basic Formulas and Functions
- Using AutoSum and Other Quick Calculations
- Cell Referencing
- Basic Formatting Techniques
- Sorting and Filtering Data
Module 3: Intermediate Excel Skills
- Working with Multiple Worksheets
- Using Named Ranges
- Conditional Formatting
- Introduction to Charts and Graphs
- Data Validation
Module 4: Advanced Formulas and Functions
- Advanced Logical Functions (IF, AND, OR)
- Lookup Functions (VLOOKUP, HLOOKUP, XLOOKUP)
- Text Functions
- Date and Time Functions
- Array Formulas
Module 5: Data Analysis and Visualization
- PivotTables
- PivotCharts
- Advanced Charting Techniques
- Using Slicers and Timelines
- Introduction to Power Query
Module 6: Advanced Data Management
- Data Consolidation
- Using Excel Tables
- Advanced Filtering Techniques
- What-If Analysis (Scenario Manager, Goal Seek)
- Data Validation with Custom Rules
Module 7: Automation and Macros
- Introduction to Macros
- Recording and Running Macros
- Editing Macros with VBA
- Creating User-Defined Functions
- Automating Tasks with VBA
Module 8: Collaboration and Security
- Sharing and Collaborating on Workbooks
- Tracking Changes and Comments
- Protecting Workbooks and Worksheets
- Using Excel Online
- Data Encryption and Security