Scenario analysis in Excel and spreadsheets
Learn how to build scenario analysis models in Excel using data tables and Scenario Manager. Includes a worked example and template tips for spreadsheets.
Contents
- What Is Scenario Analysis in a Spreadsheet
- Using a Data Table for What-If Analysis
- Scenario Manager for Named Input Sets
- Building a Flexible Scenario Analysis Model
- Multiple Variables and Sensitivity Analysis
- Scenario Analysis on Excel for Mac and Excel for the Web
- Worked Example: Profit Scenario with Two Variables
- Scenario Analysis Templates and Spreadsheet Setup
- Scenario Analysis Spreadsheet Questions
- What is the difference between scenario analysis and what-if analysis in Excel?
- How do I do scenario analysis in Excel with multiple variables?
- Can I use scenario analysis in Excel for the web?
- What is a data table in Excel for scenario analysis?
- How do I create a scenario analysis template in a spreadsheet?
- What is sensitivity analysis compared to scenario analysis?
Scenario analysis in a spreadsheet tests how changes in input values affect your calculated results. You set up a model with formulas, then compare outcomes for different sets of inputs. This helps you see potential risks and opportunities before making a decision.
- A data table shows results for one or two changing inputs in a single grid.
- Scenario Manager stores and switches between named sets of inputs.
- You can build a flexible model with formulas and then test many input combinations.
- Spreadsheet what-if templates speed up setup for common models.
What Is Scenario Analysis in a Spreadsheet
Scenario analysis is a method to evaluate how different input values affect a calculated output. You create a spreadsheet model with formulas that link inputs to results. Changing the inputs shows new results instantly. This lets you compare several possible futures side by side.
A spreadsheet is a natural tool for this because formulas recalculate automatically. You can enter base values, then test optimistic or pessimistic cases. The results appear in the same cells. You do not need separate files for each scenario.
The core of scenario analysis is the model. It is a set of cells that compute an outcome from input cells. The model can be simple, like a profit calculation, or complex, like a cost forecast. What matters is that the relationships between inputs and outputs are clear.
Using a Data Table for What-If Analysis
A data table in Excel shows how changing one or two inputs affects one or more output formulas. It is useful when you want to see many possibilities at once. The table fills in values for you based on your model. You can then scan the results for trends.
For a one-variable data table, put the different input values in a column or row. Put the output formula in the adjacent cell. Excel fills the table with results for each input value. This is quicker than retyping the formula many times.
For two variables, use a two-variable data table. One input varies down the rows, the other across the columns. The output formula sits in the top-left cell of the table. Excel computes the output for every pair of inputs. This gives you a grid of results.
- One-variable table: test many values for a single input.
- Two-variable table: test combinations of two inputs.
- Data tables recalculate when the model changes.
Scenario Manager for Named Input Sets
Scenario Manager stores different sets of input values under names you choose. You can switch between these sets to see their effect on the whole workbook. It is part of the What-If Analysis tools in Excel. This feature works on desktop versions of Excel.
To use Scenario Manager, define changing cells for each scenario. Enter the values for each scenario and give it a name like 'Base' or 'High Growth'. The manager saves these sets with the workbook. You can then show any scenario with one click.
Scenario Manager is helpful when you have several distinct sets of assumptions. For example, you might have a budget case and a stretch case. The manager keeps all these assumptions together. You can also create a summary report that shows all scenarios side by side.
| Feature | Data Table | Scenario Manager |
|---|---|---|
| Number of inputs | One or two | Up to 32 changing cells |
| Output display | Grid of results | Workbook recalculation |
| Saved scenarios | No | Yes, with names |
| Summary report | No | Yes, automatically |
Building a Flexible Scenario Analysis Model
A flexible model separates input cells from calculation cells. Put all assumptions in a dedicated input area. Reference these cells in your formulas. Then changing an input only requires editing one cell. This reduces errors and makes scenarios easier to manage.
Using range names for key inputs makes formulas easier to read. For example, name a cell 'GrowthRate' instead of using $B$2. The formula =Revenue*(1+GrowthRate) is clearer. It helps you and others understand the model quickly.
When you design a model for scenario analysis, think about what can change. Identify the variables that drive your results. These are the cells you will vary in data tables or Scenario Manager. Keep the model layout simple and logical.
Multiple Variables and Sensitivity Analysis
Scenarios often involve multiple changing inputs at once. A data table handles up to two variables. For more variables, use Scenario Manager to define sets of values. You can create scenarios with three or more inputs changing together. The manager applies all changes in one step.
Sensitivity analysis is a related method that shows how much an output changes when one input changes by a small amount. A one-variable data table is a quick sensitivity check. You can see the output across a range of one input while others stay fixed.
To explore interactions among several inputs, consider using formulas that combine them. For instance, a profit formula might depend on price, volume, and cost. You can create a grid of price and volume while holding cost constant. Then repeat for a different cost level.
Scenario Analysis on Excel for Mac and Excel for the Web
Excel for Mac includes the same What-If Analysis tools as Excel for Windows. Data tables and Scenario Manager are available in the Data tab. The steps are the same. You can build and run scenario models on a Mac without losing functionality.
Excel for the web has data tables but not Scenario Manager. You can create one- and two-variable data tables in the browser. To use Scenario Manager, open the workbook in the desktop app. Other spreadsheet programs have their own scenario tools.
When sharing a workbook with scenario models, note which features work in each environment. Data tables created in desktop Excel work in Excel for the web. Scenario summaries may be static reports. Always test critical models in the environment where they will be used.
Worked Example: Profit Scenario with Two Variables
Consider a simple profit model where profit equals revenue minus fixed costs. Revenue is price times quantity. Fixed costs and variable cost per unit are constant in the short term. You want to see how profit changes with different price and quantity combinations.
Set up a small spreadsheet. Enter price in one cell, quantity in another, fixed costs and variable cost per unit in others. Write a formula for revenue and a formula for profit. Then create a two-variable data table with price across the top and quantity down the side.
The data table fills with profit figures for each price-quantity pair. You can read the table to see which combinations give a profit. You might notice that profit rises with quantity but falls as price drops too far. This insight helps you choose a pricing strategy.
| Quantity | Price $10 | Price $12 | Price $14 |
|---|---|---|---|
| 100 | $200 | $400 | $600 |
| 200 | $700 | $1,000 | $1,300 |
| 300 | $1,200 | $1,600 | $2,000 |
Scenario Analysis Templates and Spreadsheet Setup
A scenario analysis template gives you a ready-made structure. It includes input cells, formula cells, and often a data table. You can adapt the template to your specific model. Many spreadsheet applications offer built-in templates for what-if analysis.
When you use a template, first understand how its formulas work. Check which cells are inputs and which are outputs. Look for hidden sheets or named ranges that affect calculations. Then replace the sample numbers with your own data carefully.
You can also build your own reusable template. Design a model with clear input and output areas. Add a data table or a scenario summary. Save the file as a template. Next time you need scenario analysis, start from that file to save setup time.
Scenario Analysis Spreadsheet Questions
What is the difference between scenario analysis and what-if analysis in Excel?
Scenario analysis in Excel is a part of what-if analysis. What-if analysis also includes data tables and goal seek. Scenario analysis typically means testing several defined sets of inputs at once. Data tables show a range of results for one or two inputs.
How do I do scenario analysis in Excel with multiple variables?
Use Scenario Manager to define scenarios with up to 32 changing cells. Each scenario can set different values for any number of those cells. Switch between scenarios to see their effect on calculated results. Data tables are limited to two changing variables, but they display a full grid of results.
Can I use scenario analysis in Excel for the web?
Excel for the web supports data tables but not Scenario Manager. You can create one-variable and two-variable data tables in the browser. For full Scenario Manager features, use the desktop Excel application. Other spreadsheet web apps have their own scenario tools.
What is a data table in Excel for scenario analysis?
A data table is a range of cells that shows how changing one or two input values affects one or more formula results. It is found under What-If Analysis in the Data tab. You set up the table with input values and a formula, and Excel fills in the results grid.
How do I create a scenario analysis template in a spreadsheet?
Build a model with clearly separated input cells and output formulas. Add a data table or use Scenario Manager to define typical cases. Save the workbook as a template file. Next time, open the template and replace inputs with your new data.
What is sensitivity analysis compared to scenario analysis?
Sensitivity analysis shows how much an output changes when one input changes by a given amount. Scenario analysis tests specific combinations of multiple inputs. A one-variable data table can serve as a sensitivity analysis. Scenario Manager handles broader sets of assumptions.
Read next
-
How cleanliness affects a car’s resale and trade-in value
-
Electric-car depreciation: how quickly EVs lose value
-
Resale value by powertrain comparison
-
Free car cost calculators
-
Understanding car depreciation
-
Running costs for new drivers
-
Resale value after 5 years by model
-
Predicting car insurance premium factors
-
Car depreciation check
-
Total cost of car ownership per year and per month