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?

[TABLE="width: 148"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]30.00[/TD]
[/TR]
[TR]
[TD="align: right"]185.00[/TD]
[/TR]
[TR]
[TD="align: right"]4,494.61[/TD]
[/TR]
[TR]
[TD="align: right"]5,418.54[/TD]
[/TR]
[TR]
[TD="align: right"]30.00[/TD]
[/TR]
[TR]
[TD="align: right"]30.00[/TD]
[/TR]
[TR]
[TD="align: right"]30.00[/TD]
[/TR]
[TR]
[TD="align: right"]10,756.61[/TD]
[/TR]
[TR]
[TD="align: right"]4,254.16[/TD]
[/TR]
[TR]
[TD="align: right"]26.81[/TD]
[/TR]
[TR]
[TD="align: right"]180.00[/TD]
[/TR]
[TR]
[TD="align: right"]83.00[/TD]
[/TR]
[TR]
[TD="align: right"]194.00[/TD]
[/TR]
[TR]
[TD="align: right"]194.00[/TD]
[/TR]
[TR]
[TD="align: right"]194.00[/TD]
[/TR]
[TR]
[TD="align: right"]194.00[/TD]
[/TR]
[TR]
[TD="align: right"]1,642.35[/TD]
[/TR]
[TR]
[TD="align: right"]137.64[/TD]
[/TR]
[TR]
[TD="align: right"]194.00[/TD]
[/TR]
[TR]
[TD="align: right"]282.66[/TD]
[/TR]
[TR]
[TD="align: right"]194.00[/TD]
[/TR]
[TR]
[TD="align: right"]489.89[/TD]
[/TR]
[TR]
[TD="align: right"]194.00[/TD]
[/TR]
[TR]
[TD="align: right"]194.00[/TD]
[/TR]
[TR]
[TD="align: right"]790.72[/TD]
[/TR]
[TR]
[TD="align: right"]934.06[/TD]
[/TR]
[TR]
[TD="align: right"]1,344.33[/TD]
[/TR]
[TR]
[TD="align: right"]194.00[/TD]
[/TR]
[TR]
[TD="align: right"]83.00


[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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