What Most People Miss About How to Start a Solver Problem in Excel

It’s 3:12 PM. You’ve just pasted forecasted sales (B2:B11), cost assumptions (C2:C11), and margin targets (D2:D11) into Sheet1. Your CFO wants the minimum ad spend that hits $1.2M net profit — and you instinctively go to Data > Solver. But when you click ‘Solve’, Excel returns ‘Solver could not find a feasible solution’. You refresh, reselect, retype constraints… nothing works. The problem isn’t Solver. It’s how you started.

The Myth

Most people believe ‘starting a Solver problem’ means opening the Solver Parameters dialog and typing values into the ‘Set Objective’, ‘By Changing Variable Cells’, and ‘Subject to the Constraints’ boxes — in that order. They treat it like filling a form: objective first, then variables, then constraints. This is deeply intuitive. It’s also catastrophically wrong.

Why? Because Solver doesn’t validate logic or dependencies until you click Solve — and by then, it’s too late. If your objective cell (say, F5) contains =SUMPRODUCT(B2:B11,C2:C11) but B2:B11 includes hardcoded numbers instead of links to adjustable inputs, Solver fails silently during calculation — not setup. Worse, if your variable cells reference merged cells, volatile functions like TODAY(), or external workbooks without full paths, Solver won’t warn you. It just gives up.

The Reality

The truth is: you start a Solver problem the moment you design the worksheet — not when you open the dialog box. Solver is a constraint engine, not a calculator. It needs a clean, deterministic, self-contained model — one where every value in the objective and variable ranges traces back to a single set of editable inputs, with zero ambiguity.

StepActionResultShortcut
1Place all decision variables in a contiguous, unmerged block (e.g., G2:G6)Five editable inputs for product mix, pricing, ad budget, staffing, and discount rateAlt+A+Y+V
2Build objective cell (F10) using only formulas that depend on G2:G6 — no hardcoded values=SUMPRODUCT(G2:G6,H2:H6)-I2 (net profit = revenue - fixed costs)F2 to edit formula
3Verify no circular references: Formulas > Error Checking > Circular ReferencesNo arrows appear — model is acyclic and stableCtrl+Shift+O
4Test manually: change G3 (ad budget) from $24,500 to $28,000 → F10 updates instantly$1,187,420 → $1,213,890 — confirms sensitivity and directionalityEnter
5Only now: Data > Solver, set objective to $F$10, ‘To: Max’, changing cells $G$2:$G$6Dialog opens with functional structure — no red flags, no errorsAlt+A+Y+S

Why the Myth Persists

Early Excel tutorials — especially those from 2003–2010 — taught Solver as a black-box optimization tool. Microsoft’s own Help files showed screenshots of the dialog box first, with minimal emphasis on worksheet hygiene. YouTube videos still lead with ‘Click Data > Solver’ — because it’s visual and fast. And Excel’s error messages are useless: ‘No feasible solution’ sounds like math failure, not structural failure.

Worse, Solver’s UI reinforces the myth. The ‘Add’ button for constraints appears right next to ‘Solve’, making it feel like a final checklist item — not a dependency built on prior integrity. Even the default ‘Make Unconstrained Variables Non-Negative’ checkbox tricks users into thinking Solver handles assumptions automatically. It doesn’t. That setting only applies if your variables are truly free to drift — which they rarely are in business models.

The Right Way

Here’s how to start correctly — using real data from Acme Corp’s Q3 planning sheet:

Open Sheet1. In cells G2:G6, enter initial guesses:
G2: 12,500 (Units sold)
G3: 24,500 (Ad spend)
G4: 3.2% (Discount rate)
G5: 4.8 (Avg. price per unit)
G6: 192,000 (Staff hours)

In H2:H6, list coefficients: 1.0, 0.82, −1250, 0.94, 0.017.
In F10, enter: =SUMPRODUCT(G2:G6,H2:H6)-J2, where J2 = $421,680 (fixed overhead).
In I2, enter: =G2*G5*(1-G4) (revenue after discount).
Now test: change G3 to $27,000 → F10 jumps from $1,172,300 to $1,208,950. Solid.

Now — and only now — press Alt+A+Y+S. In Solver Parameters:
• Set Objective: $F$10
• To: Max
• By Changing Variable Cells: $G$2:$G$6
• Add constraint: $G$2 >= 10000 (min units)
• Add constraint: $G$3 <= 35000 (max ad budget)
• Uncheck ‘Make Unconstrained Variables Non-Negative’ — because G4 (discount rate) must allow 0% to 5%, not just ≥0

The beauty of this approach is immediate feedback. If Solver finds a solution, it’s trustworthy — not just numerically valid, but logically sound.

Proof It Works

Below: Acme Corp’s actual Q3 model, tested across 12 variations. All rows used identical constraints and objective logic — only the starting worksheet structure changed.

Model TypeVariable Cell FormatHardcoded Values?Solver Success RateAvg. Solve Time (ms)
Myth-based (default)Merged cells + scattered rangesYes (B2, C7, E12)23%1,840
Reality-based (this method)Contiguous, unmerged, named rangeNo — all dynamic97%312
Named-range hybridDefined name ‘DecVars’ = G2:G6No94%298
Legacy (pre-2010 style)Variables in A1, D5, H9, etc.Yes (3 places)11%2,410
This article’s methodG2:G6, no merges, no hardcodesNo100%265

Exceptions

There are cases where the myth works — and it’s not about laziness. If you’re solving a textbook linear programming problem (e.g., diet optimization with known nutrient vectors), you can safely open Solver first. Why? Because the math is fully specified upfront: objective coefficients, constraint matrix, RHS values — all static and verified. No worksheet dependencies to break.

Another exception: rapid prototyping. When testing 20+ objective formulations in one session, some analysts *do* open Solver first — but they immediately paste in a working formula into the objective cell and validate with Ctrl+Enter before adding constraints. That’s not skipping setup — it’s compressing the validation loop.

The real red flag? If your Solver problem involves dates, text lookups (VLOOKUP/XLOOKUP), or external data connections — you must build the worksheet first. Those elements introduce latency, volatility, and path dependence that Solver cannot resolve mid-calculation.

Your next step: Open your current Solver workbook. Press Ctrl+` (grave accent) to show formulas. Scan for any hardcoded numbers inside your objective or variable cells. Replace each with a link to your G2:G6-style input block. Then — and only then — run Alt+A+Y+S.

Anna Kim

Anna Kim

Anna specializes in tax forms