ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Productivity
  3. Solver in Excel: Find the Best Answer Within Limits

Solver in Excel: Find the Best Answer Within Limits

By ExcelReady Team·Updated November 3, 2026·6 min read

The short answer

Solver is an Excel add-in that finds the best values for a set of input cells, such as how many of each product to make for the most profit, while obeying limits you set. You give it an objective cell, the cells it may change and the constraints. Turn it on under Add-ins, then open it from the Data tab.

Key takeaways

  • Solver needs three things: an objective cell to maximise, minimise or hit, the variable cells it may change, and constraints.
  • Build the model with formulas first: SUMPRODUCT is ideal for total profit and resources used.
  • Use Simplex LP for linear models, GRG Nonlinear for smooth curves and Evolutionary for everything else.
  • Goal Seek changes one input to hit one value; Solver changes many inputs and respects limits.
On this page+
  1. What is Solver in Excel?
  2. How to turn on the Solver add-in
  3. Set up the model: inputs, formulas and limits
  4. Run Solver step by step
  5. Read the result
  6. Choose a solving method
  7. Solver vs Goal Seek
  8. Common Solver problems
  9. Practise it

Solver in Excel finds the best answer to a problem with limits: the product mix that earns the most profit, the cheapest way to staff a week, the budget split that stays under a cap. You build the model with ordinary formulas, then tell Solver what to maximise or minimise, which cells it may change and which limits it must respect. This guide is for analysts, planners and students who have outgrown trial and error, and it walks through a complete example.

What is Solver in Excel?#

Solver is an optimisation add-in that ships with desktop Excel for Windows and Mac. Optimisation means finding the best possible value of something, such as the highest profit or the lowest cost, while staying within limits.

Every Solver model has three parts:

PartWhat it isExample
ObjectiveThe one cell you want as high, as low, or as close to a value as possibleTotal profit
Variable cellsThe inputs Solver is allowed to changeHow many chairs and tables to make
ConstraintsLimits the answer must respectLabour hours ≤ 40, wood ≤ 60

Solver tries combinations of the variable cells, recalculates your formulas and keeps the best result that meets every constraint. It is the next step up from Goal Seek, which can only change one cell.

How to turn on the Solver add-in#

Solver is installed with Excel but switched off by default. Turn it on once and it stays on.

Windows:

  1. Go to File > Options > Add-ins.
  2. In the Manage box at the bottom, choose Excel Add-ins and click Go.
  3. Tick Solver Add-in and click OK.

Mac:

  1. Go to Tools > Excel Add-ins.
  2. Tick Solver Add-in and click OK.

Solver now appears on the Data tab, at the right-hand end in the Analyze group. These steps are for the desktop apps.

Set up the model: inputs, formulas and limits#

Solver only works on formulas, so build the model first. A small workshop makes chairs and tables. Each uses labour and wood, and both are limited:

ABCDE
1ProductProfitLabour hWood mQty
2Chair301220
3Table502210

The workshop has 40 labour hours and 60 metres of wood a week. Column E holds the quantities, the cells Solver will change. Start with any values; Solver will replace them.

Now add the formulas. SUMPRODUCT multiplies two ranges row by row and adds the results, so it's perfect here:

CellLabelFormulaResult
B5Total profit=SUMPRODUCT(B2:B3,E2:E3)1,100
B6Labour used=SUMPRODUCT(C2:C3,E2:E3)40
B7Wood used=SUMPRODUCT(D2:D3,E2:E3)60
C6Labour limit40
C7Wood limit60

Total profit is 30 × 20 + 50 × 10 = 1,100. For a long list of products you would write the same formula with longer ranges; the SUMPRODUCT guide and the SUMPRODUCT function reference explain it in detail. For a simple total of one column, a plain SUM does the job (see the SUM function guide).

Keep limits in their own cells, like C6 and C7, rather than typing them into Solver. Then you can change a limit and run Solver again.

Run Solver step by step#

With the model ready, open Data > Solver and fill in the dialog:

  1. Set Objective: $B$5 (total profit).
  2. To: choose Max.
  3. By Changing Variable Cells: $E$2:$E$3.
  4. Subject to the Constraints: click Add and enter $B$6 <= $C$6. Click Add again and enter $B$7 <= $C$7.
  5. Optionally add $E$2:$E$3 with the relation int, so you only get whole chairs and tables.
  6. Tick Make Unconstrained Variables Non-Negative, so Solver can't suggest making −5 tables.
  7. Select a Solving Method: Simplex LP, because every formula here is a simple multiplication.
  8. Click Solve.

Solver reports "Solver found a solution" and offers to Keep Solver Solution or Restore Original Values. Keep it.

Read the result#

Solver sets the quantities to 20 chairs and 10 tables, for a total profit of 1,100. Labour used is 40 of 40 and wood used is 60 of 60, so both limits are fully used.

You can check why this is the best mix by testing the extremes:

MixLabourWoodProfit
30 chairs, 0 tables3060900
0 chairs, 20 tables40401,000
20 chairs, 10 tables40601,100

Making only tables runs out of labour while wood is left over. Making only chairs runs out of wood while labour is left over. The mix uses both fully, so it earns the most. Solver finds this kind of answer in a fraction of a second, even with dozens of products and limits.

When Solver finishes, you can also ask for an Answer Report, which lists the final values and which constraints are binding (fully used).

Choose a solving method#

Solver has three methods, and the right one depends on your formulas:

  • Simplex LP: for linear models, where every result is inputs × fixed numbers added together. Product mix, budget allocation and simple shift plans are usually linear. It is fast and finds the true best answer.
  • GRG Nonlinear: for smooth curves, such as a price that changes with quantity or a growth formula with powers.
  • Evolutionary: for models with jumps, such as IF, VLOOKUP or rounding inside the formulas. It is slower and the answer may be very good rather than perfect.

