OK Jocote,
Sorry for the confusion. I copied the data to Sheet2 and then recorded a few macros and patched them to work. Use the following code instead on Sheet1
Let me explain what I'm doing in the code. The first thing is to build a helper column that has the Tax ID and then the Absolute Value of the Amount. I build this in column AO. Then I sort by Amt from small to large. This puts the negative values at the top. Now when I sort by the helper column, the negative values will be directly above the same amounts.
After this helper and sorting I start at the bottom of the table and march up the Amt column. If the amounts are the same but one neg and the other positive, I delete the two full rows. By the time I get done leaves all things that you want.
Try this new code on Sheet1. I'm sorry I got it wrong the first try.
Bookmarks