DIFFERENCE BETWEEN 2 VALUES SHOULD NOT BE MORE THAN 1

  • Thread starter Thread starter srpavar
  • Start date Start date
S

srpavar

In column a1 to a5 i have number in a1:a:5 0.2,21.10,20.90,20.00,20.20
in b1:b5 i have numbers 0.2,22.20,21.90,21.10,21.30
in c1:c5 i want the results 0.2,21.30,21.10,20.20,20.40
the difference between two values should not be more than 0.2
 
I think you want something like this:

=IF(A1=B1,A1,IF(A1<B1,MIN(A1+0.2,B1),MAX(A1-0.2,B1)))

Copy down into C2:C5.

Hope this helps.

Pete
 
Back
Top