What-if analysis in Excel: which of the three tools to use, and how, with one worked example

What-if analysis is the habit of changing the inputs to a model to see what happens to the answer, and Excel has three tools built for it that most people never open.
They sit together under one button, so people assume they do the same job. They don’t. Goal Seek works backwards from a target, a Data Table shows a whole range of answers at once, and Scenario Manager stores complete sets of assumptions you can switch between. Pick the wrong one and you’ll spend an afternoon retyping numbers into cells, which is exactly what these tools exist to stop.
Below, we build one small pricing model and run all three tools against it, with the exact menus as they appear in Excel for Microsoft 365 today. By the end you’ll know which tool answers which question, and you’ll have a model you can rebuild in ten minutes.
Quick summary
The hard part of what-if analysis isn’t the menus; it’s building a model where every assumption lives in its own cell and every result is a formula.
Treat the tools as questions rather than features: “what do I need?”, “what’s the range?” and “which story are we planning for?” each have their own button.
What is what-if analysis, in plain terms?
What-if analysis means changing one or more assumptions in a model and watching how the outcome moves, so that you can make a decision with the trade-offs in front of you rather than in your head. “What if our supplier puts prices up?” “What if we sell 20 per cent fewer units?” “What price do we need to hit our profit target?”
You’ll see two flavours mentioned in finance and project management, and they map neatly onto Excel’s tools:
- Sensitivity analysis changes one input (or two) at a time to see how sensitive the result is to it. In Excel that’s a Data Table, or Goal Seek if you’re working backwards.
- Scenario analysis changes several inputs together to describe a coherent future, such as “recession” or “new contract won”. In Excel that’s Scenario Manager.
The distinction matters because a single-variable test can make a plan look safe when two things going wrong at once would sink it. Good planning uses both.
Build the model first: the worked example
Every tool below runs against the same small model. Imagine a business selling one product. Put the labels in column A and the values in column B, exactly as follows, so that your cell references match ours:
| Cell | Label (column A) | Value or formula (column B) | Result |
|---|---|---|---|
| B2 | Price per unit | 24 | £24.00 |
| B3 | Units sold per month | 1500 | 1,500 |
| B4 | Variable cost per unit | 14 | £14.00 |
| B5 | Fixed costs per month | 12000 | £12,000 |
| B7 | Revenue | =B2*B3 | £36,000 |
| B8 | Variable costs | =B3*B4 | £21,000 |
| B9 | Profit | =B7-B8-B5 | £3,000 |
| B10 | Profit margin | =B9/B7 | 8.3% |
Rows 2 to 5 are inputs: typed numbers, nothing else. Rows 7 to 10 are formulas that only ever reference those inputs. That separation is the whole trick. If someone has typed 36000 over the revenue formula, none of the what-if tools will give a true answer, and they won’t warn you either.
One more tip before you start: give the input cells names (select B2, click in the Name Box to the left of the formula bar, type Price and press Enter). Scenario Manager’s summary report uses those names as row labels, so your report reads “Price” instead of “$B$2”.
All three tools live in the same place in Excel for Microsoft 365 on the desktop: the Data tab, Forecast group, What-If Analysis button.
Goal Seek: when you know the answer you need
Goal Seek answers one question: “what does this single input need to be for that formula to hit this number?” It saves you nudging a cell up and down by hand until the total looks right.
How to use Goal Seek
Say the owner wants £6,000 a month profit instead of £3,000, and wants to know what price that requires at current volume. Here are the steps:
- Select the profit cell, B9.
- Go to Data > What-If Analysis (in the Forecast group) > Goal Seek.
- In Set cell, check it shows B9. This must be a formula.
- In To value, type 6000.
- In By changing cell, enter B2 (the price). This cell must feed the formula in Set cell, directly or indirectly.
- Select OK. The Goal Seek Status box shows the solution and Excel has already written it into B2.
- Select OK to keep the new value, or Cancel to put the original back.
Excel returns £26.00. A £2 price rise doubles profit, which tells you how thin the margin is at £24. Run it again with Set cell B9, To value 0 and By changing cell B3, and you get your break-even volume: 1,200 units. That’s 300 units of headroom below current sales, which is a far more useful number for a sales meeting than “we’re doing OK”.
Goal Seek has two limits worth knowing. Microsoft’s Goal Seek documentation is clear that it changes only one input, so for anything involving constraints (“maximise profit, but keep price under £30 and volume under 2,000”) you need the free Solver add-in instead. And because it overwrites your input, save first or note the original value.
Data Tables: when you want to see the whole range
Goal Seek gives you one answer. A Data Table gives you a grid of answers, so that you can see where the cliff edges are. It’s the right tool for pricing discussions, commission plans and any “show me the options” conversation.
One-variable Data Table
To see profit at every price from £22 to £28, follow these steps:
- In D3 down to D9, type the prices 22, 23, 24, 25, 26, 27 and 28.
- In E2 (one row above and one column to the right of the first price) type =B9, so the table knows which result to calculate.
- Select D2:E9.
- Go to Data > What-If Analysis > Data Table.
- Leave Row input cell empty. In Column input cell, enter B2, because your prices run down a column and replace the price input.
- Select OK.
The table fills with £0 at £22, rising by £1,500 for every pound of price, to £9,000 at £28. You’ve just confirmed that £22 is break-even at current volume and that every pound of price is worth £1,500 a month.
Two-variable Data Table
Price rises rarely leave volume untouched, so the honest question involves both. Put the formula =B9 in the top-left corner cell, prices across the row to its right, volumes down the column below it, select the whole block, open Data Table again, and enter B2 as the Row input cell and B3 as the Column input cell. A cut-down version of the result looks like this:
| Units per month | Price £22 | Price £24 | Price £26 |
|---|---|---|---|
| 1,200 | -£2,400 | £0 | £2,400 |
| 1,500 | £0 | £3,000 | £6,000 |
| 1,800 | £2,400 | £6,000 | £9,600 |
Read it diagonally and the decision appears. Raise the price to £26 and lose 300 units, and you drop to £2,400, worse than today’s £3,000. At £26 each unit contributes £12, so the rise only pays if you keep more than 1,250 units a month. That’s the conversation to have with sales before anyone changes the price list.
Worth knowing
A Data Table’s input cell must be on the same worksheet as the table, and you can’t edit or delete one cell of the results on its own.
The results are a single array, so to clear them select every result cell and press Delete. Large tables also slow a workbook down because they recalculate whenever anything changes; switching to Formulas > Calculation Options > Automatic Except for Data Tables stops that, and F9 recalculates them when you’re ready.
Scenario Manager: when several things change at once
Real plans don’t move one number at a time. A supplier increase arrives alongside a volume dip, or an expansion brings bulk discounts and higher overheads. Scenario Manager stores complete sets of input values under a name, so that you can flip between them and produce a side-by-side summary for the board.
We’ll set up four scenarios for the same model, using the four input cells B2 to B5:
| Scenario | Price | Units | Variable cost | Fixed costs | Profit |
|---|---|---|---|---|---|
| Current | £24 | 1,500 | £14.00 | £12,000 | £3,000 |
| Supplier rise | £24 | 1,500 | £15.50 | £12,000 | £750 |
| Price up, volume down | £26 | 1,350 | £14.00 | £12,000 | £4,200 |
| Expansion | £24 | 1,900 | £13.50 | £15,500 | £4,450 |
How to use Scenario Manager
Create the first scenario from today’s numbers so that you can always get back to them:
- Go to Data > What-If Analysis > Scenario Manager, then select Add.
- Type a Scenario name such as Current.
- In Changing cells, enter B2:B5. For cells that aren’t next to each other, hold Ctrl while you click them.
- Leave Prevent changes ticked if the sheet will be protected, then select OK.
- Excel shows the current values. Select OK to save them unchanged.
- Select Add again for each remaining scenario, typing the new values from the table above.
- To try one on, select it in the list and choose Show. The input cells change and every formula updates.
- To compare them, select Summary, choose Scenario summary, enter B9,B10 as the Result cells and select OK.
Excel builds a new sheet with every scenario in its own column. The headline is uncomfortable but useful: a £1.50 supplier increase cuts profit by three quarters, while expansion only beats a modest price rise by £250 a month and carries £3,500 more fixed cost. That’s a reason to negotiate the supply contract before signing a bigger lease.
Two cautions from Microsoft’s Scenario Manager guidance: each scenario holds up to 32 values, and the summary report doesn’t recalculate, so rerun it whenever you change a scenario. Scenarios also stay on the sheet where you created them; use Merge to pull in a colleague’s versions from another workbook with the same layout.
Which what-if analysis tool should you use?
If you remember one thing, make it this lookup table. Match the question you’re being asked to the tool:
| Your question | Tool | Inputs it changes | What you get |
|---|---|---|---|
| What do I need to hit this target? | Goal Seek | One | A single input value |
| How does the result move across a range? | Data Table | One or two | A grid of results |
| What happens under each named plan? | Scenario Manager | Up to 32 values per scenario | Switchable cases and a summary report |
| What’s the best answer within limits? | Solver add-in | Many, with constraints | An optimised set of inputs |
Our verdict for most small and mid-sized businesses: learn the Data Table first. It’s the tool that changes meetings, because everyone can see the range on one screen. Goal Seek is the quick win, and Scenario Manager earns its place at budget time.
When Excel stops being the right place
These tools are designed for one analyst working in one workbook. When your inputs come from live sales data, or when managers want to drag a slider themselves, a Power BI report is a better home. Power BI Desktop has numeric range parameters (under Modeling > New parameter) that create a slicer and a measure, so that report readers can test a discount or growth rate without touching the model. Our comparison of Power BI and Excel covers where that line usually falls.
Before you get there, the bigger win is usually feeding the model properly. Summarising last year’s sales by product with PivotTables, and pulling current costs from a supplier price list with XLOOKUP, means your what-if inputs start from real numbers rather than guesses.
Worried your team’s forecasts are built on retyped numbers?
Our Excel Advanced course covers what-if analysis in a properly structured model, live online through Microsoft Teams, in the classroom or on-site for your team. Book a short call and we’ll tell you honestly whether a course is the right fix, or whether a 20-minute internal walkthrough would do.
The bottom line on what-if analysis in Excel
What-if analysis in Excel isn’t advanced maths. It’s discipline: inputs in their own cells, results as formulas, and the right tool for the question in front of you. Get the structure right and Goal Seek, Data Tables and Scenario Manager take minutes rather than hours.
The common failure isn’t the tools themselves. It’s a model where someone has overtyped a formula, or a summary report nobody reran after the assumptions changed. Building a short checklist into your team’s planning templates fixes most of that.
If your team is comfortable with formulas and wants to plan with confidence, our Excel Advanced course is the natural next step. If references and formulas still feel shaky, start with Excel Intermediate or browse the full Excel training range.
Related reading
STRAIGHT ANSWERS
Frequently asked questions
Quick answers to the questions people ask most about what-if analysis.
What is the purpose of the What-If Analysis tool in Excel?
It lets you change the inputs to a formula-driven model and see the effect on the results without rebuilding anything. Excel groups three tools under the What-If Analysis button on the Data tab: Goal Seek finds the input needed for a target, Data Tables show results across a range of one or two inputs, and Scenario Manager stores and compares named sets of assumptions.
Where is What-If Analysis in Excel?
In Excel for Microsoft 365 on Windows and Mac, go to the Data tab and look in the Forecast group for the What-If Analysis button. Select it to see Scenario Manager, Goal Seek and Data Table. Forecast Sheet sits beside it in the same group. If you can't see the Forecast group, widen the Excel window, as narrow windows collapse ribbon groups.
What is the difference between sensitivity analysis and scenario analysis?
Sensitivity analysis changes one input (or two) at a time to see how much the result depends on it, for example profit at every price from £22 to £28. Scenario analysis changes several inputs together to describe a coherent situation, such as a supplier rise combined with lower volume. In Excel, use a Data Table for sensitivity and Scenario Manager for scenarios.
What are the disadvantages of what-if analysis?
The results are only as good as the model and the assumptions. A single overtyped formula gives confident but wrong answers, and Excel won't warn you. Goal Seek handles one input, Data Tables two, and scenario summary reports don't recalculate. It also can't tell you how likely each scenario is, so pair it with judgement and real historical data.
Can you do what-if analysis in Power BI?
Yes. In Power BI Desktop, go to Modeling and select New parameter, then Numeric range. Power BI creates a parameter, a measure holding its current value and, optionally, a slicer, so report readers can adjust a value such as a discount rate and watch the visuals update. It suits shared, refreshed data; Excel suits one analyst testing a model.
What is a what-if analysis example?
A business selling 1,500 units a month at £24, with £14 variable cost and £12,000 fixed costs, makes £3,000 profit. Goal Seek shows a £26 price doubles that to £6,000, and that break-even is 1,200 units. A two-variable Data Table then shows that £26 only beats today's profit if volume stays above 1,250 units.
