Excel Practice Test

โ–ถ

If the Solver add-in is missing, unlisted, or failing, first confirm it is ticked under File > Options > Add-ins > Manage: Excel Add-ins > Go (Tools > Excel Add-ins on Mac), and use Browse if it is not listed. If Solver runs but reports "could not find a feasible solution" or "linearity conditions not satisfied", the problem is the model, meaning constraints, bounds or the chosen solving method, not the add-in.

The excel solver add in is one of the most powerful yet underused tools bundled with Microsoft Excel, transforming the spreadsheet from a simple calculation engine into a full-featured optimization platform. Whether you are a finance analyst trying to minimize portfolio risk, an operations manager balancing production schedules, or a student tackling linear programming homework, Solver finds the best possible answer to problems that would otherwise require expensive specialized software. It works by adjusting decision variables you specify until an objective cell reaches a maximum, minimum, or specific target value while honoring every constraint you define.

Solver ships with desktop Excel but remains hidden by default. Users must explicitly enable it through the Add-Ins dialog before the command appears on the Data tab. This gatekeeping reflects its specialized nature, but enabling it only takes a few clicks once you know where to look. After enabling, you gain access to three distinct solving engines, each tuned for a different class of problem from linear programming to smooth nonlinear functions to evolutionary algorithms for truly chaotic relationships.

Microsoft states that you can specify up to 200 variable cells in Solver, which is enough for most business scenarios. Solver is free, and portions of its code are copyright Frontline Systems, per Microsoft's documentation. The native version, however, comfortably handles capital budgeting, transportation routing, employee scheduling, blending problems, regression curve fitting, and dozens of other classic operations research applications without any additional cost or licensing.

One reason Solver feels intimidating is that it borrows vocabulary from mathematical optimization rather than everyday spreadsheet work. Terms like objective function, decision variables, binding constraints, dual values, and reduced costs can scare off casual users. In reality, these concepts map cleanly to familiar Excel ideas. The objective is just a formula cell you want optimized. Decision variables are the inputs Solver is allowed to change. Constraints are simple cell comparisons such as B5 less than or equal to 1000. Once you see the translation, the dialog box becomes friendly.

Beyond solving the problem, the add-in can produce Answer, Sensitivity, and Limits reports when you use the Simplex LP or GRG Nonlinear method (Evolutionary produces Answer and Population reports). These reports reveal which constraints are actively pinching the solution, how much the objective would improve if a constraint were relaxed by one unit, and the range over which the optimal solution remains stable. For decision makers, sensitivity analysis is often more valuable than the optimal answer itself because it shows where to invest additional resources or which inputs deserve the most attention.

This guide walks through everything from the initial activation steps to advanced techniques like writing VBA macros that automate Solver runs across multiple scenarios. You will learn how to choose between the GRG Nonlinear, Simplex LP, and Evolutionary engines, how to diagnose the dreaded "Solver could not find a feasible solution" message, and how to model integer and binary variables for problems that require yes-or-no decisions. By the end you will treat Solver as a routine analytical companion rather than an obscure menu item.

Excel Solver by the Numbers

๐Ÿ“Š
200
Max Variable Cells
โš™๏ธ
3
Solving Methods
๐Ÿ”—
6
Constraint Relations
๐Ÿ’ป
Free
Cost

Solver result messages and what to check

SolverSolve return valueMessage shownWhat to check
3Stopped at the maximum iteration limitRaise Iterations under Options
4The Objective Cell values do not convergeAdd realistic upper and lower bounds
5Solver could not find a feasible solutionCheck constraints for conflicts; VBA ReportArray 1 = Feasibility report
7Linearity conditions required by this LP Solver are not satisfiedSwitch to GRG Nonlinear or remove nonlinear formulas; ReportArray 1 = Linearity report
8The problem is too large for Solver to handleReduce variable cells (limit 200)
9Solver encountered an error value in a target or constraint cellFix the #REF!, #VALUE! or other error in the cell
10Stopped at the maximum time limitRaise Max Time under Options
18All variables must have both upper and lower boundsBound every variable cell
20Lower and upper bounds on variables allow no feasible solutionRecheck bounds against constraints

