How to use What-If Analysis in Excel

Updated · DeskHowTo

In Excel for Microsoft 365 (verified 2026-10-24), go to Data > What-If Analysis and pick Goal Seek (solve for one input that hits a target), Data Table (one- or two-variable grids of results), or Scenario Manager (named sets of up to 32 changing cells you can switch between). Keep formulas pointing at clearly labeled input cells so you are not hard-coding trial values.

What-If tools do not replace a proper financial model — they stress-test the one you already built. Goal Seek changes a single input cell; Data Tables need the formula to sit correctly relative to the row/column input; Scenarios shine when leadership asks for Best / Base / Worst.

Jump to

Applies to Excel for Microsoft 365 / Excel 2021–2024 on Windows and Mac (menu names are similar). Excel for the web has more limited What-If tools — use desktop Excel for Scenario Manager and Data Tables.

Try Goal Seek, a Data Table, and Scenarios

Goal Seek for one target

  1. Select the formula cell that should hit a value.
  2. Data > What-If Analysis > Goal Seek.
  3. Set “To value” and “By changing cell”, then OK and review the solved input.

Data Table for many inputs

  1. Build a formula that depends on one (or two) input cells.
  2. Data > What-If Analysis > Data Table, point to the row and/or column input cells.
  3. Read the spilled grid of results; clear the table if the structure is wrong and redo.

Scenario Manager for named cases

  1. Data > What-If Analysis > Scenario Manager > Add.
  2. Name the scenario (Base/Best/Worst), select changing cells, enter values.
  3. Show a scenario or create a summary report for stakeholders.

Our take: label inputs, never Goal-Seek raw data dumps

Put assumptions in a blue-font inputs block; Goal Seek those cells so you can Undo and re-run cleanly.

If it fails

  • Goal Seek cannot find a solution: formula does not depend on the changing cell, or the target is impossible.
  • Data Table shows the same number everywhere: wrong row/column input reference — recreate the table.
  • Scenario Manager missing: use desktop Excel; web client may lack it.
  • Need optimization with constraints: look at Solver (add-in), not Goal Seek.

Frequently asked questions

What is Excel What-If Analysis?

Built-in Goal Seek, Data Table and Scenario Manager tools that test how inputs change calculated results.

When should I use Goal Seek?

When you know the target result and need Excel to back-solve one input cell.

Data Table vs Scenario Manager?

Data Tables sweep many values for one or two inputs; Scenarios store named bundles of many inputs you switch between.

Does What-If Analysis work in Excel for the web?

Some features are limited — use desktop Excel for full Scenario Manager / Data Table workflows.

Is Solver part of What-If Analysis?

Solver is a separate add-in for constrained optimization; What-If Analysis is on the Data tab by default.