Create a formula like this, place it in the group header or footer and suppress it:
whileprintingrecords;
numbervar sumcnt := sumcnt + count({table.CoItem_Line}, custaddr.name});
numbervar cnt := cnt + 1;
Then in the report footer add this formula:
whileprintingrecords;
numbervar sumcnt;
numbervar cnt;
if cnt <> 0 then
sumcnt/cnt
You can use the same syntax for other other fields, just adding another variable like "sumcnt", but with a different name and which sums a different field. The cnt variable can be used in all formulas.
-LB