Supress error message

J

Jim Anderson

I am using the formla:
=average(b35:b47)
to put the average of cells b35 to b47 into cell b48.
Is there a way to avoid the cell b48 showing the result :
#DIV/0!
when I have no entries in the range of aforementioned cells?
Thank you
Jim
 
D

Don Guillett

try this ARRAY formula which must be entered/edited with CSE
(ctrl+shift+enter)
=AVERAGE(IF(C1:C5<>"",C1:C5))
 
J

Jim Anderson

Dave
Thank you very much!
This formula worked perfectly for me.
I appreciate your help very much.
Jim
 
Top