Thread: formula
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
kano71 kano71 is offline
external usenet poster
 
Posts: 2
Default formula

Thank you that is brilliant.

"MyVeryOwnSelf" wrote:

I have a spreadsheet where, cell U6 is an average of Z6-AE6. i also
need U6 to =0 if any cell within Z6 - AE6 is a 0. ...


One way:
=IF(PRODUCT(Z6:AE6)=0,0,AVERAGE(Z6:AE6))

Caution: an empty cell doesn't count as zero with this formula. Neither
does text.