MyVeryOwnSelf
One way:
=IF(PRODUCT(Z6:AE6)=0,0,AVERAGE(Z6:AE6))
Won't that return zero if there is a zero anywhere in Z6:AE6?
Perhaps:
=IF(SUM(Z6:AE6)=0,0,AVERAGE(Z6:AE6))
or
=IF(SUM(Z6:AE6),AVERAGE(Z6:AE6),0)
--
Regards,
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
with @tiscali.co.uk
"MyVeryOwnSelf" wrote in message
...
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.