One more question. Is there a way to declare and set the number variables to 0 initially? I am wondering what would happen if the first field in the formula, fBasilGarlic, is null. Will the number variable AvgSum and AvgCount be 0, or some indeterminate value like null or nothing when the second if clause is evaluated?
thanks
doug