# Help on Match formula to pair a data within the same column

#### blackorchids2002

##### Board Regular
Hi Masters,

I badly need help on how to use match to pair data within the same column. I would need a formula to pair the data. Below is the table to explain further.

I have columns A to G. I want to pair the weight in column B, then column C and so on and so forth.
For you to pair the data, let say in column F, I could pair 2.100 to 2.130 or I could also pair 2.100 to 1.800. I want to come up in paring within the range of +0.030 and -0.030.

Another example on the same column F, I can pair 2.115 and 2.130. I cannot pair 2.115 and 2.170 because it is not within the weight interval of +-0.030.

I needed help on how to formulate the formula.

 A B C D E F G Weight 1.700 1.800 1.900 2.000 2.100 2.230 1 1.710 1.710 - - - - - 2 1.700 1.700 - - - - - 3 1.680 - - - - - - 4 2.040 - - - 2.040 - - 5 2.170 - - - - 2.170 - 6 2.115 - - - - 2.115 - 7 2.130 - - - - 2.130 - 8 1.840 - 1.840 - - - - 9 2.240 - - - - - 2.240 10 2.100 - - - - 2.100 - 11 2.140 - - - - 2.140 - 12 2.000 - - - 2.000 - - 13 1.800 - 1.800 - - - - 14 2.100 - - - - 2.100 - 15 2.245 - - - - - 2.245 16 2.115 - - - - 2.115 - 17 2.130 - - - - 2.130 - 18 1.825 - 1.825 - - - - 19 2.225 - - - - 2.225 - 20 2.160 - - - - 2.160 -

<tbody>
</tbody>

Cheers,
blackorchids2002

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

#### oldbrewer

##### Well-known Member
 Weight 1.7 1.8 1.9 2 2.1 2.23 1 1.71 1.71 0 0 0 0 0 2 1.7 1.7 0 0 0 0 0 3 1.68 0 0 0 0 0 0 4 2.04 0 0 0 2.04 0 0 5 2.17 0 0 0 0 2.17 0 6 2.115 0 0 0 0 2.115 0 7 2.13 0 0 0 0 2.13 0 8 1.84 0 1.84 0 0 0 0 9 2.24 0 0 0 0 0 2.24 10 2.1 0 0 0 0 2.1 0 11 2.14 0 0 0 0 2.14 0 12 2 0 0 0 2 0 0 13 1.8 0 1.8 0 0 0 0 14 2.1 0 0 0 0 2.1 0 15 2.245 0 0 0 0 0 2.245 16 2.115 0 0 0 0 2.115 0 17 2.13 0 0 0 0 2.13 0 18 1.825 0 1.825 0 0 0 0 19 2.225 0 0 0 0 2.225 0 20 2.16 0 0 0 0 2.16 0 1.71 1.84 2.17 2.24 1.7 1.825 2.14 2.245 1.8 2.17 1.825 2.16 2.115 2.13 2.115 2.1 2.115 2.14 2.115 2.1 2.115 2.115 2.115 2.13 2.13 2.1 2.13 2.14 2.13 2.1 2.13 2.115 2.13 2.13 2.13 2.16 2.1 2.1 2.1 2.115 2.1 2.13 2.14 2.115 2.14 2.13 2.14 2.16 2.1 2.115 2.1 2.13 2.115 2.13 2.13 2.16 I wrote a small macro to check every possible pair and list all that meet the criteria (had to change - to 0)

<colgroup><col width="64" span="9" style="width:48pt"> </colgroup><tbody>
</tbody>

Threads
1,195,666
Messages
6,011,047
Members
441,580
Latest member
BornholmerBjarne

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

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