Choosing numbers from a list

Ron Matthews

Board Regular
Joined
Feb 4, 2008
Messages
51
I have the following list of numbers,from which I have to choose numbers which add up to 6649.35
I have tried to use Solver, but it seems not to be able to find an answer. I suspect I am doing somerthing wrong in Solver and am anxious to see if someone at Mr.Excel can assist please?

30.00
185.00
4,494.61
5,418.54
30.00
30.00
30.00
10,756.61
4,254.16
26.81
180.00
83.00
194.00
194.00
194.00
194.00
1,642.35
137.64
194.00
282.66
194.00
489.89
194.00
194.00
790.72
934.06
1,344.33
194.00
83.00



<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You can do this in the solver. Assuming the data you have above is in column A (A1:A29). Leave Column (B1:B29) open to be your variables in Solver. Column C is the product of Column A and Column B (example C1=A1*B1 down to C29 = A29*B29). C30 = sum of C1:C29.

In solver you would set:
Set Objective = C30
To Value of: 6649.35
By Changing Variable Cells: B1:B29
Constraint B1:B29 = Binary

Use the solver method of Simplex LP and the solve. The lines in column B that have a 1 are the values that add up to your total.
 
Last edited:
Upvote 0
:confused: Many thanks, however, I would like some further help and assistance.

I tried out the suggested solution but my Excel for Mac 2011 version could not find a solution - it continued to time out.

Is this normal? Is there any way we can overcome this problem?

Main concern is I have done something wrong which is stopping Solver from completing a solution.
 
Upvote 0
Yes, can confirm I used this method.

I just get a time out and no solution, irrespective of either method used. I am interested to know if you got a solution using the simple method. If you did, it suggests I am doing something wrong?.
 
Upvote 0

Forum statistics

Threads
1,214,566
Messages
6,120,266
Members
448,953
Latest member
Dutchie_1

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