Excel Practice Test

โ–ถ

Excel Solver is one of those tools that sits inside Excel quietly, doing nothing, until you switch it on. Once you do, it turns a regular spreadsheet into a small optimization engine. You hand it an objective, a few decision cells, and a list of rules, and it works out the best answer for you. No guesswork, no manual trial and error. The same engine that powers university operations-research courses lives inside the spreadsheet you already own.

If you've ever tried to figure out the best product mix, the cheapest shipping plan, or the smartest way to split a budget, you'll know how painful that gets with pure formulas. Solver handles it. This guide walks you through what it does, how to switch it on, how to use the three solving methods, and how to read the reports it spits out. You'll also see a full production-mix example you can copy and tweak for your own numbers.

By the end of this guide, you'll know how to enable Solver, pick between Simplex LP, GRG Nonlinear, and Evolutionary methods, write constraints correctly, run a production-mix optimization, and read Answer and Sensitivity reports. You'll also see common errors and how to fix them fast. Pair what you learn here with an Excel dashboard and you can turn optimization results into something the whole team can read at a glance.

So what exactly is Solver? It's a free, built-in Microsoft Excel add-in for solving optimization problems. You give it a target cell (say, total profit), tell it which cells it can change (units to produce), and lay down the constraints (labor hours, material limits, demand caps). It then searches for the values that make your target as big or as small as possible, while staying inside every rule. Operations researchers, finance pros, supply chain planners, and engineers all lean on it. So do students learning linear programming for the first time.

Under the hood, Solver was built by Frontline Systems and licensed to Microsoft back in the early 1990s. The same company sells more powerful versions today. The basic engine handles three big classes of problems: linear, smooth nonlinear, and non-smooth. Each gets its own algorithm. You don't need to know the math to use them. You do need to pick the right one for your model, or the solve will fail or return a useless answer.

Compared with building your own search loop in VBA or Python, Solver is a shortcut. It hides the math and gives you a clean dialog box. The trade-off? It has limits. Around 200 variables, 100 to 200 constraints, and roughly 30 integer variables. Past that, you'll want premium versions or a different tool. For most business problems, those limits don't bite. A weekly production plan rarely needs more than 50 decision cells.

What Excel Solver Can Solve

๐Ÿ”ด Linear Programming
  • Use Case: Optimal product mix with linear constraints
  • Method: Simplex LP
  • Speed: Fast, exact solution
๐ŸŸ  Mixed-Integer Programming
  • Use Case: Capital budgeting, scheduling
  • Method: Simplex LP with int/bin constraints
  • Speed: Slower than continuous LP
๐ŸŸก Nonlinear Optimization
  • Use Case: Smooth nonlinear objectives or constraints
  • Method: GRG Nonlinear
  • Speed: Moderate, may find local optimum
๐ŸŸข Combinatorial Problems
  • Use Case: Discrete yes/no choices, routing
  • Method: Evolutionary
  • Speed: Slow but flexible
๐Ÿ”ต Portfolio Optimization
  • Use Case: Max return, min risk asset mix
  • Method: GRG Nonlinear
  • Speed: Fast for small portfolios
๐ŸŸฃ Transportation
  • Use Case: Shipping route cost minimization
  • Method: Simplex LP
  • Speed: Very fast

Solver isn't switched on by default. You have to flip it on once, then it sticks around. Here's the click path: File, Options, Add-ins. At the bottom of the Add-ins screen, where it says "Manage: Excel Add-ins," hit Go. Tick the box next to "Solver Add-in" and press OK. That's it. Head over to the Data tab and you'll see Solver sitting in the Analyze group on the right side of the ribbon. Click it, and the dialog opens.

On a Mac? Same idea. Tools menu, Excel Add-ins, tick Solver. Done. If you're on Excel for Web, bad news: Solver isn't there. You need the desktop version.

How to Enable Solver Step by Step

settings

Click File, then Options at the bottom of the left rail.

puzzle

In the Excel Options window, click Add-ins on the left side.

list

At the bottom, set Manage to Excel Add-ins and click Go.

check

Check the Solver Add-in box in the popup and click OK.

play

Switch to the Data tab. Solver now lives in the Analyze group on the far right.

Once Solver is open, the dialog can look busy. Don't let it scare you. There are really only four pieces you have to fill in, plus one dropdown to pick the method. Set Objective is the cell you want to make big, small, or equal to a specific number. To is the direction: Max, Min, or Value Of. By Changing Variable Cells is where your decision cells go, the ones Solver is allowed to tweak. Subject to Constraints is your list of business rules.

