Comparing 4 cells of data to return yes or no value if match within 1-2 numbers of each other

JayeGSP

New Member
Joined
Aug 12, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
comparing this row for example: 29 29.5 29.5 29.75
I figured out the formula to compare them and return YES or NO if they match but can't figure out how to add something so it will return a yes value if 29.5, 29.75 or 30.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Welcome to the MrExcel forum!

Try:

Book1
ABCD
1
229noYes
329.5
429.5
529.75
6
Sheet8
Cell Formulas
RangeFormula
C2C2=IF(A2=A3,"yes","no")
D2D2=IF(ABS(A2-A3)<1,"Yes","no")


Change the "1" value (sometimes called a tolerance) to how close you want the values to be when compared.
 
Upvote 0
Welcome to the MrExcel board!

.. or could it be something like this that you are after?

24 08 13.xlsm
ABC
1
229Yes
329.5
429.5
529.75
Close
Cell Formulas
RangeFormula
C2C2=IF(MAX(A2:A5)-MIN(A2:A5)<=1,"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,221,444
Messages
6,159,912
Members
451,601
Latest member
terrynelson55

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