Matching debit and credit credit and debit transactions

awhite0320

New Member
Joined
Sep 20, 2018
Messages
5
I have a approximately 35,000 rows of general ledger transactions. The transactions contain both debit and credit amounts and various policy numbers. I need to evaluate the rows to identify the rows, by policy number, that do not net to zero. I would like for the rows that do not zero out return a value of FALSE and the rows that zero out return a value of TRUE. For example:

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Policy Number[/TD]
[TD]AMOUNT[/TD]
[TD]MATCH[/TD]
[/TR]
[TR]
[TD]11111[/TD]
[TD]40.00[/TD]
[TD]TRUE[/TD]
[/TR]
[TR]
[TD]11111[/TD]
[TD]-40.00[/TD]
[TD]TRUE[/TD]
[/TR]
[TR]
[TD]11111[/TD]
[TD]100.00[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD]22222[/TD]
[TD]1250.00[/TD]
[TD]TRUE[/TD]
[/TR]
[TR]
[TD]22222[/TD]
[TD]-1250.00[/TD]
[TD]TRUE[/TD]
[/TR]
[TR]
[TD]22222[/TD]
[TD]3000.00[/TD]
[TD]FALSE[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The false rows are my not matched items. I have a countif formula that i can use but I have to update the range at each change in policy number, which is very tedious when you have 35,000 rows. Can I accomplish my need with an Excel formula or VBA code?

Thanks so much!!
Amy
 
Robert,
Thank you so much for your help! I cannot get this formula to work correctly. I would have expected the false returns to net to zero and they did not.
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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