Sources: Microsoft Learn, SolverSolve and SolverFinish functions; Microsoft Support, "Load the Solver add-in in Excel." The "What to check" column is guidance, not Microsoft text.

Try Free Excel Solver Add-In Practice Questions

How to Install and Activate the Solver Add-In

โš™๏ธ

Click the File menu in the ribbon and select Options at the bottom of the left navigation panel. This opens the Excel Options dialog where every customization including add-ins lives. On Mac, choose Tools, then Excel Add-Ins, instead.

๐Ÿ”Œ

Inside Excel Options select Add-Ins from the left sidebar. At the bottom you will see a Manage dropdown set to Excel Add-Ins by default. Click the Go button next to that dropdown to launch the small Add-Ins dialog that lists every available extension.

โœ…

In the Add-Ins dialog tick the checkbox next to Solver Add-In and press OK. Excel may prompt to install the component the first time. Click Yes to install it if prompted.

๐ŸŽฏ

Switch to the Data tab on the Excel ribbon. The Solver command now appears in the Analysis group. If you do not see it, reopen File, Options, Add-ins, click Go, and confirm the Solver Add-in box is ticked.

๐Ÿงช

Click Solver to open the Solver Parameters dialog. Confirm that the Set Objective field, Changing Variable Cells field, and Subject to the Constraints box are all visible. If Excel says Solver is not installed, click Yes to install it, or use Browse in the Add-ins dialog to locate the add-in.

Once Solver appears on the Data tab, opening it reveals the Solver Parameters dialog, the command center for every optimization task. The dialog is divided into regions that match the anatomy of an optimization problem. At the top sits the Set Objective field, where you point Solver at the single cell containing the formula you want pushed to its best possible value. Just below are three radio buttons labeled Max, Min, and Value Of, letting you tell Solver whether to maximize profit, minimize cost, or hit an exact target number.

The next region is the By Changing Variable Cells field. Here you enter the cell or range that Solver is permitted to modify in search of the optimum. These cells should already contain starting values that feed into the objective through your formulas. Solver will overwrite them repeatedly during its iterations, so always save a copy of the original numbers before solving. You can list non-contiguous ranges by separating them with commas, which is useful when decision variables are scattered across the worksheet.

Beneath the variable cells field lives the Subject to the Constraints list box, where you add the inequalities and equalities that bound the problem. Clicking Add opens a small sub-dialog with three fields: Cell Reference, the comparison operator, and the Constraint value. The operator dropdown includes the familiar mathematical symbols plus three special keywords. The int keyword forces a cell to be an integer, bin restricts it to binary 0 or 1, and dif tells Solver that all cells in a range must be different values, a powerful feature for assignment problems.

Below the constraints list you find the Make Unconstrained Variables Non-Negative checkbox. Ticking this is equivalent to adding a constraint that every decision variable must be greater than or equal to zero, a common requirement in business modeling where you cannot produce negative units or hire negative employees. Leaving the box unchecked allows negative values, which matters in financial models that involve short positions, debt, or losses. Decide deliberately based on the meaning of your variables.

The Select a Solving Method dropdown is where you pick the engine. GRG Nonlinear is the default and works for smooth functions with derivatives. Simplex LP is the fastest choice when every relationship in the model is strictly linear. Evolutionary handles non-smooth functions with IF statements, lookups, or step-change formulas but at the cost of slower runtimes. Choosing wrong does not break the model, it simply leads to worse answers or longer waits, so pick deliberately.

Finally, the Options button reveals settings such as Max Time, Iterations, Constraint Precision, Multistart and Integer Optimality. Most users never need to touch them, but knowing they exist helps when default behavior produces strange results. For example, raising the Max Time setting helps with large integer programs that need extra search effort, and lowering Constraint Precision helps when constraint boundary rounding causes Solver to declare infeasibility.

