Excel Practice Test

โ–ถ

What Is Solver in Excel?

If you've ever tried to figure out the best allocation of resources โ€” maximum profit with a limited budget, minimum cost given certain requirements โ€” you already understand the problem Solver is built to solve. Solver is a Microsoft Excel add-in that finds the optimal value for a formula in one cell by adjusting a group of other cells, all while respecting constraints you define.

It's not enabled by default in any version of Excel. You have to turn it on first, which takes about 30 seconds once you know where to look. This guide covers how to add Solver on Excel for both Windows and Mac โ€” including Excel 2010, 2013, 2016, 2019, 2021, and Microsoft 365. You'll walk away knowing exactly where the settings live on each platform, what to do if Solver isn't in the list, how to configure the main parameters correctly, and how to actually use it once it's running.

Solver is technically an optimization engine. At its core, it uses mathematical programming to search through many possible combinations of variable values and find the one that produces the best objective value without violating any constraint. That sounds abstract โ€” but in practice it means asking questions like: what's the cheapest staffing schedule that covers every shift? What mix of investments gives the highest return for a given risk level? What production quantities maximize profit given limited machine time and raw materials?

These are problems that Excel users have been solving with Solver for decades. It's one of the most practical tools in Excel for anyone dealing with resource constraints, tradeoffs, or optimization across multiple variables. You don't need a background in operations research to use it โ€” just a clear understanding of your objective, your decision variables, and the constraints that bound them.

Solver by the Numbers

3
Solving algorithms (Simplex LP, GRG Nonlinear, Evolutionary)
200+
Variable cells supported in a single model
30s
Typical time to enable Solver on Windows or Mac
Excel 5
Version when Solver was first included (early 1990s)

Solver has been part of Microsoft Excel since Excel 5 in the early 1990s, developed by Frontline Systems. The same company still maintains and updates it today, which is why it remains one of the more reliable add-ins in the Office ecosystem. Microsoft ships it as a standard add-in with every copy of Excel โ€” you won't need to download anything separately in most cases, it just needs to be activated.

The process to add Solver in Excel on Mac follows a different path than Windows, but both are straightforward once you know where to look. On Windows you go through the File menu and Options dialog. On Mac you use the Tools menu in the macOS menu bar โ€” not the ribbon.

The exact menu item name matters on Mac: you want Excel Add-ins specifically, not Add-ins or Web Add-ins, which are different lists entirely. If you've tried to enable Solver before and couldn't find it, there's a good chance you were in the wrong menu. Both platforms take about four clicks from start to finish.

One thing that surprises new users: Solver doesn't appear in the ribbon immediately when you open a new workbook even after installing Excel. It's a latent add-in that ships with Excel but waits for you to activate it. Once you've done that on a given machine, it stays enabled across all workbooks on that machine โ€” you don't need to enable it separately for each file. The only time you'd need to re-enable it is after a major Office update or if you've moved to a new computer.

Solver pairs naturally with other data analysis in Excel workflows. If you're comfortable with Excel pivot tables already, Solver takes that analytical mindset further โ€” instead of just summarizing what happened, it tells you what the best outcome can be. Pivot tables describe data; Solver prescribes action.

How to Add Solver in Excel on Windows

The steps below work for Excel 2010, 2013, 2016, 2019, 2021, and Microsoft 365 on Windows. Microsoft kept the same navigation path across all these versions. The key thing to know upfront: Solver is an Excel Add-in, not a COM Add-in. When you reach the Manage dropdown at the bottom of the Add-Ins panel, it must say Excel Add-ins before you click Go โ€” otherwise you'll be looking at the wrong list and Solver won't appear there.

Enable Solver: Platform Instructions

๐Ÿ“‹ Windows (All Versions)

These steps apply to Excel 2010, 2013, 2016, 2019, 2021, and Microsoft 365 on Windows. The menu path is the same across all versions.

  1. Open Excel and click the File tab in the top-left corner of the ribbon.
  2. Select Options near the bottom of the left sidebar. The Excel Options dialog opens.
  3. In the left panel, click Add-Ins.
  4. At the bottom of the Add-Ins panel, find the Manage dropdown. Make sure it says Excel Add-ins, then click Go...
  5. The Add-Ins dialog appears. Check the box next to Solver Add-in.
  6. Click OK.
  7. Open the Data tab โ€” you'll see Solver in the Analyze group on the far right.

