Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JimBunch
 
Posts: n/a
Default How to find a find a list of possible inputs to sum a known amt?

I have a known dollar amount and a range of lesser dollar amounts that I need
to find possible sinarios that will add up to the known dollar amount.
Example:

Known Amt = $30
Range of Numbers:
a=$10
b=$10
c=$50
d=$20
e=$30
f=$15
g=$5
possiblilites: (a,d)(b,d)(a,f,g)(b,f,g)(e)

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default How to find a find a list of possible inputs to sum a known amt?


Try this link:
http://tinyurl.com/7j3x2

HTH
Kostis Vezerides

JimBunch Wrote:
I have a known dollar amount and a range of lesser dollar amounts that I
need
to find possible sinarios that will add up to the known dollar amount.
Example:

Known Amt = $30
Range of Numbers:
a=$10
b=$10
c=$50
d=$20
e=$30
f=$15
g=$5
possiblilites: (a,d)(b,d)(a,f,g)(b,f,g)(e)

Any ideas?



--
vezerid
------------------------------------------------------------------------
vezerid's Profile: http://www.excelforum.com/member.php...o&userid=28481
View this thread: http://www.excelforum.com/showthread...hreadid=513997

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme
 
Posts: n/a
Default How to find a find a list of possible inputs to sum a known amt?

In A1:G1 enter your values 10,10,50,20,30,15,5
In A2:G2 enter seven 0's
Copy down to row 8
Now in the matrix A2:H8 make the diagonal 1
(eg A2, B3, C4 ... make 1's) ---- this gives us different starting
conditions for Solver
In H2 enter =SUMPRODUCT($A$1:$G$1,A2:G2)
Copy this down to G8
Start Solver; make the Target blank
Make By Changing: A2:G8
Add constraint A2:G8 Bin (binary - we want 0 or 1 in each cell)
Second constraint H2:H8 = 30
Run Solver
I got these answers
$10 $10 $50 $20 $30 $15 $5
1 0 0 0 0 1 1 30
0 1 0 0 0 1 1 30
0 1 0 1 0 0 0 30
0 0 0 0 1 0 0 30
0 0 0 0 1 0 0 30
0 1 0 0 0 1 1 30
0 1 0 1 0 0 0 30


--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"JimBunch" wrote in message
...
I have a known dollar amount and a range of lesser dollar amounts that I
need
to find possible sinarios that will add up to the known dollar amount.
Example:

Known Amt = $30
Range of Numbers:
a=$10
b=$10
c=$50
d=$20
e=$30
f=$15
g=$5
possiblilites: (a,d)(b,d)(a,f,g)(b,f,g)(e)

Any ideas?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find all from a list vanjan Excel Discussion (Misc queries) 1 September 28th 05 04:10 PM
How do I find a name in a list of names? Cat Excel Worksheet Functions 2 September 7th 05 04:47 PM
find same numbers in a list in Excel Ekser Excel Discussion (Misc queries) 3 June 1st 05 02:47 PM
How do I find data from a list (or table) and insert it in a row? Bobgolfs56 Excel Discussion (Misc queries) 1 February 3rd 05 12:51 AM
Find a duplicate value within a list? Arla M Excel Worksheet Functions 2 January 26th 05 10:04 PM


All times are GMT +1. The time now is 10:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"