Then there's Solving Method. Three options. Simplex LP for linear problems, GRG Nonlinear for smooth curves, Evolutionary for messy stuff with IF, ABS, or OR. Pick wrong and Solver might still find an answer, but it'll be slow or just plain wrong. The Options button lets you tweak tolerance, iteration limits, and precision if you need finer control.

Solver Dialog Box: What Each Field Does

๐Ÿ”ด Set Objective
  • What It Is: The cell holding your target value
  • Example: Total profit, total cost, ROI
๐ŸŸ  To
  • Options: Max, Min, Value Of
  • Example: Max for profit, Min for cost
๐ŸŸก By Changing Variable Cells
  • What It Is: Cells Solver can adjust
  • Example: Units to produce, allocation %
๐ŸŸข Subject to Constraints
  • What It Is: Business rules Solver must respect
  • Operators: <=, =, >=, int, bin, dif
๐Ÿ”ต Solving Method
  • Options: Simplex LP, GRG Nonlinear, Evolutionary
  • Default: GRG Nonlinear
๐ŸŸฃ Options Button
  • What It Does: Tolerance, iterations, precision
  • Usually: Leave at defaults

Three Solving Methods Compared

๐Ÿ“‹ Simplex LP

Simplex LP is your go-to for linear programming. Both the objective and every constraint must be linear, meaning no multiplication of decision variables, no IF, no ABS, no nonlinear math. When the model qualifies, Simplex is fast and finds the exact optimal solution every time.

Use it for production planning, transportation, blending problems, and resource allocation. If you're maximizing profit by choosing how many of products A, B, and C to make, with labor and material caps, this is the method. It also gives you the richest reports, including Sensitivity, which only works with Simplex LP.

๐Ÿ“‹ GRG Nonlinear

GRG Nonlinear stands for Generalized Reduced Gradient. It handles smooth nonlinear functions, things like x squared, square roots, and exponents. It's the default method when you open Solver because most real-world problems have at least one nonlinear piece.

The catch: GRG can land on a local optimum, not the global one. Try different starting values to see if it changes. It's perfect for portfolio optimization with a quadratic risk term, curve fitting, and engineering design. Sensitivity reports here are limited compared to Simplex.

๐Ÿ“‹ Evolutionary

Evolutionary is a genetic algorithm. It throws random candidate solutions at the problem, picks the best, and mutates them. It's slow, but it doesn't care if your model uses IF, ABS, OR, VLOOKUP, or other non-smooth functions. Anything else fails on this kind of model.

Use Evolutionary for scheduling, routing, and any problem where the formula graph has jumps or kinks. Always set bounds on your decision cells, or it'll wander forever. It rarely guarantees the true global optimum, so run it a few times with different starting points.

Let's walk through a classic example so the abstract bits land. Picture a small factory making three products: A, B, and C. Each unit of A makes $10 in profit, B makes $15, and C makes $20. Sounds like a no-brainer โ€” make all C, right? Not so fast. C eats 12 hours of labor and 4 pounds of material per unit. You only have 100 labor hours and 50 pounds of material this week. Plus, the market only wants 10 As, 8 Bs, and 5 Cs at most. Suddenly the math gets interesting.

This is exactly the kind of puzzle Solver was built for. You set up the worksheet with a row for each product, columns for profit, labor needed, material needed, demand cap, and a decision cell for units to make. Your objective cell totals up profit using SUMPRODUCT. Open Solver, point it at the profit cell, set to Max, pick the decision cells, add your constraints, choose Simplex LP, and click Solve. A few seconds later, the optimal mix appears in the decision cells.

Try this by hand and you'd be stuck for an afternoon, sketching tables and crossing out combinations. Solver finishes in under a second. That's the magic. The same template scales: swap in twenty products, ten resources, and a handful of customer-specific demand caps, and Solver still cracks it. The setup discipline matters more than the size. Label every row clearly, keep formulas one cell away from raw inputs, and lock the inputs into a single area so anyone can update them next quarter without breaking the model.

Production Mix Example: Inputs at a Glance

๐Ÿ”ด Product A
  • Profit per Unit: $10
  • Labor per Unit: 5 hours
  • Material per Unit: 2 lbs
  • Max Demand: 10 units
๐ŸŸ  Product B
  • Profit per Unit: $15
  • Labor per Unit: 8 hours
  • Material per Unit: 3 lbs
  • Max Demand: 8 units
๐ŸŸก Product C
  • Profit per Unit: $20
  • Labor per Unit: 12 hours
  • Material per Unit: 4 lbs
  • Max Demand: 5 units
