What is Solver in Excel?
The solver in excel is an analysis tool that helps find solutions to complex business problems requiring crucial decisions to be made. For every problem, the goal (objective), variables, and constraints are identified. The solver returns an optimal solution which sets accurate values of the variables, satisfies all constraints, and meets the goal.
For example, the solver helps create the most appropriate project schedule, minimize an organizationโs expenses on transportation of its employees, maximize the profits generated by a given marketing plan, and so on.
The solver can solve the following types of problems:
Key Takeaways
- Optimization problems where profits need to be maximized and costs need to be minimized
- Arithmetic equations
- Linear and nonlinear problems
In optimization problems, the solver in excel helps to minimize or maximize the objective based on certain variables. Being known as a โwhat-if analysisโ tool, the solver is enabled by the โadd-insโ option or the Developer tab of Excel.
The Functioning of the Excel Solver
For solving a problem, the user has to input certain parameters based on which the solver operates. The tasks of the user followed by the functions of the solver are listed as under:
- Identify the goal (objective) of the problemโThis tells the solver what has to be done, thereby lending a direction to the solver.
- Choose the variables of the problemโThis tells the solver the areas it has to work upon. The solver in excel returns the most appropriate values of the variables that meet the goal.
- Set the constraints of the problemโThis tells the solver to work within the limits defined by the constraints. The solver returns a solution that meets the goal and, at the same time, does not go beyond these limitations.
Hence, the entire solution is focused on the goal of the problem. The solver returns the best possible solution for a problem keeping in mind the set of controls.
Solver in Excel – Explained in Video
How to add โSolver Add-Inโ in Excel?
The โsolver add-inโ is not enabled by default in Excel. The two ways to activate the โadd-inโ are stated as follows:
a. With the โadd-insโ option of the File menu
b. With the Developer tab
a. The steps under โadd-insโ option of the File menu are listed as follows:
- Click on the File menu.

- Select โoptionsโ from the various options listed in the menu.

- Click on โadd-ins.โ Select โsolver add-inโ and click โgo.โ

- Select the checkbox for โsolver add-inโ and click โOk.โ

b. The steps under the Developer tab option are listed as follows:
- In the Developer tab, click on โExcel add-insโ in the โadd-insโ group. Select the checkbox โsolver add-inโ and click โOk.โ

- Once installed, the โsolverโ button appears in the โanalysisโ group of the Data tab.

The Terminologies of the Solver in Excel
The solver model consists of the objective cells, variable cells, constraints, and formulas that interconnect these components. The excel solver finds an optimal solution to the formula mentioned in the objective cell by changing the variable data cells, given the restrictions of the constraint cells.
Let us understand the terminologies used in the โsolver parametersโ dialog box. This will be helpful when running the solver. The terms are defined as follows:
- Objective cell: This is a single cell which contains a formula. The formula is decision-based and subject to the restrictions of the constraint cells. The value of the objective cell can be minimized, maximized, or set equal to the specified target value.
- Decision variable or variable cells: These are the cells in which the solver returns the values based on the objective of the problem. Since these data cells are variable, they can be changed with respect to the objective. In Excel, up to 200 variable cells can be specified.
- Constraint cells: These are the limitations within which the given problem is solved. In other words, they are the conditions that should be satisfied.

The Types of Solving Methods
The three methods to solve the data in the excel solver are listed as follows:
- GRG nonlinear
The acronym โGRGโ stands for โgeneralized reduced gradient nonlinear.โ This method helps solve nonlinear problems. A nonlinear problem may have more than one feasible region. Alternatively, it may have a set of similar values for the variable cells with all the constraints being satisfied.

2. Simplex LP
The acronym โLPโ stands for linear problems. This method helps solve linear programming problems and works faster than the GRG nonlinear method. In a linear programming problem, a single objective has to be maximized or minimized subject to certain conditions.
The simplex LP and GRG nonlinear method both are used for smooth problems.

3. Evolutionary
This method helps solve non-smooth problems, which consist of discontinuous functions. The non-smooth problems are the most challenging optimization models to solve.

How to use the Solver in Excel?
Let us consider some examples to understand the solver tool of Excel.
Example #1
We want to find the value of X and Y in the following arithmetic equation with the help of the solver tool.
56=2X-5+Y2
Step 1: Formulate the equation on an Excel sheet, as shown in the following image.

Step 2: Click the โsolverโ button in the โanalysisโ group of the Data tab. The โsolver parametersโ dialog box opens. Enter cell โ$D$9โ in the objective cell, as shown in the succeeding image. The variable cells are โ$C$7:$D$7.โ
In the โvalue ofโ box, type 56. This is because the right-hand side value of the given equation should be equal to 56.
Step 3: Select GRG nonlinear in the โselect a solving methodโ box. Click โsolve.โ
Note: The GRG nonlinear is the default solving method.

