Actually, what 1starr is asking for is not that uncommon, it is (I think) referd to as an un-weighted average, whereas the process discussed by scriverb is often refered to as a (Oh! Suprise!!!) Weighted average.
The difference between the values can be substantial, and the programmer should take care to fully understand what is necessary / desired / required.
I would hesitate to advise the use of either to 1starr (or anyone asking the question in the manner of the original post) without a careful explination (and possibly some examples) along with some dialog which indicated the receipient could make the knowledgable decision on what was appropiate.
P.S. a small module in the report could easily 'accumulate' the individual aggregates as they occur in the group footer, as well as count them - then the report footer can easily display the sum / #. But that -of course- needs to be decided by the user.
MichaelRed
m.red@att.net
There is never time to do it right but there is always time to do it over