I have an accounting problem. I need to clean up a list of about 17000 lines. Incoming and outgoing payments have to be matched, meaning the sum of a group of invoices is exactly zero. The system has matched about 200 of them and I found about 300 more where debit and credit are exactly the same. That leaves about 16.500 lines where the combination consists of three or more lines.
I am looking for a solution where I use VBA to identify any combination of three lines that add up to zero and mark those lines.
I found lots of references to this problem in general but they are very complex for me to understand and adapt accordingly. By limiting the number of lines to exactly three, I hope there is a simpler solution.
I am looking for a solution where I use VBA to identify any combination of three lines that add up to zero and mark those lines.
I found lots of references to this problem in general but they are very complex for me to understand and adapt accordingly. By limiting the number of lines to exactly three, I hope there is a simpler solution.