The Load and Save buttons at the bottom let you store complete Solver configurations as ranges on the worksheet. This is invaluable when a workbook contains multiple optimization scenarios. You can build a dashboard with five different load buttons that swap between marketing budget allocation, inventory reorder points, staffing schedules, blending ratios, and production mix, all using the same underlying data but with different objectives and constraint sets.

Microsoft Excel Practice Test Questions

Prepare for the Microsoft Excel exam with our free practice test modules. Each quiz covers key topics to help you pass on your first try.

Microsoft Excel Excel Basic and Advance
Microsoft Excel Exam Questions covering Excel Basic and Advance. Master Microsoft Excel Test concepts for certification prep.
Microsoft Excel Excel Formulas
Free Microsoft Excel Practice Test featuring Excel Formulas. Improve your Microsoft Excel Exam score with mock test prep.
Microsoft Excel Excel Functions
Microsoft Excel Mock Exam on Excel Functions. Microsoft Excel Study Guide questions to pass on your first try.
Microsoft Excel Excel MCQ
Microsoft Excel Test Prep for Excel MCQ. Practice Microsoft Excel Quiz questions and boost your score.
Microsoft Excel Excel
Microsoft Excel Questions and Answers on Excel. Free Microsoft Excel practice for exam readiness.
Microsoft Excel Excel Trivia
Microsoft Excel Mock Test covering Excel Trivia. Online Microsoft Excel Test practice with instant feedback.
Microsoft Excel Advanced Data Analysis Tools
Free Microsoft Excel Quiz on Advanced Data Analysis Tools. Microsoft Excel Exam prep questions with detailed explanations.
Microsoft Excel Advanced Formula and Macro...
Microsoft Excel Practice Questions for Advanced Formula and Macro Creation. Build confidence for your Microsoft Excel certification exam.
Microsoft Excel Advanced Formulas and Macros
Microsoft Excel Test Online for Advanced Formulas and Macros. Free practice with instant results and feedback.
Microsoft Excel Basic and Advance Question...
Microsoft Excel Study Material on Basic and Advance Questions and Answers. Prepare effectively with real exam-style questions.
Microsoft Excel Creating and Managing Charts
Free Microsoft Excel Test covering Creating and Managing Charts. Practice and track your Microsoft Excel exam readiness.
Microsoft Excel Data Visualization with Ch...
Microsoft Excel Exam Questions covering Data Visualization with Charts. Master Microsoft Excel Test concepts for certification prep.
Microsoft Excel Formulas and Functions
Free Microsoft Excel Practice Test featuring Formulas and Functions. Improve your Microsoft Excel Exam score with mock test prep.
Microsoft Excel Formulas and Functions App...
Microsoft Excel Mock Exam on Formulas and Functions Application. Microsoft Excel Study Guide questions to pass on your first try.
Microsoft Excel Formulas Questions and Ans...
Microsoft Excel Test Prep for Formulas Questions and Answers. Practice Microsoft Excel Quiz questions and boost your score.
Microsoft Excel Functions Questions and An...
Microsoft Excel Questions and Answers on Functions Questions and Answers. Free Microsoft Excel practice for exam readiness.
Microsoft Excel Managing Data Cells and Ra...
Microsoft Excel Mock Test covering Managing Data Cells and Ranges. Online Microsoft Excel Test practice with instant feedback.
Microsoft Excel Managing Tables and Data
Free Microsoft Excel Quiz on Managing Tables and Data. Microsoft Excel Exam prep questions with detailed explanations.
Microsoft Excel Managing Tables and Table ...
Microsoft Excel Practice Questions for Managing Tables and Table Data. Build confidence for your Microsoft Excel certification exam.
Microsoft Excel Managing Worksheets and Wo...
Microsoft Excel Test Online for Managing Worksheets and Workbooks. Free practice with instant results and feedback.
Microsoft Excel MCQ Questions and Answers
Microsoft Excel Study Material on MCQ Questions and Answers. Prepare effectively with real exam-style questions.
Microsoft Excel Questions and Answers
Free Microsoft Excel Test covering Questions and Answers. Practice and track your Microsoft Excel exam readiness.
Microsoft Excel Trivia Questions and Answers
Microsoft Excel Exam Questions covering Trivia Questions and Answers. Master Microsoft Excel Test concepts for certification prep.
Microsoft Excel Workbook and Worksheet Man...
Free Microsoft Excel Practice Test featuring Workbook and Worksheet Management. Improve your Microsoft Excel Exam score with mock test prep.

