So what I want to do is to be able to give a set of numbers and a target number and be able to get as close to that target as possible without going under.

As a very simple example if I gave it the numbers 1, 2, 3, 100 and a target of 4 it would output 1 and 3, but if I asked it for 10 it would give me 100. Not sure if it’s even possible with calc or not.

Found something that seems close to what I’m looking for here, but I can’t seems to get it to work with Calcs Solver