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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel

Status
Not open for further replies.

Montano

Technical User
Joined
Feb 21, 2003
Messages
11
Location
US
I would like to get the average of a column of numbers, but I need for the formula to exclude any zeros in the column. How do I write this formula?
 
If the zeros are in place of "no data" then remove them - the zeroes which are actual data should be included in an average.
Any "blank" cells will not be included in the average even if the cells are included in the range.
 
=AVERAGE(IF($A$1:$A$100>0,A1:A100))

Array entered using CTRL+SHIFT+ENTER

No need to delete the 0s

Regards
Ken..............

----------------------------------------------------------------------------
Attitude - A little thing that makes a BIG difference
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top