Averaging Blank Cells

  • Thread starter Thread starter John Calder
  • Start date Start date
J

John Calder

Hi

In cell R88 I have the following formula

=AVERAGE(R76:R87)

It works fine as soon as I enter data in the range but when there is no data
in the range it returns a #DIV/0! error.

This looks unsightly on the sheet and was wondering if there was a way that
I could surpress this error when there is no data entered.

Thanks

John
 
try

=AVERAGE(IF(R76:R87,R76:R87,))

CTRL+SHIFT+ENTER this formula as it is in array formula
 
Check for some numbers first:

=if(count(r76:r87)=0,"no numbers",average(r76:r87))
 
Back
Top