?
Solved

#Div/0 error handling

Posted on 2014-04-20
5
Medium Priority
?
207 Views
Last Modified: 2014-04-20
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

0
Comment
Question by:Frank Freese
  • 3
5 Comments
 
LVL 38

Accepted Solution

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

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

Author Comment

by:Frank Freese
ID: 40011566
Looks good - thank you
0
 

Author Closing Comment

by:Frank Freese
ID: 40011568
thank you
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
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

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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question