How to Use Solver in Excel (Step-by-Step Guide for Beginners)

Microsoft Excel is not just for basic calculations—it can also help you solve complex decision-making problems. One of its most powerful tools is Solver, which allows you to find the best possible result by adjusting values based on rules you set.

In this guide, you’ll learn how to use Solver in Excel with clear, step-by-step instructions, so you can easily follow along even if you’re new to it.

What is Solver in Excel?

Solver is an optimization tool that helps you:

  • Maximize a value (like profit)
  • Minimize a value (like cost)
  • Or set a value to a specific number

It works by changing selected cells (called variable cells) while following conditions (called constraints).

How to Use Solver in Excel

Step 1: Enable Solver in Excel

Before using Solver, you need to activate it.

Enable Solver in Excel (Windows)

  1. Open Microsoft Excel
  2. Click File
  3. Click Options
  4. Select Add-ins
  5. At the bottom, find Manage: Excel Add-ins, then click Go
  6. Check Solver Add-in
  7. Click OK

After this, go to the Data tab and you will see the Solver button.

Enable Solver in Excel (Mac)

If you are using Excel on a Mac, the steps are slightly different.

  1. Open Microsoft Excel
  2. Click Tools in the top menu
  3. Select Excel Add-ins
  4. In the Add-ins window, check Solver Add-in
  5. Click OK

How to enable Solver in Excel

Once enabled, you can find Solver under the Data tab, just like in Windows.

Solver in Excel

Step 2: Prepare Your Data (Example Setup)

Let’s create a simple example where you want to maximize profit.

Problem:

  • Product A profit = 50 per unit
  • Product B profit = 40 per unit
  • Total production limit = 100 units
  • Product A must be at least 10 units

Enter this in Excel:

CellDescriptionValue
A1Product
B1Units
C1Profit/Unit
A2Product A
A3Product B
B2Units A10
B3Units B10
C2Profit A50
C3Profit B40

Create Total Profit Formula

In cell B5, enter:

= (B2*C2) + (B3*C3)

This cell (B5) is your objective cell.

Step 3: Open Solver

  1. Click the Data tab
  2. Click Solver

Solver in Excel

The Solver Parameters window will appear.

Step 4: Set the Objective

Inside the Solver window:

  1. In Set Objective, select cell B5 (total profit)
  2. Choose Max (since we want to maximize profit)

Solver Parameters

Step 5: Select Variable Cells

In By Changing Variable Cells, select B2:B3 (these are the number of units for Product A and B)

Step 6: Add Constraints (Important Step)

Click Add and enter the following constraints one by one:

Constraint 1: Total Units Limit

If you have a helper cell (e.g., B6 = B2 + B3), then:

  • Cell Reference: B6
  • Relation: ≤
  • Value: 100

Constraint 2: Minimum for Product A

  • Cell Reference: B2
  • Relation: ≥
  • Value: 10

Constraint 3: No Negative Values

  • Cell Reference: B2:B3
  • Relation: ≥
  • Value: 0

Click OK after adding all constraints.

Step 7: Choose Solving Method

At the bottom of the Solver window:

  • Select Simplex LP (best for linear problems like this)

Step 8: Solve the Problem

  1. Click Solve
  2. Wait for Excel to process
  3. Select Keep Solver Solution
  4. Click OK

Step 9: Check the Results

After solving:

  • Cells B2 and B3 will change automatically
  • These values represent the best number of units to produce
  • Cell B5 will show the maximum profit

Step 10: Save or Reuse the Model (Optional)

If you plan to use Solver again:

  1. Click Solver
  2. Click Load/Save
  3. Save your model setup

This allows you to reuse your constraints and settings later.

Tips for Beginners

When using Solver for the first time, always double-check your formulas before solving. Even a small mistake in your formula can lead to incorrect results. It also helps to use helper cells for totals or limits, as this makes constraints easier to manage.

If Solver doesn’t give the expected result, review your constraints carefully. Missing or incorrect constraints are the most common issue.

Conclusion

Now that you know how to use Solver in Excel step by step, you can start solving real-world problems more efficiently. Whether you’re trying to maximize profit, minimize expenses, or find the best combination of values, Solver makes the process faster and more accurate.

With practice, you’ll be able to apply Solver to more advanced scenarios and make better data-driven decisions using Excel.

Read Also: How to Use Goal Seek in Excel: Step-by-Step Guide with Example

Something to clarify? Write it below