Solver Methods Compared: Which Engine Fits Your Model

๐Ÿ“‹ GRG Nonlinear

GRG Nonlinear stands for Generalized Reduced Gradient and is the workhorse method for smooth nonlinear problems. It uses calculus-based gradient information to climb toward an optimum, which means it converges quickly when the underlying functions are continuous and differentiable. Typical applications include curve fitting, portfolio optimization with quadratic risk terms, and production models with diminishing returns where revenue functions involve exponents or logarithms.

The main limitation of GRG is that it finds local optima, not necessarily global ones. If your objective has multiple peaks, GRG will climb the nearest one and stop. To mitigate this, enable the Multistart option in the GRG settings, which tests multiple starting points. Multistart adds runtime but gives Solver more chances to escape a poor local optimum.

๐Ÿ“‹ Simplex LP

Simplex LP is the method Microsoft recommends when every formula in your model is strictly linear, meaning no multiplication of decision variables, no IF statements, no lookups, no exponents, and no nonlinear functions. The Simplex algorithm pioneered by George Dantzig in 1947 walks methodically along the edges of the feasible region until it lands on the optimal vertex. For a linear program, a local optimum is also the global optimum.

Use Simplex LP for problems like product mix maximization, transportation cost minimization, blending raw materials to meet nutrient minimums, and capital budgeting under a single linear budget constraint. The engine also handles integer constraints through a branch-and-bound wrapper, allowing you to solve mixed integer linear programs. If Solver returns the message that linearity conditions are not met, switch to GRG Nonlinear or audit your formulas for hidden nonlinearity.

๐Ÿ“‹ Evolutionary

The Evolutionary engine uses genetic algorithm principles to handle problems with non-smooth or discontinuous functions where gradient methods fail. It maintains a population of candidate solutions, evaluates their fitness, and applies mutation and crossover operations to evolve better solutions over many generations. This makes it ideal for models containing IF statements, VLOOKUP, INDEX-MATCH, MIN, MAX, ABS, ROUND, or any other function that introduces sudden jumps.

The trade-off is speed and certainty. Evolutionary runs are typically slower and offer no mathematical guarantee of optimality. Solver may stop with "All variables must have both upper and lower bounds", so set both bounds on every variable and run the engine more than once to check the answer is stable. Evolutionary can handle problems the other methods cannot, such as routing puzzles, scheduling with shift rules, and pricing with tiered breakpoints.

Should You Use Excel Solver or Dedicated Optimization Software?

Pros

  • Free add-in for desktop Excel
  • Tight integration with existing spreadsheet models and dashboards
  • Handles linear, nonlinear, and non-smooth problems in one tool
  • Produces Answer, Sensitivity, and Limits reports on request (Simplex LP and GRG)
  • Easy collaboration since other Excel users can open your model
  • Supports integer, binary, and all-different variable constraints
  • VBA automation lets you batch run many scenarios

Cons

  • Standard Solver accepts up to 200 variable cells
  • Evolutionary engine offers no guarantee of finding the global optimum
  • Multiple optima or degeneracy can cause inconsistent results across runs
  • Not available in Excel for the web or on mobile
  • Requires careful model setup to avoid hidden nonlinearity that breaks Simplex LP

Excel Solver Setup Checklist Before You Click Solve

