View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default #div/0 errors and blank cells

One way:

=IF(COUNT(A1:A31)0,AVERAGE(A1:A31),0)

In article ,
dinouk wrote:

Hi wondering if anyone can help me with this one...

Have 31 cells in a row which i want to get the average value from, some of
these 31 cellsmay or may not have data in them. The end coloum would be the
one working out the average value of that row of cells.

If no data is entered into any of the cells is it possible to get the
average formular not to return a #div/0 error but instead just return a 0
figure?
Obviously as soon as any data is entered the formular would work as normal
but just want it not to return the error should no data be entered.

The average figures obtained would then be used in a graph.

sure must be a plain and simple answer to this..
Dean