- Mar 3, 2001
 
- 8,859
 
- 4
 
- 0
 
OK suppose I have x amount of numbers and a sum.  I want to figure out all possible combinations of the x numbers that would equal that sum.  Easy example:
x=5
numbers are: 2, 5, 7, 8, 10
sum=15
combinations are: 7,8 and 5,10 and 2,5,8
now suppose:
x=300
numbers are dollar amounts ranging from $2.50 to $30,000
sum=$48,584.13
is there a way to plug in all the x numbers and the sum and have a formula tell you all possible combinations?
			
			x=5
numbers are: 2, 5, 7, 8, 10
sum=15
combinations are: 7,8 and 5,10 and 2,5,8
now suppose:
x=300
numbers are dollar amounts ranging from $2.50 to $30,000
sum=$48,584.13
is there a way to plug in all the x numbers and the sum and have a formula tell you all possible combinations?
				
		
			