Howdy,
I played around with this a bit and I think your problem is that you have
some ranges that are all blank. AVERAGE needs at least 1 non-blank cell to
determine a result. That's why your AVERAGE function gives you the #DIV/0
error. You can get around the problem several different ways, including the
suggestions others have put in this thread. If you want to keep using an
AVERAGE function, though, you'll have to add a conditional to your formulas
to take care of the event where all your cells in the range are blank. The
reasoning here is to decide whether the range is empty or not before applying
the AVERAGE function. One way to do it follows:
=IF(COUNT(O5:O35)=0,0,AVERAGE(O5:O35))
Good luck,
Tom Hayakawa