Excel Cannot Find a Solution? Fix Solver Errors
In this article
When Excel says "Excel cannot find a solution," it does not mean the file or your formulas are broken. It means Solver finished its search without producing a set of values that meets every constraint you set, within the limits it was given. The fix is almost always in the model, not in Excel: relax a constraint, give Solver a starting point closer to feasible, raise the precision or iteration limits, or switch the solving method. A quick check first: does at least one combination of variable values actually satisfy all your constraints? If you cannot construct one by hand, Solver cannot either, and you need to change the problem before re-running it.
What You'll Need
- Excel on Windows or Mac with the Solver add-in enabled (File > Options > Add-ins > Manage: Excel Add-ins > Go, then tick Solver). On Mac it lives under Tools > Excel Add-ins. Some Excel 365 builds on Mac have Solver available without this step; if you do not see it, the add-in route is the one to try. Menu labels can differ slightly by version, device and region.
- A worksheet model where the objective cell is a formula that depends, directly or indirectly, on the variable cells you select.
- Your constraints written down so you can check each one against a plausible set of values.
- A sensible starting value in every variable cell. Blank or wildly out-of-range starting values are a common cause of the error.
Step-by-Step
- Confirm Solver is reading the right cells. Open Data > Solver and check that the Set Objective box points at the formula you want to optimise, that To is set to Max, Min or Value Of as intended, and that By Changing Variable Cells lists only the inputs — never a cell that contains a formula.
- Write out each constraint and test it by hand. For every constraint in the Subject to the Constraints list, type a trial set of variable values and calculate whether the model meets it. If even one constraint cannot be satisfied alongside the others, you have an infeasible model and Solver is reporting that correctly.
- Look for accidental contradictions. Classic examples: a cell required to be both >= 10 and <= 5, a total that must equal 100 while the individual maximums sum to 80, or an integer constraint combined with a decimal target. Remove or loosen the offending constraint and re-run.
- Check the integer and binary settings. Select a constraint and click Change, or add a new one with the int or bin relation. Requiring too many cells to be integers or binary, or requiring an integer result while the objective needs fractional values, often makes the problem unsolvable. Test the same model with continuous variables first — if it solves, the integer requirement is the culprit.
- Give Solver a feasible starting point. Type values you know satisfy most constraints into the variable cells, then run Solver again. The default solving methods start from the current cell values, and a far-off start can stall the search even when a solution exists.
- Relax the precision and convergence settings. Click Options in the Solver dialog and look at Precision and Convergence. Tightening these makes Solver work harder and can trigger the message on models that are nearly feasible; loosening them slightly often lets it settle on an answer.
- Raise the iteration and time limits. In the same Options dialog, increase Max Time and Iterations, or leave them blank for no limit. A model that hits an iteration cap can report failure when it simply ran out of attempts.
- Switch the solving method. GRG Nonlinear suits smooth models, Simplex LP requires a truly linear model, and Evolutionary handles discontinuous or non-smooth problems but is slow. If you selected Simplex LP on a model containing products of variables, absolute values or IF logic, it can fail — try GRG Nonlinear or Evolutionary instead.
- Untick Make Unconstrained Variables Non-Negative only if negatives are genuinely valid. This box is on by default and quietly forbids negative variable values, which conflicts with constraints that might push a variable below zero. Leave it ticked unless your model truly needs negative inputs.
- Scale your numbers. Models mixing very large and very small coefficients (for example, values in millions next to values in fractions) can hit numerical limits. Rescale units — work in thousands or millions consistently — and try again.
- Check the results dialog carefully. Solver may still produce a result with a status other than "Solver found a solution." Read the report it offers, and use the Sensitivity or Answer report to see which constraint was binding or violated.
Common Mistakes
- Putting a formula cell in By Changing Variable Cells. Solver needs empty or value-only input cells; the objective and constraint cells should hold formulas.
- Forgetting that blank constraint cells are treated as zero, so a constraint you thought applied to a range is quietly forcing values to stay at zero.
- Using Simplex LP on a nonlinear model. It will either refuse or return an unusable result; check for variable multiplication, division, powers or IF statements in the model.
- Making a whole range integer when only a few cells need to be. This multiplies the search space and makes failure far more likely.
- Writing "=" in the Constraint box when you meant ">=" or "<=". A single equality across many cells is often impossible.
- Ignoring the starting values and re-running an identical, unchanged setup, expecting a different result.
Tips
- Build the model in stages: solve with no constraints, then add them one at a time. The step that breaks it tells you exactly where the problem is.
- Keep a copy of the sheet before changing constraints so you can compare a working and failing version side by side.
- Use named ranges for key cells; it makes a long constraint list far easier to read and spot mistakes in.
- Run the Evolutionary method with a fixed random seed in Options when you need repeatable results, and expect it to take longer.
- Save the Answer and Sensitivity reports; they show slack and binding status, which explains why a constraint is forcing failure.
Troubleshooting
Solver still reports no solution after loosening everything
Rebuild the constraint list from scratch on a clean copy, typing each constraint explicitly. Copied models often carry hidden constraints on ranges you forgot about. Also test a single variable with a wide range to confirm the objective and its formula links are correct.
The message appears only on large models
Try the Evolutionary method, raise Max Time and Iterations, and rescale your units. Large integer models are the slowest and most failure-prone; reducing the number of integer cells is usually the biggest single improvement.
It solved before and now it does not
Something in the data changed. Check any referenced lookup tables, imported figures or linked workbooks — a broken link can feed zeros into constraint cells and make the model infeasible without any obvious error.
Solver is missing from the Data tab
Re-enable it through the Add-ins dialog described above, and restart Excel. If it remains unavailable, check that your installation is current, since some editions differ in what add-ins they include.
Frequently Asked Questions
Does "Excel cannot find a solution" mean my file is corrupted?
No. It means the optimiser could not satisfy the constraints or ran out of its limits. The workbook itself is normally fine.
Can Solver find a solution that does not exist?
No. If the constraints genuinely contradict each other, no method will succeed. The honest fix is to change the requirement, not the settings.
Why does Simplex LP fail on my model?
Simplex LP assumes a strictly linear model. Any nonlinear element — multiplying two variable cells, division, powers, IF logic — breaks that assumption. Use GRG Nonlinear instead.
Will changing Precision numbers give inaccurate results?
Loosening precision slightly trades a little accuracy for a solution that actually completes. Tighten it again once you know the model is feasible.
Do I need to change settings every time I open the file?
No. Solver keeps its model definition and options inside the workbook, so the constraints and method you saved are read back when you reopen it.