Set of amounts that sums to zero

vds1

Well-known Member
Joined
Oct 5, 2011
Messages
1,187
ID_SPARID_ITORAMOUNTDESIRED OUTPUT
32218764448945-51471.74Matched
32218764448945-54452.02Investigate
3221876444894522239.20Matched
3221876444894529232.54Matched
32276544448974-28956.90Matched
32276544448974-25917.90Investigate
3227654444897428956.90Matched
3227678444895234569.00Investigate
3227679444895345102.00Investigate

<tbody>
</tbody>

Hello Gurus,

For same ID_SPAR and same ID_ITOR , i would like to find the set of amounts which sums up to zero and insert Matched in column D, if not the Investigate. My desired output is in column D which needs to be populated using VBA. Ideally if you filter Desired output by matched then amount sum will be zero.

There could be any number of positive amounts combinations matching to any number of negative amounts combinations.

I have colored the rows which sums the amount to zero. Hope this helps.

VBA or Formula would be appreciated.

Thanks,
 
Last edited:

vds1

Well-known Member
Joined
Oct 5, 2011
Messages
1,187
Oh boy that requires some understanding to do.. Thanks Gerald
 

Forum statistics

Threads
1,082,500
Messages
5,365,935
Members
400,863
Latest member
kimtid

Some videos you may like

This Week's Hot Topics

Top