Closest match for a data set

dbcooper88

New Member
Joined
Dec 3, 2016
Messages
36
Hello all. Im looking for the closest match for a data set. Here is the data:



A
B
1
959.5
2
909
3
858.5
4
858.5
5
858.5
6
910
7
758.5
8
808
9
808
10
858.5
11
909
12
757.5

<tbody>
</tbody>


How would you find the three consecutive closest match for the last three B's (858.5,909,757.5)? Answer should be 858.5,910,758 which correspond to A’s 5,6,7. TIA
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hello all. Im looking for the closest match for a data set. Here is the data:



AB
1959.5
2909
3858.5
4858.5
5858.5
6910
7758.5
8808
9808
10858.5
11909
12757.5

<tbody>
</tbody>


How would you find the three consecutive closest match for the last three B's (858.5,909,757.5)? Answer should be 858.5,910,758 which correspond to A’s 5,6,7. TIA

This is a lot of statics. If I were you, I would go for VBA.
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,580
Members
449,089
Latest member
Motoracer88

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