View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jaytee Jaytee is offline
external usenet poster
 
Posts: 14
Default Averages excluding zeros

Is there a way to average a column of numbers, but have Excel ignore "0"s?
For example if my column is:
2
3
4
0
1
0
Excel will average this as 1.67 (sum of 10 divided by 6 entries) , but what
I need is 2.5 ( Sumof 10 divided by 4 non-zero entries.)
Bonus Question: Is there a way to create this effect in a Pivot Table?