Hi all. (frane at 1>30)=1 + (frane at 1 <=30)=2 what's wrong with this expression? each of the two parts gives correct results,but if together I get only 0s. Thanks for help. -- Paolo Cavallini - Faunalia www.faunalia.eu Full contact details at www.faunalia.eu/pc