help with comparing data in two different columns - please


New Member
Aug 1, 2010
Hi all, hope you guys can help solve a practical accounting problem, and save me a lot of time in the process.

You see, the problem is quit simple, as it is all a matter of checks and balances, as the example illustrates.

Take for instance situation A, were someone has an outstanding debt of 100 on the 1. of january and later on the 2. of january settles the account by making a payment of the exact amount as the outstanding debt.

Now that was the simple situation. Now lets turn to the more realistic situation B, where you have some large outstanding debts, and then a lot of patial payments, such as illustrated in Situation B. In the example there are some combinations of incoming payments that balances the outstanding debt of 200. (eg. both 55 + 45 + 100 = 200 as does the combination 150 + 50). Now the quistion for you is: Is there a way to configure excel to automaticly suggest that both the 3 incomings payments of 55+45+100 equals 200 but at the same time it also suggests that 150 + 50 equals 200?. That is to say ... ask excel to compare all the values in coloum "incoming payment" with one of the amounts in the "outstanding debts" coloum and then find the right combinations? :rolleyes:

There are no other data available to cross reference with, other than the amounts. (of course in reality this is not the case)

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.


New Member
Aug 1, 2010
Yep! That is exactly the problem and the solution! thank you very much "alphafrog".:)

Now do you or anyone else know how I get this macro to work (i see it from wayback in 2002). I must admit its the first time i try using a macro so im not sure of the procedures? Is there an guide/tutorial I can use to get this macro working?

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Latest member

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...