
Oct 21, 2016
Solver is a Microsoft Excel add-in program you can use for What-If Analysis. You can use Solver to determine the maximum or minimum value of one cell by changing other cells. For example, you can change the amount of your projected expenses or revenue and see the effect on your projected profit amount. Solver must be used on a cell containing a formula.
To Use Solver
- On the Data tab, in the Analysis group, click Solver.
- In the Set Objective box, enter a cell reference or name for the objective cell. The objective cell must contain a formula.
- Do one of the following:
- If you want the value of the objective cell to be as large as possible, click Max.
- If you want the value of the objective cell to be as small as possible, click Min.
- If you want the objective cell to be a certain value, click Value of, and then type the value in the box
- In the By Changing Variable Cells box, enter a name or reference for each decision variable cell range. Separate the non-adjacent references with commas. The variable cells must be related directly or indirectly to the objective cell. You can specify up to 200 variable cells.
- In the Subject to the Constraints box, enter any constraints that you want to apply by doing the following:
- In the Solver Parameters dialog box, click Add.
- In the Cell Reference box, enter the cell reference or name of the cell range for which you want to constrain the value.
- Click the relationship ( <=, =, >=, int, bin, or dif ) that you want between the referenced cell and the constraint. If you click int, integer appears in the Constraint box. If you click bin, binary appears in the Constraint box. If you click dif, alldifferent appears in the Constraint box.
- If If you choose <=, =, or >= for the relationship in the Constraint box, type a number, a cell reference or name, or a formula.
- Do one of the following:
- To accept the constraint and add another, click Add.
- To accept the constraint and return to the Solver Parameters dialog box, click OK.
- Note: You can apply the int, bin, and dif relationships only in constraints on decision variable cells.
- You can change or delete an existing constraint by doing the following:
- In the Solver Parameters dialog box, click the constraint that you want to change or delete.
- Click Change and then make your changes, or click Delete.
- Click Solve and do one of the following:
- To keep the solution values on the worksheet, in the Solver Results dialog box, click Keep Solver Solution.
- To restore the original values before you clicked Solve, click Restore Original Values.
- You can interrupt the solution process by pressing Esc. Excel recalculates the worksheet with the last values that are found for the decision variable cells.
- To create a report that is based on your solution after Solver finds a solution, you can click a report type in the Reports box and then click OK. The report is created on a new worksheet in your workbook. If Solver doesn't find a solution, only certain reports or no reports are available.
- To save your decision variable cell values as a scenario that you can display later, click Save Scenario in the Solver Results dialog box, and then type a name for the scenario in the Scenario Name box.

For more information, take a look at our Excel training courses.
How do your Excel skills stack up?
Test NowNext up:
- Seven steps to modifying employee behaviour
- Master Document in Word – Part 1
- OneDrive to rule them all
- Finally, technology proves the benefits of face-to-face interaction
- PowerShell Basics series – PowerShell Blog Index
- Create a chart with a secondary axis in Excel 2016
- Troubleshooting startup issues in Windows 10
- Dreamweaver CC – Pop up thumbnails of image and colour filenames
- Am I using PowerPoint effectively?
- Using PowerShell to find dead computers in Active Directory (AD)
Previously
- 6 conversations a new manager should have
- Updates to Angular 2 that makes coding easier – HTTP Client
- Does good design sell itself?
- I'll have courtesy with my gelato, thanks.
- Do a quick forecast in Excel 2016
- Outlook on the Web in Exchange Server 2016
- Life has many, many stations. Having trouble getting to your next one?
- Updates to Angular 2 that makes coding easier – Custom Pipes
- Data Recovery in Windows Server 2016
- Interviewing and avoiding the artful dodger!