If Simplex LP says the model isn't linear, switch to GRG Nonlinear.

Solver vs Goal Seek#

Both work backwards from a result, but they do different jobs:

Goal SeekSolver
Inputs it changesOne cellMany cells
GoalHit one exact valueMaximise, minimise or hit a value
LimitsNoneAs many constraints as you need
WhereData > What-If AnalysisData > Solver (add-in)

Use Goal Seek for questions like "what price makes profit exactly 5,000?", as in a break-even analysis. Use Solver when there are several choices and limits, such as splitting a project budget across tasks or building a shift schedule that covers every slot at the lowest cost.

Common Solver problems#

These are the usual reasons Solver fails or gives a strange answer:

  1. "Could not find a feasible solution." No mix meets every limit. Check each constraint's sign and that it points at the right cells.
  2. "The objective cell values do not converge." The objective can grow forever, usually because a limit is missing.
  3. Typed numbers instead of formulas. If B5 is a typed 1,100, Solver can't change it by changing E2:E3.
  4. Negative or fractional quantities. Tick the non-negative box and add an int constraint.
  5. Wrong method. Models with IF or lookups need GRG Nonlinear or Evolutionary.

Practise it#

Solver is only as good as the model underneath, and the model is built from SUM, SUMPRODUCT and clean references. Try the profit exercise on this page, then practise SUM in a live spreadsheet and build a full model in the department budget practice. Every answer is checked instantly. For a related planning project, see the monthly budget guide.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

This is the objective cell of a Solver model. Click B5 and use SUMPRODUCT to calculate total profit: profit per unit (B2:B3) times quantity (E2:E3). Press Enter.

fx
ABCDEF
1
Product
Profit
Labour h
Wood m
Qty
2
Chair
30
1
2
20
3
Table
50
2
2
10
4
5
Total profit
6
7
8

Tip: SUMPRODUCT multiplies the two ranges row by row and adds the results: 30 × 20 + 50 × 10.

Practise this in a lesson

LessonPractice: department budgetCombine SUM, AVERAGE, ROUND and absolute references in a realistic budget sheet.LessonSUM and AutoSumAdd up a column of numbers with SUM, then let AutoSum write the formula for you.Function guideSUMAdd up columns, rows and separate ranges with Excel's SUM function. Clear examples, common mistakes and a live practice exercise.Function guideSUMPRODUCTMultiply columns and add the results in one step with SUMPRODUCT. Totals, weighted averages, conditions, and a live exercise to try.

Frequently asked questions

How do I add Solver in Excel?

+

On Windows, go to File > Options > Add-ins, choose Excel Add-ins in the Manage box, click Go and tick Solver Add-in. On a Mac, go to Tools > Excel Add-ins and tick Solver Add-in. Solver then appears on the Data tab.

What is the difference between Goal Seek and Solver?

+

Goal Seek changes one input cell until a formula reaches a target value. Solver can change many input cells at once, can maximise or minimise instead of hitting one value, and respects constraints.

Why does Solver say it could not find a feasible solution?

+

No combination of inputs meets every constraint at once. Check for a constraint with the wrong sign, such as >= instead of <=, a limit typed in the wrong cell, or limits that conflict with each other.

Which solving method should I choose in Solver?

+

Choose Simplex LP when every formula is linear, such as quantities times fixed prices. Choose GRG Nonlinear for smooth curved relationships, and Evolutionary when the model uses functions like IF or VLOOKUP that jump between values.

Can Solver give whole numbers only?

+

Yes. Add a constraint on the variable cells and choose int as the relation. Solver then only returns whole numbers, which suits units, people or trucks.

Sources

  • SUMPRODUCT function - Microsoft Support
  • SUM function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What is Solver in Excel?
  2. How to turn on the Solver add-in
  3. Set up the model: inputs, formulas and limits
  4. Run Solver step by step
  5. Read the result
  6. Choose a solving method
  7. Solver vs Goal Seek
  8. Common Solver problems
  9. Practise it

Keep reading

Projects· 7 min read

Build a Project Budget in Excel

To build a project budget in Excel, list each cost line with a quantity and unit cost, multiply them for the budget (=C2*D2), and total the lines with SUM. Add a contingency as a percentage of the subtotal. Then enter actual costs and track the variance (=E2-F2) and the percentage used (=F2/E2) for each line.

Math· 6 min read

SUMPRODUCT in Excel: Multiply and Add in One Step

SUMPRODUCT multiplies matching items in two or more ranges and adds up the results. =SUMPRODUCT(C2:C7,D2:D7) multiplies each quantity by its price and returns the total, with no helper column. It also handles conditions, such as =SUMPRODUCT((B2:B7="North")*C2:C7*D2:D7), and works in every version of Excel.

Projects· 7 min read

Break-Even Analysis in Excel, Step by Step

For a break-even analysis in Excel, put fixed costs, price per unit and variable cost per unit in three cells. Break-even units = fixed costs / (price - variable cost), for example =B1/(B2-B3). Wrap it in ROUNDUP for whole units, then multiply by the price for break-even revenue. A profit table shows profit at each sales level.

More on productivity

  • Shortcut to Switch Sheets in Excel (Windows and Mac)
  • Text to Columns in Excel: Split One Column Into Many
  • Unpivot Data in Excel With Power Query
  • View Two Excel Sheets Side by Side
  • What-If Analysis in Excel: Build a Data Table
  • How to Use ChatGPT for Excel Formulas (and Check Them)
All productivity articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free