[QUOTE 5416694, member: 9609"]Is there a way, through a formula/equation to determine if a combination of numbers from a list adds up to a specific value. For instance, from the following list is there a combination that adds up to 250 and if not what is the closest I can get to 250 (can only use any number once)
2
19
27
49
79
46
21
5
49
71
6
4
82
6
31
39
other than cracking this by going through every combination is there a simple way, I will be working with lists with 500+ numbers[/QUOTE]
Can the same number appear in the list more than once? If not, the solution will be a lot easier.