Thanks for such detail replies @Pat Hartman and @piano_playr. I didn't know before that avg of 3,03 and 3,Null,3 will be different but yes I was worried about total marks as -1 would reduce total marks by 1. I think I will have to write function to consider only positive marks for getting totals...