thanks for your help, i have done it like that. count(iif([field1]="H",0))+(count(iif([field2]="H",0)). and it is woking perfectly alright. there is one more problem, i have got 0.50 as a text in the same fields, how can i convert it into number after the count, actually it represents half day...