ACC2000: How to Exclude Zero Values When You Calculate Averages (210458)
The information in this article applies to:
This article was previously published under Q210458 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SUMMARY
When you use the Avg() function in a report to average a set of values, the function uses records that have zero values in the calculation. Sometimes, you do not want to include records with zero values in a calculation.
This article has two examples of how to calculate an average for all
the nonzero values in a set by counting the number of nonzero values in
the set of values and then using that total with a running sum
calculation.
REFERENCESFor more information about the Avg() function, click Microsoft Access Help on the Help menu, type avg function (microsoft jet sql) in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbhowto kbinfo KB210458 |
---|
|