Verify the Solver add-in is enabled under File then Options then Add-Ins
Identify a single objective cell containing a formula not a hard coded value
Confirm decision variable cells contain numbers and feed the objective formula
Add lower and upper bounds for every decision variable to prevent runaway values
Use the int keyword for whole number variables like units produced or staff assigned
Use the bin keyword for binary yes or no decisions such as project selection
Choose Simplex LP only if every formula in the model is strictly linear
Save a copy of your starting values before running since Solver overwrites cells
Tick the non-negative checkbox when negative values are physically impossible
Request the Answer report after solving to inspect binding constraints and slack
Always normalize your constraint scales before running large optimizations

If one constraint involves numbers in the billions and another involves decimals near zero, Solver can struggle with numerical precision. Divide both sides of the large constraint by a common factor so all coefficients fall within a few orders of magnitude.

To make Solver concrete, consider a classic product mix problem. A small bakery produces three products, croissants, muffins, and bagels. Each item consumes flour, sugar, and labor in different proportions and yields a different profit margin. The owner has 50 pounds of flour, 20 pounds of sugar, and 12 labor hours available daily. Set up a spreadsheet with one column for each product, rows for the resource coefficients, and a profit row at the bottom. Solver finds the production quantities that maximize total profit subject to the resource caps.

The objective cell uses SUMPRODUCT to multiply quantity by profit per unit. The constraint cells use SUMPRODUCT to multiply quantity by resource consumption per unit, then compare those totals against the available resources. Add the integer constraint on quantities because you cannot bake half a croissant. Choose Simplex LP since every relationship is linear. Solver then returns the optimal mix, typically pushing the bakery toward the highest-margin product until a resource becomes the binding constraint.

A second example involves portfolio allocation across five stocks. The objective is to minimize the portfolio variance, calculated through a covariance matrix and the SUMPRODUCT of weights. The constraint is that the weights sum to exactly one and that each weight stays between zero and one. Because variance is a quadratic function, Simplex LP cannot handle it, so switch to GRG Nonlinear. Add a target return constraint that the weighted expected return equals a specified percentage. Solver delivers the minimum-variance portfolio for that return level, the cornerstone of modern portfolio theory.

A third real-world application is employee scheduling. Suppose a call center needs minimum staffing for each two-hour block across a 24-hour day. Employees work eight-hour shifts that start at various times. Decision variables are the number of employees starting at each shift time. The objective is to minimize total employees hired. Constraints ensure that the sum of overlapping shifts meets the minimum coverage requirement in every block. Mark all variables as integer because partial employees do not exist. Simplex LP handles this elegantly thanks to its branch-and-bound integer routine.

Transportation problems also yield to Solver naturally. Imagine three warehouses shipping to five retail stores with different unit shipping costs and supply and demand limits. Decision variables form a three-by-five matrix of shipment quantities. The objective minimizes total cost as SUMPRODUCT of quantities and unit costs. Supply constraints cap each warehouse row sum, and demand constraints meet each store column sum. The Solver result is the cheapest distribution plan, and the Sensitivity report reveals which routes would benefit most from negotiating better freight rates.

Curve fitting represents another fertile use case. Suppose you have noisy experimental data and want to fit an exponential decay curve of the form y equals A times e to the negative k t. Decision variables are the parameters A and k. The objective is to minimize the sum of squared residuals between observed y values and predicted values. Use GRG Nonlinear since the function is smooth but nonlinear. Solver returns the parameter estimates that best match the data.

Beyond the dialog box, the real power of Solver emerges when you automate it through VBA. The Solver functions exposed to Visual Basic include SolverReset, SolverOk, SolverAdd, SolverChange, SolverDelete, and SolverSolve. With these you can build macros that loop through dozens of scenarios, recording each optimal answer to a results sheet. For example, a sensitivity sweep might run Solver one hundred times at different interest rate assumptions and chart how the optimal capital budget evolves.

