Use Excel Solver to Minimize Inventory Transfers
Question details
Determine transfer quantities between locations that meet ending inventory targets while minimizing transfers or their cost.

- Product
- Microsoft Excel Solver
- Device & OS
- not provided
- Scenario
- A user needs to distribute inventory among locations using an optimization model.
- Observed behavior
- The desired result is a feasible transfer plan with the lowest total quantity, cost, or number of routes used.
List each location’s starting inventory and target, along with the permitted transfer routes and any per-unit costs. For exact targets without external receipts or losses, check that total starting inventory equals total target inventory.
Build a linear inventory transfer model in Excel Solver
Use this model to minimize total units moved or transfer cost while meeting exact inventory targets.
The example uses rows 2–20 for permitted routes and rows 2–6 for locations. Adjust the ranges to match your data. It assumes a location can send only its starting stock, not stock received through another transfer.
In Excel, open File > Options > Add-ins. Select Excel Add-ins in the Manage box, click Go, check Solver Add-in, and click OK. Solver should appear on the Data tab.
Enter each permitted origin in A2:A20 and destination in B2:B20. Enter initial transfer quantities of 0 in C2:C20 and per-unit costs in D2:D20. Leave unused route rows blank.
List locations in H2:H6, starting inventory in I2:I6, and exact targets in J2:J6. In K2, enter =I2+SUMIF($B$2:$B$20,H2,$C$2:$C$20)-SUMIF($A$2:$A$20,H2,$C$2:$C$20), then fill down. In L2, enter =SUMIF($A$2:$A$20,H2,$C$2:$C$20) and fill down to calculate outgoing stock.
In a separate cell, enter =SUM(C2:C20) to minimize units moved, or =SUMPRODUCT(C2:C20,D2:D20) to minimize transfer cost.
Open Data > Solver. Set the objective cell to Min and set C2:C20 as the changing variable cells. Add constraints C2:C20 >= 0, K2:K6 = J2:J6, and L2:L6 <= I2:I6. Add an integer constraint on C2:C20 if units cannot be split. Select Simplex LP, click Solve, and review the results before choosing Keep Solver Solution.

Minimize the number of transfer routes used
Add binary route indicators when the goal is to minimize separate transfer operations rather than the quantity moved.
Prepare inventory transfer worksheets in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open and edit compatible Excel workbooks to organize inventory, targets, and transfer formulas, making it easy to move between office suites. Excel Solver-specific optimization may still require Excel.

Frequently Asked Questions
Where can I find Solver in Excel?
Go to File > Options > Add-ins, select Excel Add-ins under Manage, and click Go. Enable Solver Add-in; it will then appear on the Data tab.
Which Solver method should I use for inventory transfers?
Choose Simplex LP in the Solver Parameters dialog for a linear transfer model. Excel Solver can also handle integer and binary constraints with this method.
How do I minimize transfer costs instead of the number of units?
Create an objective cell with SUMPRODUCT over the transfer quantities and per-unit route costs. In Data > Solver, select that cell as the objective and choose Min.
Why might Solver report that no feasible solution exists?
Exact target totals may differ from starting totals, a necessary route may be missing, or availability and integer constraints may prevent a solution. Review the input tables and constraints in Data > Solver.
Can a location send inventory it receives from another location?
The example limits outgoing transfers to starting inventory, so it does not allow that. If relay transfers are permitted, the model needs different availability rules and potentially timing constraints.




