Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

avg with no zeros

Status
Not open for further replies.

at51178

Technical User
Mar 25, 2002
587
US
Hey Guys

I created a report where I need to average one of the columns that I created but I need the computer to disregard any rows that have "0" in them and only count the ones that do not have "0" in the box can this be done thanks.
 
Try this in the control source of the field:

=avg(iif(fieldname = 0,, fieldname))

This should do the trick ;-) Take Care,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top