In the previous one I put the total in and it showed me
the values ( s) as to how it arrived at that total.
Sorry. I completely misunderstood your requirements.
Take a look at
http://www.sulprobil.com/html/accounts_receivable_problem.html .
Even though it is described as an Accounts Receivable problem, it
really is a solution to the general problem of determining which
subset of a list of numbers sum to a specified total.
Hope you can figure out how to use Bernd's implementation, really
attributed to Michael Schwimmer.
There is also a way to use Solver to generate a solution. But I
believe Schwimmer/Bernd's algorithm is faster and more reliable.
But be forewarned: there is no guarantee of a soluion with any
algorithm, and any algorithm might take an inordinate amount of time
to find a solution. In theory, an algorithm might need to consider
2^n combinations, where n is the number of individual values to be
summed -- 25, in your case.
Thanks all thats exactly what I am looking for, that will do the job.
I am sure last time though it was part of the excel `add-in` package.
No matter though this will do as its a one off thing.
The last time I used similar it was indeed several invoices of differing
amounts and I had a payment but could not work it out.
It took just a few seconds for the programme (then) to do it.
Thanks again guys