๐ŸŸข Shared Constraints
  • Total Labor: <= 100 hours
  • Total Material: <= 50 lbs
  • Units: Integer, >= 0

Production Mix: Full Walkthrough

grid

Rows for A, B, C with profit, labor, material, demand columns.

edit

One cell per product showing units to produce. Start at 0.

calculator

Total profit = SUMPRODUCT of units and profit per unit.

play

Data tab, Analyze group, click Solver.

target

Point Solver at the total profit cell, choose Max.

cells

Select the three units-to-produce cells.

lock

Labor <= 100, material <= 50, demand caps, integer, >= 0.

method

Linear objective and constraints means Simplex is the right call.

check

Click Solve. Review the answer report, accept the solution.

Constraints are where Solver beginners trip up. Excel lets you use six operators inside the Add Constraint dialog: less than or equal to, equal to, greater than or equal to, int for whole numbers, bin for binary 0 or 1, and dif for all-different values. You'll use the first three most. The int and bin operators come into play when units must be whole or when you're modeling yes/no decisions like opening a warehouse, picking a vendor, or choosing whether to run a marketing campaign in a given week.

The dif operator is the odd one out. It forces every cell in a range to take a different value, which is handy for permutation problems like sudoku or scheduling exam slots. Watch out: each non-trivial constraint slows Solver down, and integer constraints slow it down a lot. If your solve takes more than a minute, look for redundant constraints first. Often two rules say almost the same thing, and dropping one cuts the search space in half. Group similar constraints with named ranges so you can see the structure at a glance.

Constraint Operators Cheat Sheet

<= (less than or equal): use for limits like labor <= 100
= (equal): use when a quota must be hit exactly
>= (greater than or equal): use for minimums like demand >= 10
int (integer): force whole numbers for unit counts
bin (binary): force 0 or 1 for yes/no decisions
dif (different): force unique values across a range
Always add >= 0 for production cells to stop negative results
Keep constraint count low; integer constraints especially slow the solve

When Solver finishes, it asks if you want to keep the solution and offers three reports: Answer, Sensitivity, and Limits. Tick all three boxes the first time you solve. Each lands on a new tab in your workbook. The Answer Report lists final values, original values, and how much slack you had on each constraint. Slack of 0 means a constraint is binding, so it's actively limiting your solution. Slack greater than 0 means you have wiggle room and that resource isn't fully used.

Sensitivity Report is the real gem, but only Simplex LP gives you the full version. It shows shadow prices โ€” how much your objective would change if you loosened a constraint by one unit. If labor has a shadow price of $1.25, every extra hour of labor adds $1.25 in profit. That's how you decide whether overtime is worth it. If overtime pay is $1.50 an hour, skip it. If it's $0.80, work the extra hours. The Limits Report shows how high or low each decision variable can go without breaking the solution, useful for stress-testing your plan.

Reports also help with explaining results to non-technical stakeholders. Print the Answer Report, highlight the binding constraints, and you've got a clear story: "We're maxed out on material; investing in more would unlock $X in additional profit." That kind of dollar-value insight makes Solver indispensable in operations meetings. Take the time to interpret reports rather than just accepting the numbers, and Solver pays you back many times over.

Solver by the Numbers

200
Variable limit in standard Solver
100
Constraint limit for Simplex LP
30
Practical integer variable limit
3
Solving methods: Simplex, GRG, Evolutionary
$0
Cost; Solver ships free with Excel
8,000+
Variable limit with Frontline Premium Solver

Solver throws a few error messages you'll meet sooner or later. The most common: "Solver could not find a feasible solution." Translation โ€” your constraints contradict each other. Maybe you said labor must be at least 120 hours but you only have 100. Loosen something, or open the Answer Report to see which constraints are tight. "The objective cell values do not converge" usually means your problem is unbounded; profit can grow forever because you forgot an upper limit. Add one. A missing demand cap is the classic culprit here.

"The set cell values do not converge" is a GRG problem. The nonlinear search bounces around without settling. Try a different starting point, or switch to Evolutionary if the model has IF or ABS. Hash-style errors like #REF! or #VALUE! mean your formulas have bugs before Solver even ran. Fix the worksheet first. Run a quick sanity check by computing the objective manually for a known input. If Excel and your calculator disagree, the bug is in the worksheet, not in Solver.

