Solved

# #Div/0 error handling

Posted on 2014-04-20
199 Views
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)))
``````
``````
0
Question by:Frank Freese
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 3

LVL 38

Accepted Solution

Gerwin Jansen, EE MVE earned 500 total points
ID: 40011556
Try this:

=ifERROR(Average(C5:C35),"")
0

Author Comment

ID: 40011566
Looks good - thank you
0

Author Closing Comment

ID: 40011568
thank you
0

LVL 43

Expert Comment

ID: 40011592
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))
0

Author Comment

ID: 40011595
Saqib,
Thank you for pointing that out
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabilâ€¦
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
###### Suggested Courses
Course of the Month6 days, 9 hours left to enroll