Filtering integers within a certain tolerance of one another across columns

suzors

New Member
Joined
Dec 30, 2016
Messages
2
Hello,

I have three value sets in columns A, B, and C.
I would like to bring up the values within one integer of one another in B and C.

Again, it doesn't matter how high or low the number is in B, as long as C is within 1 value away.

Thank you in advance for any help! :eek:
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Suzors,

asuming that you want values in Column A to be displayed in Column D whenever the difference in values of B and C is less than or equal to 1, you can get it with a simple IF conditional function.

ABCD
1168C far from B
22782
33883
44984
55108C far from B

<colgroup><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>

Worksheet Formulas
CellFormula
D1=IF(ABS(B1-C1)<=1,A1,"C far from B")

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

<tbody>
</tbody>

You can substitute "C far from B" with "" if you want the cell to be blank if the condition is not met.

Hope it helps.
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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