Match dates and amounts by searching and adding amounts together

steve002

New Member
Joined
Dec 31, 2018
Messages
1
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.
DATE1AMOUNT1DESIRED SOLUTION1DATE2AMOUNT2DESIRED SOLUTION2
01/01/2019120Matched01/01/2019100Matched
02/01/2019330Matched01/01/201920Matched
31/01/2019165Matched02/01/2019330Matched
15/02/2019250NoMatch31/01/201995Matched
18/02/2019135NoMatch31/01/201955Matched
31/01/201915Matched
15/02/2019245NoMatch
19/02/2019135NoMatch

<colgroup><col span="6"></colgroup><tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Desired solution1 (columns A to F left to right starting row1)
In C1
=if(sumproduct(($D$1:$d$100=$a1)*($E$1:$E$2))=$B1,"matched","nomatch")
Solution 2 in F1
=INDEX($C1:$C100,match($D1,$A1:$A100,0))

Pull down as needed

PS the numbers in col AMOUNT2 are left aligned. Is it the same in your spreadsheet ( when manual alignment is removed)?
 
Last edited:
Upvote 0
Another option:

ABCDEFG
1DATE1AMOUNT1DESIRED SOLUTION1DATE2AMOUNT2DESIRED SOLUTION2
21/1/2019120Matched1/1/2019100Matched
31/2/2019330Matched1/1/201920Matched
41/31/2019165Matched1/2/2019330Matched
52/15/2019250NoMatch1/31/201995Matched
62/18/2019135NoMatch1/31/201955Matched
71/31/201915Matched
82/15/2019245NoMatch
92/19/2019135NoMatch

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C2=IF(SUMIF(D:D,A2,E:E)=B2,"Matched","NoMatch")
F2=IF(SUMIF(A:A,D2,B:B)-SUMIF(D:D,D2,E:E),"NoMatch","Matched")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,717
Members
449,050
Latest member
MiguekHeka

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?

Disable AdBlock

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
Back
Top