How to Use Solver in Excel

Set the conditions once, and Excel finds the best answer for you.

  1. Enable the Solver add-in from File > Options > Add-ins

    If this is your first time using it, check "Solver Add-in" in Options and click "Go" to activate it.

  2. Click "Solver" in the Data tab

    Once enabled, a "Solver" button appears at the right end of the Data tab.

  3. Set the objective cell, variable cells, and constraints

    Specify the objective cell you want to maximize or minimize, the cells that are allowed to change, and any conditions (constraints) that must be respected.

  4. Click "Solve" to calculate the optimal value

    Clicking the "Solve" button automatically calculates the best combination of values that satisfies your conditions.

  5. Why it is useful

    For a problem like maximizing profit within a limited budget, Excel automatically finds the best answer that satisfies several conditions at once, without anyone having to calculate it by hand.

From Trial and Error to an Automatic Answer

Before Solver, finding the ideal combination of numbers usually meant adjusting values by hand and checking the result over and over. Solver replaces that guesswork with an algorithm that searches for the best answer for you, once you have defined what "best" means and what limits apply.

Constraints Are What Make It Realistic

A target without constraints often produces an answer that is mathematically optimal but practically useless β€” for example, "maximize profit" with no budget limit has no real ceiling. Adding constraints like a maximum budget, minimum staffing, or available inventory keeps the result grounded in what is actually possible.

Frequently Asked Questions

What is the difference between Solver and Goal Seek?

Goal Seek can only adjust a single cell to reach one target value, while Solver can adjust multiple variable cells at once and apply several constraints, making it suited to more complex optimization problems.

Does Solver always find a solution?

Not always β€” if the constraints you set contradict each other or make no solution possible, Solver will report that no feasible solution was found, and you will need to adjust the conditions.