To use Solver in VBA, first add a reference to Solver in the Visual Basic Editor under Tools then References. In the Visual Basic Editor you must establish a reference to Solver; if Solver is not listed under Available References, click Browse and open Solver.xlam. Once enabled, a typical automation routine clears any prior model with SolverReset, defines the objective with SolverOk, adds constraints in a loop with SolverAdd, then calls SolverSolve with the UserFinish argument set to True so no dialog interrupts the macro. Capture the returned integer status code to detect whether Solver succeeded, hit an iteration limit, or declared infeasibility.

Another advanced technique is using Solver in combination with the Scenario Manager. The Scenario Manager swaps input values in and out, and a small macro runs Solver after each swap. The result is a tidy table comparing optimal answers across business conditions like recession, baseline, and boom. Pair this with Excel charts and you can show executives how the recommended decision changes with the operating environment, a far more compelling story than any single optimization run.

For problems near the 200-variable limit, consider reformulating to shrink the model. Aggregating fine-grained variables into broader buckets often preserves optimality while drastically reducing problem size. Eliminating redundant constraints, replacing equalities with double inequalities only when necessary, and exploiting symmetry through substitution can all dramatically improve Solver performance.

Solver also pairs beautifully with data tables and what-if analysis. After finding an optimum, create a one-variable data table that varies a key constraint right-hand side and records the corresponding optimal objective. This produces a parametric sensitivity curve that visualizes diminishing returns, capacity bottlenecks, and the value of additional resources. Combined with conditional formatting, the result is a compact decision support sheet.

Multi-objective optimization is technically possible by weighting objectives or solving sequentially. For instance, you can first maximize revenue, then constrain the revenue to be no less than ninety-five percent of that maximum, and then minimize cost. This lexicographic approach delivers Pareto-efficient solutions on the revenue-cost frontier. Document each step carefully because the order of objectives matters and small changes in the relaxation percentage produce noticeably different recommendations.

Finally, version control matters more than people expect with Solver models. Because Solver overwrites variable cells with each run, careless workflow can destroy a carefully built scenario. Always keep a master template sheet with the original values, run Solver on a copy, and use named ranges so formulas remain readable even after large structural changes. Pair this discipline with thorough cell comments explaining the meaning of every constraint, and your Solver workbooks become maintainable assets rather than throwaway analyses.

Practice Excel Formulas That Power Solver Models

The final layer of mastery is treating Solver not as a one-off calculator but as a repeatable analytical workflow. Begin every project by writing a one-paragraph problem statement that names the objective in plain language, lists the decision variables in business terms, and enumerates the constraints. Translating this statement into spreadsheet form forces clarity. If you cannot describe the problem cleanly in words, the resulting Solver model will be muddled and the optimal answer will be meaningless even if numerically correct.

Always validate Solver output against intuition before reporting it. If the optimal product mix concentrates everything on a single item, check whether that item really dominates economically or whether a constraint is missing. If the optimal portfolio puts ninety percent in one asset, verify that risk constraints reflect actual risk tolerance. Solver will obediently push toward extreme corners of the feasible region whenever the model allows, so common sense remains the final filter before publishing recommendations.

Build a standardized layout for Solver workbooks. Place inputs at the top, decision variables in a dedicated yellow-shaded block, constraints in a labeled table with current value and limit columns, and the objective in a single highlighted cell. This consistency saves time when revisiting old models and helps collaborators understand the structure quickly. Many consultants follow a one-page-per-model rule, forcing themselves to keep every Solver problem visible without scrolling, which improves both review and audit.

Document the rationale for the chosen solving engine and any non-default option settings in a cell comment next to the Solver button. Future you, opening the file in six months, will not remember why Multistart was enabled or why iteration limits were raised. A short note like uses Multistart due to multiple local optima in revenue function prevents wasted hours rediscovering the configuration. Treat Solver settings as code that deserves documentation, not as transient interface choices.

