Excel VBA: identify all possible combinations -
i have 2 accounting records try match. accounting record 1 contains following (eg.) data:
a=100, b=150 , c=210.
accounting record 2 contains following (eg.) data:
x1=55, x2=45, x3=90, x4=60, x5=80, x6=70, x7=20 , x8=40.
mention should made data in both accounting records can both negative , positive.
all 3 transactions presented within accounting record 1 sum of @ least 1 transactions within accounting record 2. no doubling transactions considered.
specifically, need excel vba code me following results:
a=x1+x2; b=x3+x4; , c=x5+x6+x7+x8.
since b can equal x3+x7+x8, need code loop through possible solutions until transactions within accounting record 2 allocated.
any tips or recommended steps take?
many thanks!
Comments
Post a Comment