In Excel for Microsoft 365 on Windows, open Solver by going to File > Options > Add-ins, choosing Excel Add-ins beside Manage, selecting Go, and checking Solver Add-in. After you select OK, find Solver on the Data tab. You may need administrator permission to install or enable it on a managed computer.
Solver is an Excel add-in for finding a value that optimizes a formula, such as maximizing profit or minimizing cost while observing limits. Opening Solver makes its controls available; it does not automatically solve a problem. You will still need a worksheet with a formula to optimize and, usually, cells representing the values Solver can change.
What You’ll Need
- A desktop version of Excel that supports the Solver Add-in. These steps use Excel for Microsoft 365 on Windows. Solver is not available as an add-in in Excel for the web, so open the workbook in desktop Excel to use it.
- Permission to enable Excel add-ins. A work or school device may restrict add-ins through its administrator.
- If you plan to run a Solver calculation, a workbook containing an objective formula and the decision cells you want Solver to adjust. You can enable Solver before building the model.
Step-by-Step
- Open the Excel Add-ins settings. In Excel for Windows, open a workbook or start a blank one. Select File, then Options. In the Excel Options window, choose Add-ins in the left-hand list. This page shows installed and active add-ins; Solver may appear in the list even if it is not currently enabled.
- Open the add-ins manager. At the bottom of the Add-ins page, locate the Manage box. Select Excel Add-ins from its dropdown, then select Go. Make sure you choose Excel Add-ins rather than COM Add-ins; Solver is enabled through the Excel Add-ins list.
- Enable Solver. In the Add-Ins dialog, find Solver Add-in and select its checkbox. Select OK. If Excel asks whether it can install the add-in, approve the prompt if you have permission. Wait for the dialog to close; on some computers Excel may ask for access to installation files or request administrator credentials.
- Check the Data tab. Return to the worksheet and select Data on the ribbon. Look toward the right side of the ribbon for the Solver command, usually in a group named Analysis. Ribbon placement can vary with window size, display scaling, and Excel updates. If you do not see it, maximize Excel and check the troubleshooting section below.
- Open the Solver Parameters window. Select Solver. Excel opens the Solver Parameters dialog, where you can enter an objective cell, choose whether to maximize, minimize, or reach a particular value, identify changing variable cells, and add constraints. If you only needed to locate Solver, you can select Close or cancel out without changing the worksheet.
- Know what to enter before solving. The objective cell must contain a formula that depends on the changing cells. For example, a total-profit formula could depend on quantities in several cells. In Solver, set the objective to that formula cell, select the changing cells, and add any limits that apply, such as a maximum budget or a requirement that quantities cannot be negative. Solver needs these relationships in the worksheet; it does not infer them from labels or headings.
- Choose a solving method and run it when ready. For a model with smooth formulas such as sums and products, GRG Nonlinear is often appropriate; for a linear model, choose Simplex LP. Evolutionary is intended for certain non-smooth or discrete problems. Select Solve only after checking the objective, changing cells, constraints, and method. Review the result and choose to keep the solution or restore the original values.
On Mac: In Excel for Mac, use Tools > Excel Add-ins, select the checkbox for Solver Add-in, and choose OK. Then look for Solver on the Data tab. Depending on the Excel release, the add-ins command or ribbon arrangement may look a little different. If the command is absent, update Excel and confirm that the add-in is allowed by your organization.
Common Mistakes
- Looking in the wrong place. Solver is enabled through the Excel Add-ins manager, not the COM Add-ins manager. Once enabled, the command is on the Data tab, not in the Formulas tab.
- Assuming Solver is already active. Seeing Solver listed under inactive application add-ins in Excel Options does not mean it is available on the ribbon. You must enable its checkbox in the Excel Add-ins dialog.
- Expecting Solver to work in a browser. Excel for the web does not provide the desktop Solver Add-in. Use Open in Desktop App, then enable or open Solver in desktop Excel.
- Opening the dialog before creating a meaningful model. Solver can open with an empty or incomplete setup, but it cannot optimize a problem without an objective formula and appropriate changing cells. Create and check those worksheet elements first.
- Confusing enabling Solver with solving. Checking the add-in only makes the command available. It does not change values or calculate an optimal result until you configure the parameters and select Solve.
- Choosing constraints or a method without checking the model. A missing limit can produce an unrealistic answer, while an unsuitable solving method can fail to find a useful result. Confirm that the worksheet formulas reflect the real problem.
Tips
- Save a working copy before solving. Solver changes the values in the decision cells when it finds a solution. Keeping a copy makes it easy to compare the original assumptions with the proposed result.
- Give the model clear cell labels. Label the objective, decision variables, and constraints on the sheet. Descriptive labels make it easier to select the right cell ranges in the Solver Parameters dialog and review them later.
- Check that formulas recalculate from the decision cells. If changing a decision cell manually does not affect the objective formula, Solver has no useful path to optimize. Review the formula references and make sure the objective depends on the variables you selected.
- Start with a simple model. Test a small version with a few changing cells and constraints before adding more complexity. If Solver works on the simple version, add the remaining formulas or limits gradually.
- Remember that settings belong to the workbook. Solver parameters are generally saved with the workbook. If you share the file, the recipient may need the Solver Add-in enabled on their own computer to open the Solver dialog and run the model.
- Use the correct solving method for the formulas. Linear models typically suit Simplex LP. Smooth nonlinear models commonly use GRG Nonlinear. If formulas include discontinuities, logical choices, or integer restrictions, the Evolutionary method may be a better fit, though it can take longer.
Troubleshooting
Solver is missing from the Data tab: Go back to File > Options > Add-ins, set Manage to Excel Add-ins, and select Go. Check whether Solver Add-in is selected. If it is not, select it and confirm. If it is already selected, clear the checkbox, select OK, reopen the dialog, select it again, and restart Excel. Also maximize the window and inspect the far right of the Data ribbon, since a narrow window can hide or compress commands.
Solver is not listed in the Add-Ins dialog: Verify that you are in the Excel Add-ins dialog, not COM Add-ins. If Solver still does not appear, your Excel installation may be incomplete, your organization may have disabled it, or your version may not support the add-in. Install or repair Office through the approved account or contact your administrator. Do not download Solver from an unfamiliar third-party site.
Excel asks for an installation source or administrator access: This can happen when the feature was not installed locally or is controlled by workplace policies. Follow the organization’s software installation process or ask IT to enable the built-in Solver Add-in. Avoid changing system permissions or installing files from an unverified source.
The Solver dialog opens but will not solve: Confirm that the objective cell contains a formula, the changing cells are correct, and constraints use the intended cell references and comparison signs. Check for formulas that return errors, impossible constraints, or a model with no feasible solution. Try the solving method suited to the formula type, and use a reasonable starting value for the decision cells.
You are using Excel for the web: Open the file in the desktop Excel application. Enabling Solver in desktop Excel does not make its dialog available in the browser. If your organization only provides browser access, ask whether desktop Excel is available or use another approved optimization tool.
Frequently Asked Questions
Where is Solver in Excel?
After enabling the Solver Add-in, select the Data tab and choose Solver, usually in the Analysis group. The exact ribbon position can vary.
Is Solver included with Excel?
Solver is a Microsoft Excel add-in, but it may not be enabled by default. Use the Excel Add-ins manager on Windows or Tools > Excel Add-ins on Mac to turn it on.
Can I use Solver in Excel for the web?
No. The desktop Solver Add-in is not available in Excel for the web. Open the workbook in desktop Excel to configure and run Solver.
Why can I see Solver in Add-ins but not on the ribbon?
It may be listed as inactive, or the checkbox may not have been enabled. Open the Excel Add-ins dialog and check Solver Add-in. If it is selected already, restart Excel and inspect the Data tab with the window maximized.
Do I need to install Solver separately?
Usually you enable the add-in included with desktop Excel rather than downloading a separate program. If Excel requests installation media or blocks the feature, use your organization’s approved installation or support process.
Will enabling Solver change my spreadsheet?
Enabling the add-in does not alter worksheet values. Running Solver can change the cells you designate as variables; review its proposed solution and choose whether to keep it or restore the prior values.
Related
- Excel New Note Shortcut: Add and Edit Notes Quickly
- Date Excel Shortcut: Insert Today’s Date
- Excel: How Many Complete Months Are Between Two Dates?
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Day and Date Formats: Codes, Examples, and FixesIn Excel for Microsoft 365 on Windows, a date’s day and date format controls how its value appears,…
- Excel Data Validation With Color: Step-by-Step GuideTo add color to Excel data validation, create a drop-down list with Data > Data Validation, then use…
- Copy Excel Sheet to Word: Methods and FormattingTo copy Excel data into Word, select the cells in Excel, press Ctrl+C, click where the content should…
- Rows Excel Shortcut: Insert, Delete, and Select RowsIn Excel for Microsoft 365 on Windows, select a whole row and press Ctrl+Shift+Plus to insert a new…
- Combine Cells in Excel With a Dash Between Text ValuesTo combine two cells in Excel with a dash between them, place the values in A2 and B2,…
- Count Excel Without Blanks: COUNTA and Other MethodsTo count cells that are not blank in Excel, use =COUNTA(A2:A20), replacing A2:A20 with your range. COUNTA counts…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.