fredericofonseca
IS-IT--Management
Hi all,
As part of my work I have sometimes to reconcile lists of amounts in such a way that any combination of them matches a particular value or list of values.
sample.
a=-100
b=-20
c=20
d=250
e=350
f=700
g=100
I want to find the possible combinations whereby adding 1 or more values match 600.
on the above list the following is possible
a+b+c+d+e+g = 600
a+d+e+g=600
d+e=600
Using Excel up to 2003, I was limited to a maximum of 11+1 values using a list of 1, 0, -1 multiplication/sums.
With 2007 limit a lot higher, but quite a bit of memory required.
I've looked into solver and similar trying to find a way to do the above, but could not managed to get a way to do it.
Anyone has a idea of how this type of calculation could be done with excel 2003 or 2000 (sometimes only available), for a list of up to 2000 values?
Regards
Frederico Fonseca
SysSoft Integrated Ltd
FAQ219-2884
FAQ181-2886
As part of my work I have sometimes to reconcile lists of amounts in such a way that any combination of them matches a particular value or list of values.
sample.
a=-100
b=-20
c=20
d=250
e=350
f=700
g=100
I want to find the possible combinations whereby adding 1 or more values match 600.
on the above list the following is possible
a+b+c+d+e+g = 600
a+d+e+g=600
d+e=600
Using Excel up to 2003, I was limited to a maximum of 11+1 values using a list of 1, 0, -1 multiplication/sums.
With 2007 limit a lot higher, but quite a bit of memory required.
I've looked into solver and similar trying to find a way to do the above, but could not managed to get a way to do it.
Anyone has a idea of how this type of calculation could be done with excel 2003 or 2000 (sometimes only available), for a list of up to 2000 values?
Regards
Frederico Fonseca
SysSoft Integrated Ltd
FAQ219-2884
FAQ181-2886