Set of amounts that sums to zero

vds1

Well-known Member
Joined
Oct 5, 2011
Messages
1,200
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:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Oh boy that requires some understanding to do.. Thanks Gerald
 
Upvote 0

Forum statistics

Threads
1,214,621
Messages
6,120,563
Members
448,972
Latest member
Shantanu2024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top