Link to home
Start Free TrialLog in
Avatar of Frank Freese
Frank FreeseFlag for United States of America

asked on

#Div/0 error handling

In my worksheet I want to average the range(C5:C35), yet suppress the #Div/0 error. The code below is not working.
=if(ISERROR(Average(C5:C35),"",Average(C5:C35)))

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Frank Freese

ASKER

Looks good - thank you
thank you
The mistake in your original formula is the location of the bracket

=if(ISERROR(Average(C5:C35),"",Average(C5:C35)))
should be
=if(ISERROR(Average(C5:C35)),"",Average(C5:C35))
Saqib,
Thank you for pointing that out