Last updated on November 15th, 2026 at 06:19 pm
Excel keeps its What-If Analysis tools under Data > What-If Analysis: Goal Seek works backward from a result you want, Scenario Manager compares sets of inputs, and Data Table shows results for a list of input values at once. Change the inputs and the results update without rebuilding your formulas, answering questions like “How many units do I need to sell to break even?” Forecast Sheet and Solver cover more advanced cases.
Which What-If Tool Should You Use?
| Tool | Best for | Example question |
|---|---|---|
| Goal Seek | Finding the one input that produces a target result | What sales do I need for $10,000 profit? |
| Scenario Manager | Comparing a few named sets of inputs | Best case vs. expected vs. worst case |
| Data Table | Seeing results for many values of one or two inputs | Payments at rates from 4% to 8% |
The same three tools are covered on the introduction to What-If Analysis page from Microsoft Support.
Can I use What-If Analysis for budgeting?
Yes. Scenario Manager is especially useful for comparing budget versions, and Goal Seek can tell you how much you need to save or earn to hit a target.
Is What-If Analysis available on Mac?
Yes. In Excel for Mac, go to Data > What-If Analysis. Goal Seek, Scenario Manager and Data Table all work the same way.
Example: The Three What-If Tools
In Excel for Microsoft 365 on a Windows 11 laptop, Data > What-If Analysis opened a short menu with Scenario Manager, Goal Seek and Data Table.

Forecast Sheet sits beside it on the same tab, but it is a separate tool. Goal Seek is the quickest of the three when you know the answer you want and need the input that produces it.
Set Up a Model First
Every What-If tool needs a formula that depends on input cells. This example uses a simple profit model:
| Cell | Label | Value |
|---|---|---|
| B1 | Units sold | 1,000 |
| B2 | Price per unit | $25 |
| B3 | Cost per unit | $15 |
| B4 | Fixed costs | $5,000 |
| B5 | Profit | =B1*(B2-B3)-B4 |
With these numbers, B5 shows a profit of $5,000.
How to Use Goal Seek
Goal Seek works backward from a result you want.
- Go to Data > What-If Analysis > Goal Seek. In Microsoft 365 it’s in the Forecast group.
- Set Set cell to B5 (the profit formula).
- Set To value to 10000.
- Set By changing cell to B1 (units sold).
- Click OK.
Excel finds that you need to sell 1,500 units. Click OK to keep the new value or Cancel to restore the original. Goal Seek changes only one input at a time.
How to Use Scenario Manager
Scenario Manager stores several sets of inputs so you can switch between them and compare results side by side.
- Go to Data > What-If Analysis > Scenario Manager and click Add.
- Name the scenario Expected, set Changing cells to B1:B3, and click OK. Enter 1000, 25 and 15.
- Add a Best case scenario with 1,400 units, $27 price and $14 cost.
- Add a Worst case scenario with 700 units, $23 price and $16 cost.
- Select a scenario and click Show to load its values into the sheet.
- Click Summary, choose B5 as the result cell, and click OK.
Excel creates a new sheet comparing profit across all three scenarios. Scenarios can change up to 32 cells each, which makes them ideal for budgets and forecasts with several moving parts. When you need a projection based on past results rather than hand-picked assumptions, you can do a forecast in Excel with Forecast Sheet or FORECAST.LINEAR.
How to Use a Data Table
A data table shows results for a whole list of input values at once. To see profit for different prices:
- List prices from $20 to $30 in D3:D13.
- In E2, enter
=B5. - Select D2:E13.
- Go to Data > What-If Analysis > Data Table.
- Set Column input cell to B2 and click OK.
Excel fills E3:E13 with the profit at each price. Layout tips and more examples are in doing a data table in Excel. Testing two inputs at once, such as price and units, takes a two-variable data table or a sensitivity table.
Beyond the Three Tools
- Forecast Sheet: with dates and values in two columns, go to Data > Forecast Sheet to project future values with confidence bounds, based on past trends.
- Solver: when you need to change several inputs at once, or add constraints like “cost must stay under $8,000,” enable the Solver add-in under File > Options > Add-ins > Excel Add-ins > Go. It appears on the Data tab.
Goal Seek that finds no solution
- Goal Seek may not have found a solution. The target is impossible with that input, or the formula doesn’t depend on the changing cell. Check the formula chain, or try a different starting value.
- “Cell must contain a formula.” The Set cell in Goal Seek or the result cell in a Scenario Summary must be a formula, not a typed value.
- “Input cell reference is not valid.” For data tables, the input cell must be on the same sheet as the table.
- What-If Analysis is greyed out. You’re editing a cell, the sheet is protected, or several sheets are grouped. Press Esc, unprotect, or ungroup sheets.
- Scenario values overwrote my originals. Showing a scenario replaces the cell values. Create an “Original” scenario first so you can switch back.
Tips for What-If Analysis
- Keep inputs and formulas separate, with inputs clearly labeled, so What-If tools are easy to point at.
- Name your input cells (for example, Price and Units) so Scenario Summaries show readable labels instead of cell addresses.
- Use Data Tables for charts. A table of results across a range of inputs makes a great line chart.
- Save a copy before experimenting, especially with Goal Seek, which replaces your input value when you click OK.
Use Goal Seek to find the single input that hits a target, Scenario Manager to compare a handful of complete what-if cases, and Data Tables to see results across a whole range of values. Set up a clean model with clearly labeled inputs first, and all three tools become quick to use.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Every guide is checked on his own Windows 11, Windows 10, Mac, iPhone and iPad before it goes up.