Hi ,
Other than being empty , what are the other data that can be entered in C2 and C3 ?
If it is just a check to see whether C2 and C3 are blank , you can use either of the following :
=IF(AND(ISBLANK(C2),ISBLANK(C3)),"",IF((C2-C3)<=2,1,))
What this will do is :
If both C2 and C3 are blank , the formula will output a null character , which means the cell will display nothing.
If not , if the difference between C2 and C3 is less than 2 , the formula will output 1.
If not , the formula will output 0.
--------------------------------------------------------------------------------------
=IF(AND(C2="",C3=""),"",IF((C2-C3)<=2,1,))
This will work whether C2 , C3 are blank , or contain a null character as a result of a formula.
Narayan