
What You’ll Learn
What-if analysis in Excel is the feature most people walk past for years, right up until the day they actually need it — and then they cannot believe they were doing things manually for so long.
Here is how it usually goes. You have a spreadsheet with a formula. You need to know what happens if the interest rate goes up, or if you sell fewer units, or if the project runs over budget. So you start typing different numbers into a cell and watching the result change. One at a time. Manually. Saving nothing. That works — but it is also the slow way. Excel has three tools specifically built for this kind of thinking, and once you know how to use them, that manual process starts to feel like taking notes with a crayon.
The catch is that what-if analysis in Excel is not actually one tool. It is three, grouped under the same menu, each one built for a different kind of question. Most tutorials either skip that distinction entirely or bury it so deep you never absorb it. This lesson will not do that. Before you start: if your spreadsheet relies on IF or nested IF logic, make sure that foundation is solid first. The XplorExcel lesson on IF and Nested IF Functions is worth reviewing before you build anything complex on top of it.
The simplest way to put it: what-if analysis in Excel means testing how changes to your inputs affect your formula results — without manually editing cells one at a time. You already have a working formula. The numbers are flowing. Now you want to explore possibilities. What if the interest rate drops? What if you hit 80% of your sales target? What if you extend the timeline by three months?
Each of those questions has a right tool. Here is the breakdown:
| Tool | The Question It Answers |
|---|---|
| Goal Seek | I know the result I want. What input number gets me there? |
| Scenario Manager | I have a few different versions of my assumptions. Can I save and switch between them without wrecking my spreadsheet? |
| Data Tables | I want to see what happens across a whole range of values. Show me everything at once. |
Honestly, it is a loose grouping. Microsoft put them together because they all involve testing hypothetical inputs against real formulas — but the way they work underneath is completely different. Scenario Manager saves named snapshots. Data Tables generate an array of results automatically. Goal Seek runs a reverse calculation. They share an idea, not an engine. Do not let the single menu fool you into thinking they are interchangeable.
You need what-if analysis in Excel when your formulas are already built and working, and you want to explore possibilities without touching the model itself. If you are still constructing the spreadsheet, finish that first. Get the formulas right. Once your model is producing results, that is when these tools earn their spot.
Think of Goal Seek like working backwards through a calculator. Normally you punch in the inputs and get the result. Goal Seek lets you say: here is the result I need — now figure out the input. You give it three things: the formula cell, the target result you want, and the single input cell it is allowed to change. It then adjusts that input until your formula hits the number you asked for.
The word “single” there is doing a lot of work. Goal Seek can only change one input at a time — that is what the tool is designed for. If you need to change multiple inputs simultaneously, that is a job for Scenario Manager or a Data Table. It also works best with straightforward relationships. If your formula is deeply nested or non-linear, Goal Seek may give you an approximate answer, or it may not converge at all.
Goal Seek — Step by Step
💡 PRO TIP
Goal Seek rewrites the actual input cell — not a copy. If you want to preserve your original numbers, duplicate the sheet before running it. One extra click now saves a frustrating undo session later.
You are planning a car purchase. The loan amount is 500,000, the annual interest rate is 9%, and you are using the PMT function to calculate your monthly payment. The formula is telling you the EMI is 7,800. Your actual budget is 5,000 per month.
Set cell → PMT formula cell To value → -5000 (negative — PMT returns a negative value) By changing cell → Number of months cell
Goal Seek solves it — no trial and error, no manual testing. It finds the exact loan term that brings your EMI down to your target.
Scenario Manager is for when you have multiple complete pictures of your assumptions and you need to move between them cleanly. Goal Seek is a precision tool — it finds one number. Scenario Manager is a filing system. It saves entire sets of input values under descriptive names so you can switch between them instantly without overwriting anything.
You have probably seen this problem before: you are working on a budget model, you adjust the numbers for a conservative estimate, and then you need to go back to the original version. So you either undo a dozen steps or try to remember what the original numbers were. Scenario Manager solves exactly that.
Scenario Manager — Step by Step
A project manager is presenting three versions of a budget to the board: Conservative (reduced team, lower costs), Base Case (current plan), and Aggressive (full headcount, higher marketing spend). Each version uses different values for headcount, cost per resource, and campaign budget. Without Scenario Manager, she would need three separate files — or spend the meeting frantically typing numbers back in from a notepad. With Scenario Manager, she clicks Show next to each scenario name during the presentation and the spreadsheet updates on the spot. That is the kind of thing that makes you look very prepared in a room full of executives.
Advertisement-X
In Scenario Manager, click the Summary button. Choose Scenario Summary for a clean static table, or Scenario PivotTable for a dynamic version. Select the result cells you want to compare across scenarios. Click OK. Excel creates a new sheet with all your scenarios displayed side by side — inputs and outputs for each, at a glance.
This is the most common misunderstanding, and it catches people out every time. The summary report is a snapshot. It captures your model at the moment you generate it. If you go back and change your formulas afterward, the summary does not know. It still shows the old logic.
⚠️ COMMON MISTAKE
Generating a scenario summary, then editing your model formulas, and assuming the summary still reflects what your spreadsheet actually does. It does not. If anything structural changes in your model, delete the summary sheet and generate a fresh one.
A Data Table is what you reach for when Goal Seek feels too narrow and Scenario Manager feels like too much overhead. It does not find a target and it does not save named versions. It simply shows you what your formula produces across a whole range of input values — all at once. A one-variable Data Table tests how one changing input affects your output across as many values as you want to include. Think of it as running Goal Seek a hundred times and presenting all the results in a column. This is the practical workhorse of Excel sensitivity analysis.
A two-variable Data Table goes one step further. It tests two inputs simultaneously against a single output and produces a full grid of results. Rows represent one variable, columns represent the other, and every cell in the grid shows what your formula produces at that specific combination. Trust me on this: once you have seen a two-variable Data Table work, going back to manual testing feels absurd. It is the closest thing Excel has to a built-in sensitivity analysis dashboard.
Two-Variable Data Table — Step by Step
A sales manager wants to understand how revenue changes across combinations of unit price and units sold. The formula is simple: Revenue = Price × Units. He sets up a column of prices (500, 600, 700, 800, 900) and a row of unit volumes (100, 200, 300, 400, 500). After building the two-variable Data Table, he has a complete 5×5 grid. That is 25 combinations calculated instantly, laid out in a format anyone can read. What would have taken 25 manual calculations is finished before he has even reached for his coffee.
Once Excel fills the results grid, each result cell contains an array formula that looks like this:
{=TABLE(row_input, column_input)}
You cannot edit or delete individual cells within the grid. If you need to change the table, select the entire results range and delete it as a block, then set it up again. Do not try to delete a single result cell — Excel will throw an error and refuse.
💡 PRO TIP
Keep your Data Table on the same sheet as the model it references. Cross-sheet references can produce errors or silently incorrect results in Data Tables. Keep everything on one sheet until you are very confident in your setup.
Work through these questions in order:
| Your Question | Use This Tool |
|---|---|
| I know the result I want. What input gets me there? | Goal Seek |
| I have multiple named sets of assumptions to compare. | Scenario Manager |
| I want to see how a range of one variable affects my output. | One-Variable Data Table |
| I want to test two variables against a single output — show me the full grid. | Two-Variable Data Table |
These three tools are not rivals — they work well together. A common workflow: you build a two-variable Data Table to scan across a wide range of inputs and identify the zone where results are acceptable. You then use Goal Seek to pinpoint the exact number within that zone. Finally, you save the meaningful versions as Scenarios for reporting. For example: modelling a loan, you want to keep the monthly payment under a certain amount. The Data Table shows which combinations of interest rate and loan term stay under that threshold. You pick a rate, use Goal Seek to find the exact term, then save the conservative, base, and aggressive versions as scenarios for the finance meeting. That is what-if analysis in Excel working the way it was meant to.
⚠️ COMMON MISTAKE
Running Goal Seek without backing up your data first. Goal Seek overwrites the input cell. If you click OK and do not like the result, you need to undo immediately. Duplicate your sheet before running it.
⚠️ COMMON MISTAKE
Placing the formula cell in the wrong position when building a two-variable Data Table. The formula must sit at the exact corner of the row and column input ranges. Even one cell off and the whole table produces wrong results or errors.
⚠️ COMMON MISTAKE
Pointing Goal Seek at a cell that contains a raw number instead of a formula. The Set cell field must reference a formula. If it contains a typed value, Goal Seek has nothing to calculate and will either fail or produce meaningless results.
⚠️ COMMON MISTAKE
Trying to delete a single result cell inside a Data Table grid. You must select and delete the entire results range as one operation — Excel will not allow partial deletion.
| Tool | Use When | Inputs Changed | Best For |
|---|---|---|---|
| Goal Seek | You know the target, need the input | One cell | Reverse calculations, target-based planning |
| Scenario Manager | Multiple named assumption sets to compare | Multiple cells per scenario | Budget planning, board presentations |
| Data Table (1-var) | Range of one variable against output | One variable, many values | Sensitivity analysis, forecasting |
| Data Table (2-var) | Two variables, full outcome grid needed | Two variables, many combinations | Pricing models, financial modelling |
🎯 Try It Yourself
Set up a loan calculator in a new Excel sheet with three input cells: Loan Amount (500,000), Annual Interest Rate (0.09), and Loan Term in Months (60). In a fourth cell, use the PMT function to calculate the monthly payment.
Then work through all three tools:
If you can do all three on a single spreadsheet, you have genuinely mastered what-if analysis in Excel — not just read about it.
📚 External Resources
The official Microsoft documentation covering all three tools with authoritative detail.
One of the clearest practical walkthroughs of Data Tables available, with strong visual examples.
Once you have your scenarios and sensitivity tables built, the next step is making those results communicate clearly. The XplorExcel lesson on Excel Charts and Data Visualization will show you how to turn a grid of numbers into something a room full of people can grasp in seconds. And if you want your input ranges to stay clean and structured as your models grow, the XplorExcel lesson on Excel Tables and Structured References is worth your time.
What-if analysis in Excel is one of those skill areas where the learning curve is short but the payoff is long. You are not going to become a financial modeller overnight — but you are going to stop manually typing numbers into cells to test ideas. And that alone is worth the hour you spent here.
Advertisement-X