solver help

muppet77

Board Regular
Joined
Jan 24, 2004
Messages
223
I have binary 1 or 0 in column a and names in b and prices in c.

binary, name, price

the binary tells me to select or not.

I want to pick 2 from the list of 10 to give the highest total price.

a simple problem but I can't get solver working. I really want to expand and increase from 10 when it works.

I can't get a screen shot as I am on my phone.

any ideas how I do it? I have searched for examples but no use.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
ok in d1 if I have

if(a1=1,c1,"")

in e1 I total up the column c of prices.

and have the numbers 10 to 1 down column c in order, and a condition that the total sum of column a is 2, and column a is binary I still can't get solver to select the numbers 10 and 9 , when e1 (total prices) is set to solve to find the maximum.
 
Upvote 0
As this is difficult to help without seeing the file (how you set up the solver - the problem is very clear to me), please upload the file at a filehosting website.

Excel and the file will store the last settings of the Solver.
 
Upvote 0
thanks many apologies and I agree.

unfortunately I am still on my phone rather than pc.

I did not change the default solver settings.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,135
Members
452,890
Latest member
Nikhil Ramesh

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