Tip: If Solver Add-in doesn't appear in the list, click Browse to locate solver.xlam manually. It's usually under C:\Program Files\Microsoft Office\root\Office16\Library\SOLVER.

๐Ÿ“‹ Mac (Excel for Mac)

These steps apply to Excel for Mac 2016, 2019, 2021, and Microsoft 365 on macOS. The Mac interface routes through the menu bar rather than File Options.

  1. Open Excel on your Mac.
  2. Click the Tools menu in the macOS menu bar at the top of your screen โ€” not the ribbon toolbar.
  3. Select Excel Add-ins... from the dropdown. Important: choose Excel Add-ins specifically, not just Add-ins.
  4. In the Add-Ins dialog, check the box next to Solver Add-in.
  5. Click OK.
  6. Solver now appears under the Data tab in the Analysis group.

Older Mac versions (Excel 2011 or earlier): Click Tools in the menu bar, then Add-ins (without the Excel prefix). Check Solver.xlam or Solver Add-in and click OK.

Note: If Solver doesn't appear in the list at all, you may need to reinstall Microsoft Office or download the Solver add-in from Microsoft's support site.

After enabling Solver, click the Data tab on the ribbon. On Windows, Solver appears in the Analyze group on the far right. On Mac, it's in the Analysis group in the same position. If you don't see it immediately, close Excel completely and reopen it โ€” the add-in sometimes doesn't register until a fresh launch.

One common mistake on Mac: there are two different add-in menus under Tools. Tools > Add-ins and Tools > Excel Add-ins are separate lists. Solver lives in Excel Add-ins, not the plain Add-ins menu. If you went to the wrong one, just go back to Tools and try the other item.

On Windows, if the Manage dropdown shows COM Add-ins instead of Excel Add-ins when you click Go, you'll see a completely different list where Solver won't appear. Reset the dropdown to Excel Add-ins before clicking Go.

Solver Solving Methods at a Glance

๐Ÿ”ด Simplex LP

Use for linear problems where all relationships are proportional โ€” resource allocation, transportation, scheduling. Fastest method, always finds the true global optimum. No starting value sensitivity.

๐ŸŸ  GRG Nonlinear

Use when formulas include products of variables, exponents, logs, or other nonlinear operations. Iterative gradient method โ€” starting values matter. Enable Multistart option for better global coverage.

๐ŸŸก Evolutionary

Use for problems with discontinuous or non-smooth functions that GRG can't handle โ€” IF statements, ABS, ROUND inside the model. Slowest but most flexible. Set a random seed in Options for reproducibility.

Understanding Solver Parameters

Once Solver is enabled, click the Solver button to open the Solver Parameters dialog. Three main sections define your optimization problem, and each one is worth understanding before you enter values.

Set Objective

The objective cell holds the formula you want to optimize. Enter its cell reference, then choose whether to maximize it, minimize it, or hit a specific value. Most use cases are either Max (maximize profit, output) or Min (minimize cost, waste).

The value option is handy for break-even calculations โ€” set it to 0 and ask Solver what variable settings produce a net result of zero. The objective cell must contain a formula that depends on your variable cells either directly or through a chain of references. If it doesn't change when variable cells change, Solver has nothing to work with. Before you click Solve, double-check that the objective cell formula references the variable cell range โ€” this is the most common setup mistake for first-time users.

By Changing Variable Cells

These are the decision variables โ€” the cells Solver is allowed to modify to reach your objective. You might enter a single cell like C2 or a range like C2:C10. Keep this list to only the cells that represent real decisions in your model. Solver won't touch any cell not listed here, so your formulas, constants, and labels stay untouched.

Starting values matter more with GRG Nonlinear and Evolutionary methods than with Simplex LP. With nonlinear solving, Solver starts from wherever your variable cells currently are and moves from there. Put reasonable starting guesses in those cells before clicking Solve โ€” arbitrary zeros or extreme values can lead the algorithm to a poor local solution.

You can also use the Solver Options dialog to set bounds on variable cells without adding formal constraints. This is useful when you know variables must stay within a physical range (for example, a temperature setting between 0 and 100) and you don't want to clutter the formal constraint list.

Subject to the Constraints

