I need to match amounts of money in one column to the same amount in another column by summing a selection of amounts in the second column for the same day (not all amounts for the same day). It can be the sum of up to four amounts in the second column to equal the first column single figure. There is no relationship between AMOUNT1 column and AMOUNT2 apart from finding matching amounts. There may be no match.
<colgroup><col span="6"></colgroup><tbody>
</tbody>
DATE1 | AMOUNT1 | DESIRED SOLUTION1 | DATE2 | AMOUNT2 | DESIRED SOLUTION2 |
01/01/2019 | 120 | Matched | 01/01/2019 | 100 | Matched |
02/01/2019 | 330 | Matched | 01/01/2019 | 20 | Matched |
31/01/2019 | 165 | Matched | 02/01/2019 | 330 | Matched |
15/02/2019 | 250 | NoMatch | 31/01/2019 | 95 | Matched |
18/02/2019 | 135 | NoMatch | 31/01/2019 | 55 | Matched |
31/01/2019 | 15 | Matched | |||
15/02/2019 | 245 | NoMatch | |||
19/02/2019 | 135 | NoMatch |
<colgroup><col span="6"></colgroup><tbody>
</tbody>