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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,924
Messages
6,175,419
Members
452,640
Latest member
steveridge

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