How to Use Solver in Microsoft Excel

This wikiHow teaches you how to use Microsoft Excel's Solver tool, which allows you to alter different variables in a spreadsheet in order to achieve a desired solution. You can use Solver in both Windows and Mac versions of Excel, though...

Enabling Solver

  1. How to Use Solver in Microsoft Excel Picture 1How to Use Solver in Microsoft Excel Picture 1
    Open Excel. Click or double-click the Excel app icon, which resembles a green box with a white "X" on it.
    1. Solver comes pre-installed with both Windows and Mac versions of Excel, but you'll have to enable it manually.
  2. How to Use Solver in Microsoft Excel Picture 2How to Use Solver in Microsoft Excel Picture 2
    Click Blank workbook. This will open the Excel window, from which point you can proceed with enabling Solver.
    1. If you have an existing Excel file you'd like to use Solver with, you can open it instead of creating a new file.
  3. How to Use Solver in Microsoft Excel Picture 3How to Use Solver in Microsoft Excel Picture 3
    Click File. It's a tab in the upper-left side of the Excel window.
    1. On a Mac, click Tools instead, then skip the next step.
  4. How to Use Solver in Microsoft Excel Picture 4How to Use Solver in Microsoft Excel Picture 4
    Click Options. You'll find this option at the bottom of the File menu. Doing so brings up the Options window.[1]
  5. How to Use Solver in Microsoft Excel Picture 5How to Use Solver in Microsoft Excel Picture 5
    Click Add-ins. It's a tab in the lower-left side of the Options window.
    1. On a Mac, click Excel Add-ins in the Tools menu.
  6. How to Use Solver in Microsoft Excel Picture 6How to Use Solver in Microsoft Excel Picture 6
    Open the "Add-ins Available" window. Make sure that the "Manage" text box has "Excel Add-ins" listed in it, then click Go at the bottom of the page.
    1. On a Mac, this window will open after clicking Excel Add-ins in the Tools menu.
  7. How to Use Solver in Microsoft Excel Picture 7How to Use Solver in Microsoft Excel Picture 7
    Install the Solver add-in. Check the "Solver" box in the middle of the page, then click OK. Solver should now appear as a tool in the Data tab that's at the top of Excel.

Using Solver

  1. How to Use Solver in Microsoft Excel Picture 8How to Use Solver in Microsoft Excel Picture 8
    Understand Solver's use. Solver can analyze your spreadsheet's data and any constraints you've added to show you possible solutions. This is useful if you're working with multiple variables.
  2. How to Use Solver in Microsoft Excel Picture 9How to Use Solver in Microsoft Excel Picture 9
    Add your data to your spreadsheet. In order to use Solver, your spreadsheet must have data with different variables and a solution.
    1. For example, you might create a spreadsheet documenting your various expenses over the course of a month with the output cell resulting in your money left over.
    2. You can't use solver on a spreadsheet which doesn't have solvable data (i.e., your data has to have equations).
  3. How to Use Solver in Microsoft Excel Picture 10How to Use Solver in Microsoft Excel Picture 10
    Click the Data tab. It's at the top of the Excel window. This will open the Data toolbar.
  4. How to Use Solver in Microsoft Excel Picture 11How to Use Solver in Microsoft Excel Picture 11
    Click Solver. You'll find this option in the far-right side of the Data toolbar. Doing so opens the Solver window.
  5. How to Use Solver in Microsoft Excel Picture 12How to Use Solver in Microsoft Excel Picture 12
    Select your target cell. Click the cell in which you want to display your Solver solution. This will add it to the "Set Objective" box.
    1. For example, if you're creating a budget where the end goal is your monthly income, you would click the final "Income" cell.
  6. How to Use Solver in Microsoft Excel Picture 13How to Use Solver in Microsoft Excel Picture 13
    Set a goal. Check the "Value Of" box, then type your target value into the text box next to "Value Of".
    1. For example, if your goal is to have $200 at the end of the month, you would type 200 into the text box.
    2. You can also check either the "Max" or "Min" box in order to prompt Solver to determine the absolute maximum or minimum value.
    3. Once you've set a goal, Solver will attempt to meet that goal by adjusting other variables in your spreadsheet.
  7. How to Use Solver in Microsoft Excel Picture 14How to Use Solver in Microsoft Excel Picture 14
    Add constraints. Constraints set restrictions on the values that Solver can use, which prevents Solver from accidentally nullifying one or more of your spreadsheet's values. You can add a constraint by doing the following:[2]
    1. Click Add
    2. Click the cell (or select the cells) for which the constraint applies.
    3. Select a type of constraint from the middle drop-down menu.
    4. Enter the constraint's number (e.g., a maximum or minimum).
    5. Click OK
  8. How to Use Solver in Microsoft Excel Picture 15How to Use Solver in Microsoft Excel Picture 15
    Run Solver. Once you've added all of your constraints, click Solve at the bottom of the Solver window. This will prompt Solver to find the optimal solution for your problem.
  9. How to Use Solver in Microsoft Excel Picture 16How to Use Solver in Microsoft Excel Picture 16
    Review the results. When Solver alerts you that it has an answer, you can see the answer by looking at your spreadsheet to see which values were changed.
  10. How to Use Solver in Microsoft Excel Picture 17How to Use Solver in Microsoft Excel Picture 17
    Change your Solver criteria. If the output that you received isn't ideal for your spreadsheet, click Cancel in the pop-up window, then adjust your objective and constraints.
    1. If you do like your Solver's results, you can apply them to your spreadsheet by checking the "Keep Solver Solution" box and then clicking OK.
4 ★ | 1 Vote