Multiple criteria and return of closest match

marol

New Member
Joined
Jul 30, 2014
Messages
1
Hello,

Can someone help me to figure out a formula that find the closest match based on two criterias?

I have two sets of data. The date has to match each other in both sets. The amount may match, but can differ within +/- 10. I want to find the match or the closest match. How can this be solved? Example sets:
Set 1:
[TABLE="width: 165"]
<tbody>[TR]
[TD]Date[/TD]
[TD] Amount [/TD]
[/TR]
[TR]
[TD="align: right"]02.06.2014[/TD]
[TD] 6 519 [/TD]
[/TR]
[TR]
[TD="align: right"]02.06.2014[/TD]
[TD] 15 741 [/TD]
[/TR]
[TR]
[TD="align: right"]02.06.2014[/TD]
[TD] 3 164 [/TD]
[/TR]
[TR]
[TD="align: right"]03.06.2014[/TD]
[TD] 29 756 [/TD]
[/TR]
[TR]
[TD="align: right"]03.06.2014[/TD]
[TD] 6 577 [/TD]
[/TR]
[TR]
[TD="align: right"]03.06.2014[/TD]
[TD] 15 741 [/TD]
[/TR]
[TR]
[TD="align: right"]06.06.2014[/TD]
[TD] 4 148 [/TD]
[/TR]
[TR]
[TD="align: right"] 06.06.2014 [/TD]
[TD] 12 949
[/TD]
[/TR]
[TR]
[TD]Set 2:
[TABLE="width: 165"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD="align: right"]02.06.2014[/TD]
[TD] 6 520 [/TD]
[/TR]
[TR]
[TD="align: right"]02.06.2014[/TD]
[TD] 15 741[/TD]
[/TR]
[TR]
[TD="align: right"]02.06.2014[/TD]
[TD] 3 162[/TD]
[/TR]
[TR]
[TD="align: right"]03.06.2014[/TD]
[TD] 29 751[/TD]
[/TR]
[TR]
[TD="align: right"]03.06.2014[/TD]
[TD] 6 577[/TD]
[/TR]
[TR]
[TD="align: right"]03.06.2014[/TD]
[TD] 15 739[/TD]
[/TR]
[TR]
[TD="align: right"]06.06.2014[/TD]
[TD] 4 149 [/TD]
[/TR]
[TR]
[TD="align: right"]06.06.2014[/TD]
[TD] 12 952



[/TD]
[/TR]
</tbody><colgroup><col span="2"></colgroup>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col></colgroup>[/TABLE]
 
Hi
Welcome to the board

Sorry, your post is not clear to me in terms of what is the layout and composition of the expected result.

Can you post the result you expect for the 2 sets of data that you posted?
 
Upvote 0

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