Another quiet trap: Solver doesn't always tell you the answer is just a local optimum. With GRG Nonlinear, the algorithm climbs the nearest hill and stops. There could be a taller hill on the other side of the valley. The cure is multistart โ€” re-run with several random starting points and keep the best result. Premium Solver does this automatically. In the free version, you do it by hand or with a small VBA loop.

Common Solver Problem Types

๐Ÿ“‹ Linear & Integer

Linear programming covers production mix, blending, and transportation. Mixed-integer programming adds whole-number rules for things like capital budgeting (invest in project or not) and shift scheduling. Both lean on Simplex LP with integer constraints layered on top.

Integer problems are NP-hard in theory, which means they get slow fast as you add variables. In practice, Excel handles up to ~30 integer variables comfortably. Past that, expect long solves or no answer.

๐Ÿ“‹ Portfolio & Assignment

Portfolio optimization picks the asset mix that maximizes return for a given risk level. The risk side uses a quadratic formula, so you'll need GRG Nonlinear. Assignment problems pair workers with tasks, machines with jobs, or trucks with routes. They're usually linear and binary, so Simplex LP fits.

Network flow problems โ€” shortest path, max flow, min cost flow โ€” are also linear. A spreadsheet of nodes and arcs with flow variables and balance constraints is all you need.

๐Ÿ“‹ Curve Fitting

Curve fitting fits a parametric equation to data. Put your parameters in cells, write the predicted-value formula, compute the squared residuals, and tell Solver to minimize the sum. Use GRG Nonlinear.

That said, Excel's built-in TREND, LINEST, and the Analysis ToolPak Regression are faster for linear curves. Save Solver for nonlinear fits where those tools can't help.

Now let's compare Solver to its cousins. Goal Seek lives one menu away in Data, What-If Analysis. It's a one-shot tool: one input cell, one target cell, find the input that hits the target. That's it. No constraints, no multiple variables. If you just want to know what discount rate makes your NPV exactly zero, Goal Seek is perfect. Loan calculators love it. So do break-even analyses.

What-If Analysis goes further with Data Tables and Scenario Manager. Data Tables vary one or two inputs and show a grid of outcomes. Scenarios save sets of inputs. Neither finds optimal values, though. They just show you what happens if. Solver is the only built-in tool that searches for the best answer across many variables with rules. For richer comparisons, a pivot table in Excel alongside scenario outputs can summarize patterns quickly.

You can mix tools, too. Build a base model, run Solver to find the optimal plan, then drop a Data Table next to it to see how sensitive that plan is to small input changes. Or save several Solver runs as Scenarios so a manager can flip between them. Stacking the tools this way gives you both an answer and the context around it.

Excel Solver: Pros and Cons

Pros

  • Free and built into Excel; no extra cost
  • Handles linear, nonlinear, and combinatorial problems
  • Clean GUI; no programming needed
  • Three solving methods cover most business cases
  • Sensitivity reports help with decision making
  • Easy to combine with VBA for automation

Cons

  • Capped at ~200 variables and ~100 constraints
  • Integer-heavy models slow down fast
  • GRG can land on local optimum, not global
  • Not available in Excel for Web
  • Limited reports for non-Simplex methods
  • Premium upgrade needed for large enterprise problems

Sensitivity analysis is worth its own paragraph because it's the part most people skip. After a Simplex LP solve, the Sensitivity Report tab gives you shadow prices and allowable ranges. Shadow prices tell you the marginal value of each constraint. A shadow price of $3 on material says one extra pound of material adds $3 to profit. If material costs $2 a pound, buy more. If it costs $4, don't. Simple decision, real money.

Allowable increase and decrease show how much each coefficient or constraint can shift before the optimal mix has to change. If your labor cap can go from 100 hours up to 130 with the same product mix staying optimal, you've got room. Past 130, Solver would pick different products. This kind of insight is what turns Solver from a calculator into a strategy tool. To visualize ranges, try conditional formatting in Excel on the report so the binding constraints jump out in red.

Beyond business, Solver shows up in plenty of fields. Energy firms use it for fuel mix and load dispatch. Hospitals use it for nurse scheduling, balancing seniority, shift preferences, and minimum staffing rules. Universities use it for course timetables, juggling room capacity, professor availability, and student demand. Marketing teams allocate budgets across channels with it. Even small e-commerce sellers run it to pick which SKUs to stock given storage and cash limits.

If you're already comfortable with formulas, picking up Solver takes maybe an hour. Our Excel formulas cheat sheet covers SUMPRODUCT, INDEX, MATCH, and the other workhorses you'll plug into Solver-driven models. Logic-heavy setups often rely on multiple IF statements, but remember those force you to use Evolutionary instead of Simplex. Plan your formulas around the method you want to use, not the other way round. Smart modelers keep the objective and constraints purely linear when they can, then handle messy logic in a pre-processing step before Solver ever sees the model.