Step 4: The โsolver resultsโ box appears. This box may take some time to display depending on the complexity of the model. Select โkeep solver solutionโ and click โOk,โ as shown in the following image.

Step 5: The results are shown in the following image. The solver has calculated X as 30.5 and Y as 0. The right-hand and left-hand sides both are equal now.

Example #2
The succeeding image provides the details of an organization that manufactures a television set, stereo, and speaker. The raw materials used are chassis, picture tube, speaker cone, power supply, and electronics. The leftover stock of raw materials is given in G10:G14.
We want to maximize the overall profits given the limited availability of the raw materials.
The variable cells, constraint cells, and the objective cell are highlighted.

Step 1: Calculate the โused inventoryโ in F10:F14. The formula is shown in the following image.

Step 2: Click the โsolverโ button in the โanalysisโ group of the Data tab. In the โsolver parametersโ dialog box, click โaddโ to the right of the โsubject to the constraintsโ box.
Step 3: The โadd constraintโ box appears, as shown in the succeeding image. The constraints are defined as follows:
- The leftover stock of raw materials should be greater than or equal to zero. So, enter โ$G$10:$G$14โ in the โcell referenceโ box. In the box to the right, type the comparison operator โ>=.โ In the โconstraintโ box, enter โ0.โ
- The quantity of the three products (television set, stereo, and speaker) should be greater than or equal to zero. So, enter โ$C$6:$E$6>=0โ as done for the preceding point.
After entering every constraint, click the โaddโ button to add it to the โsolver parametersโ box. Once all constraints have been entered, click โOk.โ

Step 4: In the โsolver parametersโ box, enter โ$C$18โ in the โset objectiveโ box. Select the โmaxโ option. In the โby changing variable cellsโ box, enter โ$C$6:$E$6.โ Select the solving method as GRG nonlinear. Click โsolve.โ

Step 5: The output is shown in the following image. The organization must produce 250 television sets, 50 stereos, and 50 speakers to make a profit of $28,000. The product-wise profits are also displayed in C17:E17.
This is an optimal solution given the constraints. With these numbers, the organization will be able to utilize its resources efficiently.

The Applications of the Solver Excel Model
The major applications of the excel solver are listed as follows:
- It helps take decisions at the top level of management. For instance, an organization may want to maximize the profits and minimize the costs given the limited resources of inventory and manpower.
- It helps solve the day-to-day problems of life which can be converted into arithmetic equations. For instance, a housewife may require an optimal monthly budget to be created which can meet the familyโs financial needs, given the limitations.
Frequently Asked Questions (FAQs)
Define the solver in Excel.
The solver can solve optimization problems, arithmetic equations, and linear and nonlinear programming models. It helps minimize or maximize the output based on the associated variables and the given constraints.
The solver tool consists of three components which are stated as follows:
โข Objective cell โ This contains a formula which is to be solved.
โข Variable cells โ These cells contain variable data which can be adjusted to attain the objective.
โข Constraint cells โ These are the conditions to be met by the solution of the problem.
The solver solves the problems with the help of three methods GRG nonlinear, simplex LP, and evolutionary. The first two methods are used for smooth problems, while the last helps solve non-smooth problems.
What is the purpose of using the solver in Excel?
The objectives of using the solver are listed as follows:
โข To find an optimal solution to a problem
โข To help minimize or maximize the formula value
โข To work on variable data provided the constraints are adhered to
โข To perform a comprehensive analysis necessary for making decisions
What are the solver parameters in Excel?
The โsolver parametersโ is a dialog box which appears on clicking the โsolverโ button in the Data tab. It consists of the following components:
โข โSet objectiveโ โ This is the objective cell categorized into โmax,โ โmin,โ and โvalue of.โ The โmaxโ and โminโ help maximize or minimize the formula value respectively. The โvalue ofโ category helps set the desired target value.
โข โBy changing variable cellsโ โ This consists of a range of variable data cells that are changed to achieve the goal.
โข โSubject to the constraintsโ โ These are the constraints that can be added, modified, and deleted depending on the requirement.
โข โLoad/saveโ button โ This saves the current model and displays the stored parameters.
โข โSelect a solving methodโ โ This consists of the method to solve the problem. Any one of the three methods (GRG nonlinear, simplex LP, and evolutionary) can be selected.
โข โSolveโ button โ This is clicked once all the data has been entered in the tool. It takes the user to the โsolver resultsโ dialog box.
Note: If the variable cells are non-adjacent, select the range by pressing and holding the โCtrlโ key.
Recommended Articles
This has been a step-by-step guide to the Solver in Excel. Here we discuss how to use Solver in Excel along with examples and downloadable Excel templates. You may also look at these useful functions in Excel โ



