Skip to content

Kuba27x/Excel-20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

🧮 Excel-20

Status Excel Solver Analysis


✨ Project Description

Excel-20 is a practical guide to using the Solver Add-In and performing Sensitivity Analysis in Microsoft Excel.
Find examples, clear explanations, and screenshots to help you use Solver efficiently for real decision-making problems.

📚 Goal: Help you optimize decisions and perform sensitivity analysis—ideal for both beginners and advanced users!


📒 Table of Contents


🧮 Solver

Excel includes a tool called Solver that uses techniques from operations research to optimize decisions in various problems.

To load the Solver Add-In:

  1. On the File tab, click Options.
  2. Under Add-ins, select Solver Add-in and click Go.

Solver Add-in Menu

  1. Check Solver Add-in and click OK.

    Solver Add-in Check

  2. Find Solver on the Data tab, in the Analyze group.

    Solver on Data Tab


🏷️ First Example: Product Mix

The model to solve:

Product Mix Model

  • Task: Find optimal order quantities for bicycles, mopeds, and child seats.
  • Constraints: Capital and storage used must not exceed resources available.
  • Objective: Maximize total profit.

🗂️ Named Ranges (Product Mix)

🔤 Range Name 📋 Cells
UnitProfit C4:E4
OrderSize C12:E12
ResourcesUsed G7:G8
ResourcesAvailable I7:I8
TotalProfit I12

Insert the following three SUMPRODUCT functions as needed.

SUMPRODUCT in Product Mix

📝 Tip: You can use trial and error, but Solver finds the optimal solution quickly!


  1. On the Data tab, in the Analyze group, click Solver.

  2. Enter the Solver parameters as shown:

    Solver Parameters

    Solver Constraints

    • Check Make Unconstrained Variables Non-Negative
    • Select Simplex LP
  3. Click Solve.

Result:

Optimal Result

Optimal Solution

It is optimal to order 94 bicycles and 54 mopeds for a maximum profit of 25600. All resources are used.


🚚 Second Example: Transportation Problem

  • Task: Find how many units to ship from each factory to each customer to minimize total cost.

Transportation Model

  • Constraints: Each factory has a fixed supply, each customer has a fixed demand.
  • Objective: Minimize total transportation cost.

🗂️ Named Ranges (Transportation)

🔤 Range Name 📋 Cells
UnitCost C4:E6
Shipments C10:E12
TotalIn C14:E14
Demand C16:E16
TotalOut G10:G12
Supply I10:I12
TotalCost I16

Insert the required functions:

SUMPRODUCT in Transportation


  1. On the Data tab, click Solver.

  2. Enter parameters as shown:

    Solver Parameters

    • Add necessary constraints.
  3. Click Solve.

Result:

Optimal Solution

Minimum cost: 26000. All constraints satisfied.


🚦 Third Example: Shortest Path Problem

  • Task: Find the shortest path from node S to node T in an undirected network.

Shortest Path Model

  • Net Flow (Flow Out - Flow In) of each node should equal Supply/Demand.
  • Objective: Minimize the total distance.

🗂️ Named Ranges (Shortest Path)

🔤 Range Name 📋 Cells
From B4:B21
To C4:C21
Distance D4:D21
Go F4:F21
NetFlow I4:I10
SupplyDemand K4:K10
TotalDistance F23

Insert the necessary functions:

Shortest Path Functions

Shortest Path Functions 2


  1. On the Data tab, click Solver.

  2. Enter parameters as shown:

    Solver Parameters

  3. Click Solve.

Result:

Optimal Solution

Shortest path: S → A → D → C → T (Total distance = 11).


🧪 Sensitivity Analysis

Sensitivity analysis shows how the optimal solution changes when coefficients in the model change.

  • Use Solver for the first example.

  • Before clicking OK, choose Sensitivity from the Reports section.

    Sensitivity Report Option

See the report:

Sensitivity Report

  • Reduced Cost: How much objective coefficients (unit profits) can change before the solution changes.
  • Shadow Price: How much the optimal solution changes if right-hand side values (resources) change by one unit.

📷 Screenshots

All screenshots referenced above can be found in the /Screenshots folder.


ℹ️ Requirements

  • Microsoft Excel (recommended: 2021/365 for modern formulas)
  • Solver Add-In enabled

👨‍💻 Author

Project and documentation by Kuba27x
Repository: Kuba27x/Excel-20


Releases

No releases published

Packages

No packages published