Going Stellar

Home/Methods

Google Sheets · Optimisation · Linear programming

Solver in Google Sheets: linear optimisation without Excel

Excel ships Solver as an add-in. Google Sheets has no built-in equivalent. Here is how to lay out an optimisation model so any solver can read it, what linear means in practice, and the add-ons that run it in Sheets.

Updated

What a solver does

Microsoft describes Solver as finding the optimal value, maximum or minimum, for a formula in one cell, the objective, subject to constraints on other cells, by changing a group of decision variable cells. Excel's Solver accepts up to 200 variable cells and offers three methods; Simplex LP is the one for linear problems, where formulas use SUM, SUMPRODUCT, +, - and *.

Google Sheets has none built in

Sheets has no Solver menu. The work is done by add-ons from the Google Workspace Marketplace, installed from Extensions → Add-ons → Get add-ons. One free option is OpenSolver, which describes itself as solving linear and mixed-integer problems in Sheets. Whichever you use, the model is built the same way.

Lay the model out on the sheet

1. Decision variables: one cell per quantity you choose, for example units of each product to make. Put plain numbers in them; the solver overwrites them.

2. Objective: one cell with a formula, such as total profit = SUMPRODUCT(units, profit per unit).

3. Constraints: each limit as a formula cell next to its bound, for example machine hours used ≤ hours available. Keeping the bound in a cell, not typed into the solver dialog, makes the model readable.

4. If a quantity cannot be fractional, say so: most solvers have a whole-numbers option for chosen variables.

Why linear matters

A linear model only adds and multiplies variables by fixed numbers. That is what lets a simplex method prove the answer is the best one, not just a good one. IF, MAX, ROUND or a product of two variables break that: the model is no longer linear, and a linear solver will refuse it or give an answer that does not mean what you think. Rewrite the step as an extra variable and a constraint where you can.

Where our Solver fits

Solver, our add-on, solves linear models in the sheet. You give the objective cell, the cells it may change and your limits, with a whole-numbers option. Check first reads the model and tells you, cell by cell, what stops it being linear before anything is written; after solving it re-reads each limit from the sheet, and one click puts the sheet back. Larger models are on the paid plan. It does not do nonlinear or evolutionary methods; for those, Excel's GRG Nonlinear and Evolutionary methods are the native choice.

Sources

  1. Microsoft Support: Define and solve a problem by using Solver
  2. Google Workspace Marketplace: search results for Solver (OpenSolver listing)
  3. Google Workspace Marketplace: Solver — Linear Optimization

Questions and answers

Does Google Sheets have Solver like Excel?

No. Sheets has no built-in solver. Add-ons from the Google Workspace Marketplace add one, for example OpenSolver.

Can I solve integer problems in Google Sheets?

Yes, with an add-on that supports whole-number variables. Mark only the variables that must be whole numbers.

Why does the solver say my model is not linear?

A formula between the variables and the objective uses something other than sums and fixed multipliers, such as IF, ROUND or one variable multiplied by another.

How to cite this

Going Stellar (2026). Solver in Google Sheets: linear optimisation without Excel. GOING STELLAR S.R.L..
https://goingstellar.ro/methods/solver-in-google-sheets/

Read as Markdown

All methods

Contact

Tell us what is not working

Write in English or Romanian. A person reads it — usually the same person who would do the work — and answers within one business day.