# help with comparing data in two different columns - please

#### corfixen

##### New Member
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?

There are no other data available to cross reference with, other than the amounts. (of course in reality this is not the case)
[URL="http://img13.imageshack.us/i/capturehn.jpg/"][/URL]

### Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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?

Replies
4
Views
163
Replies
0
Views
179
Replies
6
Views
372
Replies
1
Views
180
Replies
0
Views
72

1,203,174
Messages
6,053,920
Members
444,694
Latest member
JacquiDaly

### 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?

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