Constraints tell Solver what it can't do. Click Add to enter each one. A constraint has three parts: a cell or range on the left, a comparison operator in the middle (=, <=, >=, int, bin, or dif), and a value or cell on the right. If your variables can't go negative, add C2:C10 >= 0. If total budget must stay under $50,000, add D15 <= 50000.

The int option forces variables to whole numbers โ€” useful when scheduling whole shifts or producing whole units. The bin option restricts a variable to 0 or 1 for yes-or-no decisions (include this project or not). The dif option requires all cells in a range to have different values, useful in sequencing and assignment problems where you need unique assignments.

Once everything is configured, click Solve. The results dialog lets you accept the solution (updating your spreadsheet) or restore the original values. It also offers three optional reports: Answer (which constraints were binding or slack), Sensitivity (shadow prices โ€” how much the objective changes per unit change in each constraint's right-hand side), and Limits (ranges within which variables can move without changing the optimal solution). The Sensitivity Report only works with Simplex LP โ€” it's one of the most analytically useful outputs Solver produces, showing you where additional resources would add the most value.

Solver integrates naturally with other modeling tools. Use a slicer in Excel to filter your dataset down to the scenario you want to optimize before running Solver. After getting results, use compare two Excel spreadsheets to put the before and after side by side โ€” a clean way to document what the optimization changed for a report or presentation. This combination of tools โ€” Solver for optimization plus comparison tools for documentation โ€” is a practical workflow that analysts use regularly.

Test Your Excel Knowledge โ€” Free Practice Quiz

Worked Example: Maximizing Profit with Two Products

Here's a concrete problem that shows how to add Solver in Excel on Mac or Windows and put it to work immediately. You run a small business making two products. You want the production mix that gives the highest total profit without exceeding your available labor and materials.

Your data:

Set up the spreadsheet like this:

In Solver: Set Objective = B10, Max. By Changing: C2:C3. Constraints: D2 <= 100, D3 <= 80, C2 >= 0, C3 >= 0. Solving Method: Simplex LP. Click Solve.

Solver returns: C2 = 40, C3 = 20. Total profit = $2,200. Both constraints are binding โ€” you've hit both the labor and material limits simultaneously. That's important information: adding more of either resource would increase profit, and the Sensitivity Report tells you exactly by how much per additional unit. This kind of analysis used to require a specialist. Solver puts it directly in your hands.

This linear programming structure appears constantly in real work. It's how airlines assign crew to flights, manufacturers decide production quantities, and logistics companies route deliveries. The math is identical whether you're optimizing two products or two hundred. Solver handles models with hundreds of variable cells without difficulty, though very large nonlinear models may require specialized software beyond what Excel can offer.

Before You Click Solve: Quick Model Checklist

Objective cell contains a formula that depends on the variable cells
Variable cells have reasonable starting values (not all zeros for nonlinear models)
Every real-world constraint is entered in the constraints list
Non-negativity constraints added if variables can't be negative
Integer constraints added for variables that must be whole numbers
Correct solving method selected: Simplex LP for linear, GRG Nonlinear for curves
Variable cell range doesn't accidentally include formula cells or headers

Troubleshooting Common Solver Issues

Even after knowing how to add Solver in Excel on Mac or Windows, a few problems come up once you start using it on real models.

Solver could not find a feasible solution. Your constraints contradict each other โ€” no combination of variable values satisfies all of them at once. Start by removing the most recently added constraint. If Solver then finds a solution, that constraint is the problem. Review values carefully; a <= where you meant >= is a common typo. Also check that constraint references point to the right cells โ€” easy to misalign after inserting or deleting rows.

Solver keeps running without finishing. Complex problems with many variable cells, or Evolutionary method without tight bounds, can run for a very long time. Open Solver Options (the Options button inside Solver Parameters) and lower Max Time or Max Iterations. This forces Solver to stop and report its best-so-far result. You can also simplify the model โ€” fewer variables, tighter starting bounds, or switching from Evolutionary to GRG Nonlinear where possible.

Solution looks wrong or unreasonable. With GRG Nonlinear and Evolutionary, Solver may find a local optimum rather than the global best. Run Solver several times with different starting values in your variable cells. If you consistently get the same answer from different starting points, it's likely the true optimum. With Simplex LP this isn't a concern โ€” linear problems have exactly one global optimum and Simplex always finds it.

Solver disappears from Data tab after an Office update. Office updates on both Windows and Mac occasionally reset the add-in list. After any major update, check the Data tab. If Solver is gone, re-enable it the same way you first enabled it โ€” takes 30 seconds and doesn't affect your workbooks or saved Solver models.

Different answer each time you run Solver. This happens with the Evolutionary method โ€” it uses random processes so results vary between runs. Set a random seed in Solver Options to make the algorithm deterministic. Alternatively, switch to GRG Nonlinear with the Multistart option turned on, which is generally more reliable for most nonlinear problems and gives consistent results.

Once you're comfortable with Solver, it changes how you approach quantitative decisions in Excel. When you're facing a resource allocation problem with a dozen constraints, it's the fastest path from question to answer. Finance, operations, logistics, supply chain, HR scheduling โ€” wherever tradeoffs and limits intersect, Solver does the heavy lifting that would otherwise require advanced math or endless trial and error. Getting it enabled is the easy part. The rest is building a clear, well-structured model and letting Excel's algorithm do the work.

One last tip that experienced Solver users rely on: save your Solver model before you run it. The Model button in the Solver Parameters dialog lets you save the current setup to a range of cells in your worksheet. That way, if you experiment with different constraints and want to return to a previous configuration, you can load it back instantly.

This is especially useful when testing multiple scenarios โ€” different budget levels, different resource constraints โ€” without rebuilding the model from scratch each time. It's a small habit that pays off significantly once your optimization models become complex with many interacting constraints and decision variables to manage and test.

Solver Add-in: What Works Well and What to Watch For

Pros

  • Free and built into Excel โ€” no additional software or license required
  • Handles linear, nonlinear, and integer programming problems in one tool
  • Sensitivity Report (Simplex LP) provides shadow prices and ranging analysis
  • Scales to models with hundreds of variable cells without performance issues
  • Results are immediately reflected in your spreadsheet โ€” no data export needed

Cons

  • Not available in Excel Online โ€” desktop app required on Windows or Mac
  • Must be manually re-enabled after major Office updates on both platforms
  • GRG Nonlinear and Evolutionary methods can find local optima, not always global
  • Evolutionary method results vary between runs unless a random seed is set
  • Very large nonlinear models with thousands of variables may exceed Solver's practical limits
Practice Excel Questions โ€” Take the Free Quiz

Excel Questions and Answers

How do I add Solver in Excel on Windows?

Go to File โ†’ Options โ†’ Add-Ins. At the bottom, make sure the Manage dropdown says Excel Add-ins, then click Go. Check the box next to Solver Add-in and click OK. Solver will appear in the Data tab under the Analyze group.

How do I add Solver in Excel on Mac?

On a Mac, click the Tools menu in the macOS menu bar (not the ribbon), then select Excel Add-ins. Check Solver Add-in and click OK. Solver will appear in the Data tab. On older versions of Excel for Mac (2011 and earlier), the path is Tools โ†’ Add-ins instead.

Why is Solver not showing in my Data tab?

Solver is an add-in that must be manually enabled โ€” it's not on by default. If it's missing from the Data tab, re-enable it via File โ†’ Options โ†’ Add-Ins (Windows) or Tools โ†’ Excel Add-ins (Mac). Office updates can silently disable add-ins, so this is worth checking after any Office update.

Does Excel Online support the Solver add-in?

No. Solver is not available in Excel Online (the browser version). You need the full desktop version of Excel on Windows or Mac to use Solver. If the button is visible but grayed out, you're likely in a web session โ€” open the file in the desktop app instead.

What solving method should I use in Solver?

Use Simplex LP for linear problems โ€” resource allocation, scheduling, transportation. Use GRG Nonlinear when your formulas include products of variables, exponents, or logarithms. Use Evolutionary only when the other two fail or your functions are non-smooth. When in doubt, try Simplex LP first.

How do I add constraints in Excel Solver?

In the Solver Parameters dialog, click the Add button in the constraints section. Enter the cell or range on the left, choose an operator (<=, =, >=, int, bin, dif) in the middle, and enter the limit value or cell on the right. Click Add to keep entering more constraints, or OK when you're done.
โ–ถ Start Quiz