NCNY
Programmer
- Sep 11, 2008
- 5
Hello:
I have an array of numbers, such as:
7.43
35.04
35.10
14.99
46.98
8.55
26.97
132.07
29.72
114.29
2.59
109.40
75.00
2.85
I'd like to have Excel figure out which of these numbers would sum to a specific total, such as 132.50, or whether the solution is impossible with this set.
I've come upon some postings on "VBA code to find multiple matching combinations", but they don't seem to work right for this particular problem. This seems like a "lots of for-loops" type of problem to me, but perhaps anyone already has a code snippet that would do what I like, and wouldn't mind sharing?
Thank you!
I have an array of numbers, such as:
7.43
35.04
35.10
14.99
46.98
8.55
26.97
132.07
29.72
114.29
2.59
109.40
75.00
2.85
I'd like to have Excel figure out which of these numbers would sum to a specific total, such as 132.50, or whether the solution is impossible with this set.
I've come upon some postings on "VBA code to find multiple matching combinations", but they don't seem to work right for this particular problem. This seems like a "lots of for-loops" type of problem to me, but perhaps anyone already has a code snippet that would do what I like, and wouldn't mind sharing?
Thank you!