Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»How to Use Solver in Excel (Step-By-Step Guide)

    How to Use Solver in Excel (Step-By-Step Guide)

    Nisha GurungBy Nisha GurungMay 25, 2023 Excel 8 Mins Read

    Solver is one of Excel’s add-ins built to perform What-If Analysis. Just like Goal Seek, you can determine the input value required to obtain the formula results, but in a more advanced way. 

    Solver accepts more than one variable cell value. Here, you can specify the objective to return the exact target, minimum, or maximum values. Similarly, you can also add constraints to limit the variables to a particular condition. 

    For example, you can calculate the estimated sales number and the price of XYZ products in only integers to achieve a profit of 45,000.

    You could also use Solver to make critical decisions for businesses based on What-If analysis such as maximizing profits, creating budgets, minimizing company costs, and many more.

    How to Insert Solver in Excel?

    Solver add-in comes in-built with the Excel app installation. But, you won’t find it in the Data Tab unless you load them to your ribbon. So, check out these steps to insert the Solver add-in to Excel first. However, if you’ve already loaded them, skip this step. 

    1. On your Excel worksheet, go to File Tab.
    2. Click the Options menu at the bottom.
      Click Options menu
    3. On Excel Options, navigate to the Add-ins category. Then, on Manage, ensure you’ve picked Excel Add-ins and click Go.
      On Excel Options, navigate to the Add-ins category
    4. Under Add-ins available, tick the box for Solver Add-in and click OK.
      Under Add-ins available, tick the box for Solver Add-In and click OK
    NOTE: In case you don’t see the Solver Add-in in the Add-In box, it might not have been installed on your PC. During such situations, select the Browse option in the Add-In box and pick Yes when prompted to install the add-in.

    How to Use Solver in Excel?

    After you’ve added the Solver Add-in, it’ll appear on the Excel’s Data tab. To use Solver, I have split the methods into two steps for more clarity. Basically, you just need to form a model for your problem and input data in Solver.

    Here, I have provided an example to find out the variable values for the exact target amount using Solver. 

    Step 1: Specify the Problem

    Firstly, you need to specify the problem that you want Solver add-in to fix for you. It is a very crucial step. When you’re defining a problem, there are three things you should notably point out. Take a look at them first. 

    Variable Cells: Define a cell or a value you want to change so that it meets your objective.
    Constrained Cells: Restrictions or certain conditions for Variable Cells.
    Objective Cells: The Target you wish to achieve in a problem. Your Objective Cells must contain a formula.

    Scenario: Let’s assume my company is selling books for Client A. According to their price deal, I calculated a profit of 450,000 with the estimated Revenue and Total Costs of Books to be Sold.

    Problem: Now, my client wants to earn a total profit of 5,50,000 from Book Sales. So, I need to find out how many books I must sell and at what price to achieve that goal.

    1. Objective Cell: $B$9 (Total Profit)
    2. Variable Cell: $B$2:$B$3 (Since we can’t change the actual cost of the book, we will assign the estimated cost and books for sale to meet the object)
    3. Constraints: $B$2:$B$3 = integer (It won’t return numbers in decimal value)

    Step 2: Use Solver to Fix the Problem

    Once we’ve identified the problem, objective, and variable cell, we will input the values in the Solver Parameters box to solve them. 

    1. On your sheet, navigate to Data Tab. Then, in the Analyze section, click Solver.
      navigate to Data Tab. Then, in the Analyze section, go to Solver
    2. On the Solver Parameters box, set the Objective first. As shown in the image, my goal is cell $B$9 (Total Profit) set to a Value of 550000.
      my goal is cell $B$9 (Total Profit) set to a Value of 550000
    3. Now, on By Changing Variable Cells, select Variable Cell references.
      select Variable Cell references 
    4. Next to Subject to the Constraints, click Add. 
      next to Subject to the Constraints, click Add
    5. On Add Constraint window, select Cell Reference and set the Constraint. You can expand the drop-down menu and choose a relationship (<=, =>, =, int, bin, or dif). Here, we set $B$2:$B$3 = integer. When done, click OK.
      Here, we set B2-B3 integer Constraint
    6. Hit Solve.
      Hit Solve
    7. On the Solver results box, hit OK to confirm.
      On the Solver results box, hit OK to confirm

    According to my target, the Solver program changed the estimated books to be sold and the market value of the book price. To gain 550000 profit, I need to sell a total of 2750 books at 500 cost per book.

    How to Choose Solver Methods?

    If you’ve noticed, the Solver Parameters window has a Select a Solving Method menu. When you expand the drop-down, you can see three options – GRG Nonlinear, Simplex LP, and Evolutionary. These menus are the algorithms that the solver uses to generate answers based on the problems. 

    • GRG Nonlinear: Pick this menu to solve nonlinear problems.
    • Simplex LP: Choose this method to solve linear problems.
    • Evolutionary: Select Evolutionary if you have non-smooth problems. 

    In case you do not know whether your problem is linear or non-linear, leave the default solver method to GRG Nonlinear as it is. 

    Other Applications of Solver in Excel 

    I provided the basic example of using Solver to attain the exact target value above. But, you can also set Maximum and Minimum objectives in Solver for your data. Check out these two examples to learn how to do so.

    Example 1: Set Maximum Objective In Solver

    Scenario: I have the data for three products – HandBag, Bagpack, and Wallet. I have the total hours required to make each product and the profit I want to obtain from each product.  

    Problem: We have total 40 working hours in a week. I need to find out how many number of products I need to make in 40 hours to get the maximum profit. 

    In my case, these are the objective, variable, and constraints for the problem. I suggest you identify these problem models first and note them down as I did. It just makes it so easier to input the value in Solver.

    • Objective Cell:  $B$7 
    • Variable Cell: $B$2:$D$2 
    • Constraint:
      • $E$3<=$B$6 (Total hours required to make product must be less than or equal to 40 hours)
      • $B$2:$D$2 = integer (I do not want the value of a total number of products to return in decimal format.)
      • $B$2:$D$2 >=1 (Total number of products to make should be greater than one.)
    1. From Data Tab, select Solver.
      navigate to Data Tab. Then, in the Analyze section, go to Solver
    2. On Solver Parameters, enter your Cell reference and choose Max. I set the objective for cell $B$7 to Max.
      On Solver Parameters, set the objective
    3. On By Changing Variable Cells, select the Cell ranges using the Collapse icon. Then, to insert the Subject to the Constraints, click Add.
      set the changing variable and click Add for Constraints
    4. On Add Constraint, set your Constraint. If you have more constraints, click Add to insert all of them one by one. When done, click OK.
      On Add Constraint, set your Constraint
    5. Finally, hit Solve.
      Finally, hit Solve
    6. Click OK to confirm.
      Click OK to confirm

    According to the Solver tool, we need to produce a total of 10 products in 40 hours to get a maximum profit of 19500 in a week. 

    Example 2: Set Minimum Objective In Solver

    Getting Maximum value is not always the case in the practical business world. For Instance, if you’re handling logistics companies, your primary goal would be to reduce the shipping charge as low as possible to increase profit. 

    Scenario: My company has two Warehouses: Warehouse 1 and Warehouse 2. From these two warehouses, I need to ship products to Client A, Client B, and Client C. I have the cost of shipping per unit in Table 1 and the client’s order quantity in Table 3. 

    Problem: I need to calculate how many total orders I must deliver from each warehouse for all clients to get a very minimum shipping cost in Table 2.

    • Objective cell: $B$12 (Total Cost)
    • Changing Variable Cell: $B$7:$D$8 
    • Constraints: 
      • $B$9:$D$9 = $B$15:$B$17 (The total number you deliver to the client should match their demand)
      • $B$7:$D$8 <= $F$7:$F$8 (The number of orders you deliver from each Warehouse should be less than or equal to Available inventory.)
      • $B$7:$D$8 int (We want an integer number and not a decimal number)
    1. On your Data tab, click Solver.
      On your Data tab, click Solver
    2. On Solver Parameters, Set your objective. According to the scenario, my objective is to return Min Value in $B$12.
      On Solver Parameters, set your objective
    3. Select cells for By Changing Variables Cells. For Constraints, click on the Add button.
      Select cells for By Changing Variables Cells
    4. On Add Constraint box, set your Constraint and click OK. (If you have more constraints, hit Add to insert them)
      On Add Constraint box, set your Constraint and click OK
    5. Finally, click Solve.
      click Solve
    6. Hit OK to confirm. 

    According to the Solver, I need to distribute 61965 orders from Warehouse 1 and 18000 orders from Warehouse 2 to get a low minimum shipping cost .i.e 227662.

    Excel Basics
    Nisha Gurung

      As a Business Student, Nisha first used Excel to outline data trends for her college projects. Later, she started exploring basic Excel functions when she realized it is a powerful tool for all businesses today. Nisha believes she can relate to many of the issues users face when starting their Excel Journey. She uses this knowledge and experience to curate contents that are fit for all types of Excel users. Apart from writing, she enjoys reading books and traveling.

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • How to Insert Solver in Excel?
      • How to Use Solver in Excel?
        • Step 1: Specify the Problem
        • Step 2: Use Solver to Fix the Problem
      • How to Choose Solver Methods?
      • Other Applications of Solver in Excel 
        • Example 1: Set Maximum Objective In Solver
        • Example 2: Set Minimum Objective In Solver
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.