Solver Tips That Save Hours

Start small. Get a 2-variable model working before you scale up
Verify formulas before solving; bugs there break everything downstream
Use named ranges; constraints read much cleaner
Always add a non-negativity rule unless negatives make sense
Try Simplex LP first; it's faster and gives Sensitivity reports
Switch to GRG only when the model is genuinely nonlinear
Use Evolutionary only when you have IF, ABS, OR, or VLOOKUP in the model
Run from different starting points to spot local optima
Save model setup with Solver's Save Model button for reuse
Generate all three reports the first time; you'll learn faster
Excel Certification Practice Test

What about Excel versions and platforms? Solver ships with Excel 2016, 2019, 2021, and Microsoft 365 on Windows and Mac. It's the same engine on both. Excel for Web does not include Solver, and neither do the mobile apps. If your team works mostly online, that's worth knowing. Sometimes the workaround is to build the model in the desktop app, save, and view results online. Power Automate and Office Scripts can trigger a desktop solve and post results back, if you want to bridge the gap.

For bigger problems, Frontline Systems โ€” the company that builds Solver โ€” sells Premium Solver. It goes from a few hundred dollars to several thousand depending on the edition and supports thousands of variables, more constraints, and faster solves. Open-source alternatives exist too. OpenSolver is a free Excel add-in built on COIN-OR that pushes well past 200 variables. Outside Excel, Python with PuLP or SciPy gives you free industrial-strength optimization if you can code. Pick the tool that fits your problem size and team skills, not the other way around.

Free Excel Functions Questions and Answers

One last practical note: Solver plays nicely with VBA. You can record or write a macro that fills the Solver dialog, runs the solve, and grabs the result. That's how teams build repeatable optimization tools. Picture a weekly production planner where the user clicks one button, Solver runs against fresh demand and inventory data, and the spreadsheet writes the plan to a tab. No menu clicking, no missed constraints. The VBA reference is SolverOk, SolverAdd, SolverSolve, SolverFinish. Worth learning once if you'll run the same model more than a few times.

If you're worried about reproducibility, save the model with Solver's Save Model button. It writes the objective, variables, constraints, and method into a hidden range on the sheet. You can load it back later with Load Model. Pair that with a documented set of assumptions on a notes tab and your future self (or your replacement) will thank you. Optimization models age poorly without notes; six months later, no one remembers why constraint 7 was set to 42.

Bottom line: Excel Solver is a small, free piece of software with disproportionate power. Switch it on, pick the right method, lay down clean constraints, and read the reports. You'll solve problems that used to take days in minutes. Start with the production-mix example above, plug in your own numbers, and go from there.

Free Excel Basic and Advanced Questions and Answers

Excel Solver Questions and Answers

Is Excel Solver free?

Yes. Solver is a built-in add-in that ships with desktop Excel at no extra cost. You just have to enable it once via File, Options, Add-ins.

Why can't I find Solver on the Data tab?

It's not enabled yet. Go to File, Options, Add-ins. Set Manage to Excel Add-ins, click Go, tick Solver Add-in, and click OK. Solver will appear in the Analyze group on the Data tab.

Which Solver method should I pick?

Start with Simplex LP if your objective and constraints are all linear. Use GRG Nonlinear when you have smooth nonlinear math. Pick Evolutionary when the model uses IF, ABS, OR, or VLOOKUP.

How many variables can Solver handle?

The built-in version caps at around 200 decision variables and 100 to 200 constraints depending on method. About 30 integer variables is the practical ceiling. Larger problems need Premium Solver or OpenSolver.

What's the difference between Solver and Goal Seek?

Goal Seek changes one cell to hit a target in another cell. Solver changes many cells, respects constraints, and finds the best answer rather than just any answer.

Why does Solver say 'Could not find a feasible solution'?

Your constraints contradict each other. Loosen one, drop a redundant rule, or check for typos. The Answer Report shows which constraints are tight, which helps you find the conflict.

Can I run Solver from VBA?

Yes. Use SolverOk, SolverAdd, SolverReset, and SolverSolve from a macro. You'll need to enable the Solver reference in the VBA editor: Tools, References, tick Solver.

Does Solver work in Excel for the Web?

No. Solver only runs in desktop Excel on Windows and Mac. You can open and view solved models in Excel for the Web, but you can't run new optimizations there.
โ–ถ Start Quiz