View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rachel Garrett Rachel Garrett is offline
external usenet poster
 
Posts: 9
Default Ignore zero in subtotal formula

Try this:

=SUM(G:G)/COUNTIF(G:G, "<0")

This sums the entire column, but only divides it by the non-zero
cells, thus giving a true average.

Thanks,
Rachel Garrett