For training purposes, build a personal library of toy Solver problems with known optimal answers. Include the bakery product mix, a transportation problem, a portfolio variance problem, a scheduling problem, and a curve fit. Whenever Excel updates or you move to a new computer, run these models to verify Solver still works correctly. This catches add-in regressions, configuration drift, and stale templates before they impact real client deliverables. The library doubles as teaching material when onboarding new analysts.

Finally, recognize when Solver is the wrong tool. Problems with thousands of variables, integer programs with combinatorial complexity, or stochastic optimization with uncertain parameters often demand dedicated software. Excel Solver excels at clear, modest-scale problems where transparency matters more than raw horsepower. Knowing the boundary between what Solver handles gracefully and what requires escalation to Gurobi, CPLEX, or Python solvers like PuLP and Pyomo is a sign of true analytical maturity. Use the right tool for each problem and Solver will remain a trusted companion for years.

Mastering the Excel Solver add-in unlocks a category of analysis most spreadsheet users never attempt. From production planning to financial engineering, the same dialog box that lives quietly on the Data tab can answer questions worth millions of dollars to a business. Invest a weekend in working through five practical examples, and Solver becomes a reliable extension of your analytical instincts rather than an intimidating mystery hidden behind a checkbox.

Questions and Answers

Why is the Solver add-in missing from the Data tab?

Solver is not enabled by default. Open File, Options, Add-ins, choose Excel Add-ins in the Manage box, click Go, and tick Solver Add-in. On Mac, use Tools, then Excel Add-Ins. Once loaded, the Solver command appears in the Analysis group on the Data tab. If it still does not appear, confirm the box remains ticked and that you are using desktop Excel.

What should I do if Solver Add-in is not in the Add-Ins list?

Click Browse in the Add-Ins dialog and locate the Solver add-in file yourself. If Excel says the add-in is not installed, click Yes to install it. Microsoft documents these same steps for both Windows and Mac. If Browse finds nothing, the Office installation may lack the component, so repair the installation or ask your administrator to install it.

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

No set of values satisfies every constraint at once, so at least two constraints or bounds conflict. Remove constraints one at a time to find the conflict, and check that integer or binary limits are achievable. In VBA, SolverSolve returns 5 for this case, and SolverFinish with ReportArray 1 creates a Feasibility report that helps locate the problem.

What does "linearity conditions required by this LP Solver are not satisfied" mean?

You chose Simplex LP, but the model contains a formula that is not linear, such as multiplying two decision variables or using a nonlinear function. Microsoft says to use Simplex LP for linear problems and GRG Nonlinear for smooth nonlinear ones. Switch the solving method to GRG Nonlinear, or rewrite the formulas so the model is truly linear. VBA returns code 7.

What does "The Objective Cell values do not converge" mean?

Solver kept improving the objective without reaching a limit, which usually means the problem is unbounded. A typical cause is maximizing profit with no cap on production. Add realistic upper and lower bounds or capacity constraints to the variable cells and rerun. VBA reports this outcome as return value 4. Also check that the objective formula actually depends on the changing cells.

Why does Solver ask for upper and lower bounds on all variables?

Solver can return "All variables must have both upper and lower bounds" (return value 18) when a variable cell has no limit on one side. Add both bounds as constraints on every variable cell. A related message, return value 20, means the bounds you set allow no feasible solution, so compare them against your other constraints. Binary and all-different constraints also require compatible bounds.

Why did Solver stop before finishing?

Solver stops when it reaches a limit you set in Options. Return value 3 means the maximum iteration limit was reached, and return value 10 means the maximum time limit was reached. Raise Iterations or Max Time in the Solver Options dialog and run again. For integer models, the Integer Optimality setting and subproblem limits also apply. You can also choose Show Iteration Results to watch each trial solution.

Why do I get an error when running Solver from VBA?

The Solver add-in must be enabled and installed first, and then you must establish a reference to it. In the Visual Basic Editor, choose Tools, then References, and tick Solver. If Solver is not listed, click Browse and open Solver.xlam. Without the reference the Solver functions are not available to your code. Solver cannot run in Excel for the web at all.
โ–ถ Start Quiz