calculating average with blank cells
marvinks wrote:
Hi
I have 4 columns with an average function on the bottom, however not
all the columns are used all the time, resulting in an error (#DIV/0!).
How do I calculate the average only if the cells are used. If I don't
used one of the columns I would like it to stay blank or return 0
thanks
marvin
--
marvinks
Hi marvinks
Try:
=IF(ISERR(AVERAGE(A1:A4)),0,AVERAGE(A1:A4))
Adjust ranges as necessary.
Regards
Steve
|