Excel Solver Constraint Not Working

coral007

New Member
Joined
Apr 29, 2020
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I'm struggling with the Excel Solver option.

I have a table, and want to have fixed constraints for the sum of each row; e.g. $D$15:$D$20 = 200.

However, Excel solves this putting 200 into each cell of that row. What is going wrong here?
(I'm solving for min. cost, each row cell is multiplied with a cost for that specific delivery type, if this info helps).

Many thanks
Coral
 

Attachments

  • Capture.PNG
    Capture.PNG
    168.1 KB · Views: 26

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Welcome

See if this example helps:

solver.PNG


bank accounts.xlsx
ABCDEFGH
35MaterialProduct AProduct BProduct CProduct DAvailableUsedLeft
36M1111325023218
37M231122202200
38M3212123522510
39M415228758750
40M531343002982
41
42Unitary profit$15,0$30,0$20,0$25,0
43Produced2,0000000159,000000023,000000016,0000000
44Profit$30,0$4.770,0$460,0$400,0
45Total produced200
46Total profit$5.660,0
Sheet1
Cell Formulas
RangeFormula
G36:G40G36=[@[Product A]]*$B$43+[@[Product B]]*$C$43+[@[Product C]]*$D$43+[@[Product D]]*$E$43
H36:H40H36=[@Available]-[@Used]
B44:E44C44=C42*C43
B45:B46B45=SUM(B43:E43)
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top